Productivity in Financial Services

Moving forward with a focus

New technology, better automation options and improved decision support through trusted Artificial Intelligence, machine learning and other means lay the foundation for improving productivity in our FS organisations.

However, often productivity improvements in FS organisations are still lagging behind their full potential. Why is that and what has to change in our operating models to exploit the full potential? Please read through our latest views on the topic and the key levers to be considered from a strategic, operational and organisational point of view.

Upskilling as the foundation of productivity

Each of the pillars of productivity, as you will see in our new report ‘Productivity 2021 and beyond: Five pillars for a better workforce’, involves some element of upskilling. Better understanding the workforce, for example, requires the deployment of new measurement and analytical tools. Embracing the platform economy to fully leverage gig work and innovation in crowdsourcing means organising and managing the workforce differently and developing and introducing products in a new way. Making sure your employees are equipped with new skills for a new world will unlock productivity gains across the board and is fundamental to becoming a world-beating institution.

Find out more


Explore the 5 pillars of productivity

How does your firm's productivity compare to other financial services firms? Compare yourself against our survey data:

',i=Qt.open();if(null!==i&&i.document.write(r),i||"undefined"==typeof safari)return i;case"datauri":case"dataurl":return Qt.document.location.href=n;default:throw new Error('Output type "'+t+'" is not supported.')}}).foo=function(){try{return Dt.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);e="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!Qt.console)throw new Error(e);Qt.console.error(e,t),Qt.alert&&alert(e)}},(Dt.foo.bar=Dt).foo);switch(e){case"pt":y=1;break;case"mm":y=72/25.4000508;break;case"cm":y=72/2.54000508;break;case"in":y=72;break;case"px":y=1==qt("px_scaling")?.75:96/72;break;case"pc":case"em":y=12;break;case"ex":y=6;break;default:throw"Invalid unit: "+e}function Ht(){this.saveGraphicsState(),W(new _t(y,0,0,-y,0,S*y).toString()+" cm"),this.setFontSize(this.getFontSize()/y),yt=mt}function Wt(){this.restoreGraphicsState(),yt=gt}s(),u(),dt.internal={pdfEscape:Ot,getStyle:Et,getFont:function(){return K[Pt.apply(dt,arguments)]},getFontSize:function(){return X},getCharSpace:function(){return Q},getTextColor:function(){var t,e=Y.split(" ");2===e.length&&"g"===e[1]&&(e=[t=parseFloat(e[0]),t,t,"r"]);for(var n="#",r=0;r<3;r++)n+=("0"+Math.floor(255*parseFloat(e[r])).toString(16)).slice(-2);return n},getLineHeight:function(){return X*Z},write:function(t){W(1===arguments.length?t:Array.prototype.join.call(arguments," "))},getCoordinateString:function(t){return z(B(t))},getVerticalCoordinateString:function(t){return z(U(t))},collections:{},newObject:p,newAdditionalObject:function(){var t=2*nt.length+1,t={objId:t+=at.length,content:""};return at.push(t),t},newObjectDeferred:function(){return F[++E]=function(){return ct},E},newObjectDeferredBegin:function(t){F[t]=ct},putStream:d,events:vt,scaleFactor:y,pageSize:{getWidth:function(){return _},getHeight:function(){return S}},output:function(t,e){return Ut(t,e)},getNumberOfPages:function(){return nt.length-1},pages:nt,out:W,f2:wt,getPageInfo:function(t){return{objId:2*(t-1)+3,pageNumber:t,pageContext:rt[t]}},getCurrentPageInfo:function(){return{objId:2*(v-1)+3,pageNumber:v,pageContext:rt[v]}},getPDFVersion:function(){return Jt},hasHotfix:qt},dt.advancedAPI=function(t){var e=yt===gt;return e&&Ht.call(this),"function"!=typeof t||(t(this),e&&Wt.call(this)),this},dt.compatAPI=function(t){var e=yt===mt;return e&&Wt.call(this),"function"!=typeof t||(t(this),e&&Ht.call(this)),this},dt.isAdvancedAPI=function(){return yt===mt},dt.comment=function(t){return W("#"+t),this},dt.GState=function(t){var e,n="opacity,stroke-opacity".split(",");for(e in t)t.hasOwnProperty(e)&&0<=n.indexOf(e)&&(this[e]=t[e]);this.id="",this.objectNumber=-1},dt.GState.prototype.equals=function(t){var e="id,objectNumber,equals";if(!t||Xt(t)!==Xt(this))return!1;var n,r=0;for(n in this)if(!(0<=e.indexOf(n))){if(this.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;if(this[n]!==t[n])return!1;r++}for(n in t)t.hasOwnProperty(n)&&e.indexOf(n)<0&&r--;return 0===r},dt.addGState=function(t,e){return Ct(t,e),this},dt.addPage=function(t,e){return Tt.apply(this,arguments),this},dt.setPage=function(t){return Rt.apply(this,arguments),this},dt.insertPage=function(t){return this.addPage(),this.movePage(v,t),this},dt.movePage=function(t,e){var n,r,i,o;if(e":")"),N=0):"[object Array]"===Object.prototype.toString.call(v[F])&&(L=v[F][1]*k,q=-v[F][2],D=(o?"<":"(")+v[F][0]+(o?">":")"),N=1),void 0!==O&&void 0!==O[F]&&(R=O[F]+" Tw\n"),1===N&&0<"+r+">");return o.length&&(i+="\n"+o.length+" beginbfchar\n"+o.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"}function lt(t){var e,n,r=t.text||"",i=t.x,o=t.y,a=t.options||{},s=t.mutex||{},u=s.pdfEscape,c=s.activeFontKey,l=s.fonts,f=(s.activeFontSize,""),h=0,p="",t=l[n=c].encoding;if("Identity-H"!==l[n].encoding)return{text:r,x:i,y:o,options:a,mutex:s};for(p=r,n=c,"[object Array]"===Object.prototype.toString.call(r)&&(p=r[0]),h=0;h>"),"trns"in t&&t.trns.constructor==Array){for(var i="",o=0,a=t.trns.length;o>"),r(t.data),n("endobj"),"smask"in t&&(e="/Predictor "+t.p+" /Colors 1 /BitsPerComponent "+t.bpc+" /Columns "+t.w,e={w:t.w,h:t.h,cs:"DeviceGray",bpc:t.bpc,dp:e,data:t.smask},"f"in t&&(e.f=t.f),ft.call(this,e)),t.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),n("<< /Length "+t.pal.length+">>"),r(this.arrayBufferToBinaryString(new Uint8Array(t.pal))),n("endobj"))}function ht(){var t,e=this.internal.collections[X+"images"];for(t in e)ft.call(this,e[t])}function pt(){var t,e,n=this.internal.collections[X+"images"],r=this.internal.write;for(e in n)r("/I"+(t=n[e]).i,t.n,"0","R")}function dt(t){return"function"==typeof Y["process"+t.toUpperCase()]}function gt(t){return"object"===Xt(t)&&1===t.nodeType}function mt(t,e){if("IMG"===t.nodeName&&t.hasAttribute("src")){var n=""+t.getAttribute("src");if(0===n.indexOf("data:image/"))return unescape(n);!e&&/\.png(?:[?#].*)?$/i.test(n)&&(e="png")}if("CANVAS"===t.nodeName)var r=t;else{(r=document.createElement("canvas")).width=t.clientWidth||t.width,r.height=t.clientHeight||t.height;n=r.getContext("2d");if(!n)throw"addImage requires canvas to be supported by browser.";n.drawImage(t,0,0,r.width,r.height)}return r.toDataURL("png"==(""+e).toLowerCase()?"image/png":"image/jpeg")}function yt(t,e){var n;if(e)for(var r in e)if(t===e[r].alias){n=e[r];break}return n}function vt(t,e){return t.subarray(e,e+5)}function bt(t){return void 0!==t&&void 0!==Z[t.charCodeAt(0)]}function wt(t){return void 0!==t&&0<=nt.indexOf(t.charCodeAt(0))}function xt(t){return void 0!==t&&0<=et.indexOf(t.charCodeAt(0))}function _t(t){return bt(t)&&2<=Z[t.charCodeAt(0)].length}function St(t,e,n,r){return bt(t)?(r=r||{},Z=Object.assign(Z,r),!_t(t)||!bt(e)&&!bt(n)||!bt(n)&&wt(e)||wt(t)&&!bt(e)||wt(t)&&xt(e)||wt(t)&&wt(e)?(Z=Object.assign(Z,$),rt):bt(r=t)&&4==Z[r.charCodeAt(0)].length&&bt(e)&&!wt(e)&&bt(n)&&_t(n)?(Z=Object.assign(Z,$),at):wt(t)||!bt(n)?(Z=Object.assign(Z,$),it):(Z=Object.assign(Z,$),ot)):-1}!function(e,t){function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function o(t){return t*+v}function s(t){var e=new k,n=R.internal.getHeight(t)||0,t=R.internal.getWidth(t)||0;return e.BBox=[0,0,t.toFixed(2),n.toFixed(2)],e}function r(t,e,n){t=t||0;var r=1;return r<<=e-1,1==(n=n||1)?t|=r:t&=~r,t}function i(t,e,n){return n=n||1.3,t=t||0,1==e.readOnly&&(t=r(t,1)),1==e.required&&(t=r(t,2)),1==e.noExport&&(t=r(t,3)),1==e.multiline&&(t=r(t,13)),e.password&&(t=r(t,14)),e.noToggleToOff&&(t=r(t,15)),e.radio&&(t=r(t,16)),e.pushbutton&&(t=r(t,17)),e.combo&&(t=r(t,18)),e.edit&&(t=r(t,19)),e.sort&&(t=r(t,20)),e.fileSelect&&1.4<=n&&(t=r(t,21)),e.multiSelect&&1.4<=n&&(t=r(t,22)),e.doNotSpellCheck&&1.4<=n&&(t=r(t,23)),1==e.doNotScroll&&1.4<=n&&(t=r(t,24)),e.richText&&1.4<=n&&(t=r(t,25)),t}function c(t){var e=t[0],n=t[1],r=t[2],i=t[3],t={};return Array.isArray(e)?(e[0]=o(e[0]),e[1]=o(e[1]),e[2]=o(e[2]),e[3]=o(e[3])):(e=o(e),n=o(n),r=o(r),i=o(i)),t.lowerLeft_X=e||0,t.lowerLeft_Y=o(y)-n-i||0,t.upperRight_X=e+r||0,t.upperRight_Y=o(y)-n||0,[t.lowerLeft_X.toFixed(2),t.lowerLeft_Y.toFixed(2),t.upperRight_X.toFixed(2),t.upperRight_Y.toFixed(2)]}function l(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t.V||t.DV,n=b(t,n);e.push("/Tx BMC"),e.push("q"),e.push("/F1 "+n.fontSize.toFixed(2)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push("BT"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");t=new s(t);return t.stream=e.join("\n"),t}}function a(){var t,e,n=m.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(t in n)!n.hasOwnProperty(t)||(e=n[t]).hasAnnotation&&x.call(m,e)}function u(t){m.internal.acroformPlugin.printedOut&&(m.internal.acroformPlugin.printedOut=!1,m.internal.acroformPlugin.acroFormDictionaryRoot=null),m.internal.acroformPlugin.acroFormDictionaryRoot||S.call(m),m.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)}function f(){void 0!==m.internal.acroformPlugin.acroFormDictionaryRoot?m.internal.write("/AcroForm "+m.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R"):console.log("Root missing...")}function h(){m.internal.events.unsubscribe(m.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete m.internal.acroformPlugin.acroFormDictionaryRoot._eventID,m.internal.acroformPlugin.printedOut=!0}function p(t){var e=!t;for(u in t||(m.internal.newObjectDeferredBegin(m.internal.acroformPlugin.acroFormDictionaryRoot.objId),m.internal.out(m.internal.acroformPlugin.acroFormDictionaryRoot.getString())),t=t||m.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(u)){var n=t[u],r=n.Rect;n.Rect&&(n.Rect=c.call(this,n.Rect)),m.internal.newObjectDeferredBegin(n.objId);var i=n.objId+" 0 obj\n<<\n";if("object"===Xt(n)&&"function"==typeof n.getContent&&(i+=n.getContent()),n.Rect=r,n.hasAppearanceStream&&!n.appearanceStreamContent&&(i+="/AP << /N "+(r=l.call(this,n))+" >>\n",m.internal.acroformPlugin.xForms.push(r)),n.appearanceStreamContent){for(var o in i+="/AP << ",n.appearanceStreamContent)if(n.appearanceStreamContent.hasOwnProperty(o)){var a,s=n.appearanceStreamContent[o];if(i+="/"+o+" ",i+="<< ",1<=Object.keys(s).length||Array.isArray(s))for(var u in s)s.hasOwnProperty(u)&&("function"==typeof(a=s[u])&&(a=a.call(this,n)),i+="/"+u+" "+a+" ",0<=m.internal.acroformPlugin.xForms.indexOf(a)||m.internal.acroformPlugin.xForms.push(a));else"function"==typeof(a=s)&&(a=a.call(this,n)),i+="/"+u+" "+a+" \n",0<=m.internal.acroformPlugin.xForms.indexOf(a)||m.internal.acroformPlugin.xForms.push(a);i+=" >>\n"}i+=">>\n"}i+=">>\nendobj\n",m.internal.out(i)}e&&_.call(this,m.internal.acroformPlugin.xForms)}function d(t){return 0!==(t=t||"").indexOf("(")&&(t="("+t),")"!=t.substring(t.length-1)&&(t+=")"),t}function g(){var t;Object.defineProperty(this,"objId",{get:function(){return(t=t||m.internal.newObjectDeferred())||console.log("Couldn't create Object ID"),t},configurable:!1})}var m,y,v=1,b=function(t,e,r,n){n=n||12,r=r||"helvetica";function i(t,e,n){if(t+1=a.length-1;if(!x||_){if(x||_){if(_)g=w;else if(t.multiline&&u<(l+2)*(b+2)+2)continue t}else{if(!t.multiline)continue t;if(u<(l+2)*(b+2)+2)continue t;g=w}for(var S="",k=d;k<=g;k++)S+=a[k]+" ";switch(S=" "==S.substr(S.length-1)?S.substr(0,S.length-1):S,m=A(S,s+"px",r).width,t.Q){case 2:h=c-m-2;break;case 1:h=(c-m)/2;break;case 0:default:h=2}e+=h.toFixed(2)+" "+p.toFixed(2)+" Td\n",e+="("+S+") Tj\n",e+=-h.toFixed(2)+" 0 Td\n",p=-(s+2),m=0,d=g+1,b++,v=""}else v+=" "}break}return o.text=e,o.fontSize=s,o},A=function(t,e,n){n=n||"helvetica";n=m.internal.getFont(n),t=m.getStringUnitWidth(t,{font:n,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:m.getStringUnitWidth("3",{font:n,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:t}},w={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},x=function(t){var e={type:"reference",object:t};m.annotationPlugin.annotations[m.internal.getPageInfo(t.page).pageNumber].push(e)},_=function(t){for(var e in t){var n,r,i;t.hasOwnProperty(e)&&(r=t[n=e],m.internal.newObjectDeferredBegin(r&&r.objId),i="","object"===Xt(r)&&"function"==typeof r.getString&&(i=r.getString()),m.internal.out(i),delete t[n])}},S=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(m=this,C.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(w)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");v=m.internal.scaleFactor,y=m.internal.pageSize.getHeight(),m.internal.acroformPlugin.acroFormDictionaryRoot=new M,m.internal.acroformPlugin.acroFormDictionaryRoot._eventID=m.internal.events.subscribe("postPutResources",h),m.internal.events.subscribe("buildDocument",a),m.internal.events.subscribe("putCatalog",f),m.internal.events.subscribe("postPutPages",p),m.internal.acroformPlugin.isInitialized=!0}};g.prototype.toString=function(){return this.objId+" 0 R"},g.prototype.getString=function(){var t=this.objId+" 0 obj\n<<";return t+=this.getContent()+">>\n",this.stream&&(t+="stream\n",t+=this.stream,t+="\nendstream\n"),t+"endobj\n"},g.prototype.getContent=function(){return""+function(t){var e,n,r,i="",o=Object.keys(t).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"_"!=t.substring(0,1)});for(e in o)!o.hasOwnProperty(e)||(r=t[n=o[e]])&&(Array.isArray(r)?i+="/"+n+" "+function(t){if(Array.isArray(t)){var e,n=" [";for(e in t)t.hasOwnProperty(e)&&(n+=t[e].toString(),n+=e>"},YesPushDown:function(t){var e=s(t),n=[],r=m.internal.getFont("zapfdingbats","normal").id;t.Q=1;var i=b(t,"3","ZapfDingbats",50);return n.push("0.749023 g"),n.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+i.fontSize.toFixed(2)+" Tf 0 g"),n.push("BT"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=s(t),n=m.internal.getFont("zapfdingbats","normal").id,r=[];t.Q=1;var i=R.internal.getHeight(t),o=R.internal.getWidth(t),t=b(t,"3","ZapfDingbats",.9*i);return r.push("1 g"),r.push("0 0 "+o.toFixed(2)+" "+i.toFixed(2)+" re"),r.push("f"),r.push("q"),r.push("0 0 1 rg"),r.push("0 0 "+(o-1).toFixed(2)+" "+(i-1).toFixed(2)+" re"),r.push("W"),r.push("n"),r.push("0 g"),r.push("BT"),r.push("/"+n+" "+t.fontSize.toFixed(2)+" Tf 0 g"),r.push(t.text),r.push("ET"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=s(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:R.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=R.RadioButton.Circle.YesNormal,e.D[t]=R.RadioButton.Circle.YesPushDown,e},createMK:function(){return"<< /CA (l)>>"},YesNormal:function(t){var e=s(t),n=[],r=R.internal.getWidth(t)<=R.internal.getHeight(t)?R.internal.getWidth(t)/4:R.internal.getHeight(t)/4;r*=.9;var i=R.internal.Bezier_C;return n.push("q"),n.push("1 0 0 1 "+R.internal.getWidth(t)/2+" "+R.internal.getHeight(t)/2+" cm"),n.push(r+" 0 m"),n.push(r+" "+r*i+" "+r*i+" "+r+" 0 "+r+" c"),n.push("-"+r*i+" "+r+" -"+r+" "+r*i+" -"+r+" 0 c"),n.push("-"+r+" -"+r*i+" -"+r*i+" -"+r+" 0 -"+r+" c"),n.push(r*i+" -"+r+" "+r+" -"+r*i+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=s(t),n=[],r=R.internal.getWidth(t)<=R.internal.getHeight(t)?R.internal.getWidth(t)/4:R.internal.getHeight(t)/4,i=2*(r*=.9),o=i*R.internal.Bezier_C,a=r*R.internal.Bezier_C;return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+(R.internal.getWidth(t)/2).toFixed(2)+" "+(R.internal.getHeight(t)/2).toFixed(2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+(R.internal.getWidth(t)/2).toFixed(2)+" "+(R.internal.getHeight(t)/2).toFixed(2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=s(t),n=[],r=R.internal.getWidth(t)<=R.internal.getHeight(t)?R.internal.getWidth(t)/4:R.internal.getHeight(t)/4,i=2*(r*=.9),r=i*R.internal.Bezier_C;return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+(R.internal.getWidth(t)/2).toFixed(2)+" "+(R.internal.getHeight(t)/2).toFixed(2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+r+" "+r+" "+i+" 0 "+i+" c"),n.push("-"+r+" "+i+" -"+i+" "+r+" -"+i+" 0 c"),n.push("-"+i+" -"+r+" -"+r+" -"+i+" 0 -"+i+" c"),n.push(r+" -"+i+" "+i+" -"+r+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:R.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=R.RadioButton.Cross.YesNormal,e.D[t]=R.RadioButton.Cross.YesPushDown,e},createMK:function(){return"<< /CA (8)>>"},YesNormal:function(t){var e=s(t),n=[],r=R.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+(R.internal.getWidth(t)-2).toFixed(2)+" "+(R.internal.getHeight(t)-2).toFixed(2)+" re"),n.push("W"),n.push("n"),n.push(r.x1.x.toFixed(2)+" "+r.x1.y.toFixed(2)+" m"),n.push(r.x2.x.toFixed(2)+" "+r.x2.y.toFixed(2)+" l"),n.push(r.x4.x.toFixed(2)+" "+r.x4.y.toFixed(2)+" m"),n.push(r.x3.x.toFixed(2)+" "+r.x3.y.toFixed(2)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=s(t),n=R.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),r.push("f"),r.push("q"),r.push("1 1 "+(R.internal.getWidth(t)-2).toFixed(2)+" "+(R.internal.getHeight(t)-2).toFixed(2)+" re"),r.push("W"),r.push("n"),r.push(n.x1.x.toFixed(2)+" "+n.x1.y.toFixed(2)+" m"),r.push(n.x2.x.toFixed(2)+" "+n.x2.y.toFixed(2)+" l"),r.push(n.x4.x.toFixed(2)+" "+n.x4.y.toFixed(2)+" m"),r.push(n.x3.x.toFixed(2)+" "+n.x3.y.toFixed(2)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=s(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(){return"/F1 0 Tf 0 g"}};R.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=R.internal.getWidth(t),n=R.internal.getHeight(t),t=n>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1==t?n+=r[(252&(e=i[a]))>>2]+r[(3&e)<<4]+"==":2==t&&(n+=r[(64512&(e=i[a]<<8|i[1+a]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),n},Y.createImageInfo=function(t,e,n,r,i,o,a,s,u,c,l,f,h){t={alias:s,w:e,h:n,cs:r,bpc:i,i:a,data:t};return o&&(t.f=o),u&&(t.dp=u),c&&(t.trns=c),l&&(t.pal=l),f&&(t.smask=f),h&&(t.p=h),t},Y.addImage=function(t,e,n,r,i,o,a,s,u){var c="";if("string"!=typeof e&&(h=o,o=i,i=r,r=n,n=e,e=h),"object"===Xt(t)&&!gt(t)&&"imageData"in t&&(t=(l=t).imageData,e=l.format||e,n=l.x||n||0,r=l.y||r||0,i=l.w||i,o=l.h||o,a=l.alias||a,s=l.compression||s,u=l.rotation||l.angle||u),"string"==typeof t&&(t=unescape(t)),isNaN(n)||isNaN(r))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var l,f,h=function(){var t=this.internal.collections[X+"images"];return t||(this.internal.collections[X+"images"]=t={},this.internal.events.subscribe("putResources",ht),this.internal.events.subscribe("putXobjectDict",pt)),t}.call(this);if(!((l=yt(t,h))||(gt(t)&&(t=mt(t,e)),null!=a&&0!==a.length||(a="string"==typeof t&&Y.sHashCode(t)),l=yt(a,h)))){if(!this.isString(t)||""===(c=this.convertStringToImageData(t))&&void 0===(c=this.loadImageFile(t))||(t=c),e=this.getImageFileTypeByImageData(t,e),!dt(e))throw new Error("addImage does not support files of type '"+e+"', please ensure that a plugin for '"+e+"' support is added.");if(this.supportsArrayBuffer()&&(t instanceof Uint8Array||(f=t,t=this.binaryStringToUint8Array(t))),!(l=this["process"+e.toUpperCase()](t,(e=0,(t=h)&&(e=Object.keys?Object.keys(t).length:function(t){var e,n=0;for(e in t)t.hasOwnProperty(e)&&n++;return n}(t)),e),a,((s=s)&&"string"==typeof s&&(s=s.toUpperCase()),s in Y.image_compression?s:Y.image_compression.NONE),f)))throw new Error("An unkwown error occurred whilst processing the image")}return function(t,e,n,r,i,o,a,s){var u,c=function(t,e,n){return t||e||(e=t=-96),t<0&&(t=-1*n.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.h*72/e/this.internal.scaleFactor),0===t&&(t=e*n.w/n.h),0===e&&(e=t*n.h/n.w),[t,e]}.call(this,n,r,i),l=this.internal.getCoordinateString,f=this.internal.getVerticalCoordinateString;n=c[0],r=c[1],a[o]=i,s&&(s*=Math.PI/180,u=Math.cos(s),a=Math.sin(s),u=[(o=function(t){return t.toFixed(4)})(u),o(a),o(-1*a),o(u),0,0,"cm"]),this.internal.write("q"),s?(this.internal.write([1,"0","0",1,l(t),f(e+r),"cm"].join(" ")),this.internal.write(u.join(" ")),this.internal.write([l(n),"0","0",l(r),"0","0","cm"].join(" "))):this.internal.write([l(n),"0","0",l(r),l(t),f(e+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.i+" Do"),this.internal.write("Q")}.call(this,n,r,i,o,l,l.i,h,u),this},Y.convertStringToImageData=function(t){var e,n="";return this.isString(t)&&(null!==(e=this.extractInfoFromBase64DataURI(t))?Y.validateStringAsBase64(e[3])&&(n=atob(e[3])):Y.validateStringAsBase64(t)&&(n=atob(t))),n},Y.processJPEG=function(t,e,n,r,i,o){var a,s=this.decode.DCT_DECODE;if(!this.isString(t)&&!this.isArrayBuffer(t)&&!this.isArrayBufferView(t))return null;if(this.isString(t)&&(a=function(t){var e;if(255===!t.charCodeAt(0)||216===!t.charCodeAt(1)||255===!t.charCodeAt(2)||224===!t.charCodeAt(3)||!t.charCodeAt(6)==="J".charCodeAt(0)||!t.charCodeAt(7)==="F".charCodeAt(0)||!t.charCodeAt(8)==="I".charCodeAt(0)||!t.charCodeAt(9)==="F".charCodeAt(0)||0===!t.charCodeAt(10))throw new Error("getJpegSize requires a binary string jpeg file");for(var n=256*t.charCodeAt(4)+t.charCodeAt(5),r=4,i=t.length;r>",c.content=h;f=c.objId+" 0 R";h="<>";else if(i.options.pageNumber)switch(h="<>",this.internal.write(h))}this.internal.write("]")}}]),Lt.createAnnotation=function(t){switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push(t)}},Lt.link=function(t,e,n,r,i){this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push({x:t,y:e,w:n,h:r,options:i,type:"link"})},Lt.textWithLink=function(t,e,n,r){var i=this.getTextWidth(t),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,n),n+=.2*o,this.link(e,n-o,i,o,r),i},Lt.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},Lt.getLineHeight=function(){return this.internal.getLineHeight()}, /** * @license * Copyright (c) 2017 Aras Abbasi * * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */ Ct=ut.API,J=Object.keys({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)",fa:"Persian","fa-IR":"Persian/Iran",ur:"Urdu"}),Z={1569:[65152],1570:[65153,65154,65153,65154],1571:[65155,65156,65155,65156],1572:[65157,65158],1573:[65159,65160,65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166,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,65193],1584:[65195,65196,65195],1585:[65197,65198,65197],1586:[65199,65200,65199],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,65261],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,64377],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,64394],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]},K={1570:[65269,65270,65269,65270],1571:[65271,65272,65271,65272],1573:[65273,65274,65273,65274],1575:[65275,65276,65275,65276]},$={1570:[65153,65154,65153,65154],1571:[65155,65156,65155,65156],1573:[65159,65160,65159,65160],1575:[65165,65166,65165,65166]},tt={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},et=[1570,1571,1573,1575],nt=[1569,1570,1571,1572,1573,1575,1577,1583,1584,1585,1586,1608,1688],rt=0,it=1,ot=2,at=3,st=Ct.processArabic=function(t,e){t=t||"",e=e||!1;for(var n,r,i="",o=0,a=0,s="",u="",o=0;o>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this}, /** * @license * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected] * * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */(kt=ut.API).events.push(["initialized",function(){this.canvas.pdf=this}]),kt.canvas={getContext:function(){return(this.pdf.context2d._canvas=this).pdf.context2d},childNodes:[],style:{},autoContext2dResizeX:!0,autoContext2dResizeY:!0},Object.defineProperty(kt.canvas,"width",{get:function(){return this._width},set:function(t){this._width=t,this.autoContext2dResizeX&&(this.getContext("2d").pageWrapX=t+1)}}),Object.defineProperty(kt.canvas,"height",{get:function(){return this._height},set:function(t){this._height=t,this.autoContext2dResizeY&&(this.getContext("2d").pageWrapY=t+1)}}), /** * @license * ==================================================================== * Copyright (c) 2013 Youssef Beddad, [email protected] * 2013 Eduardo Menezes de Morais, [email protected] * 2013 Lee Driscoll, https://github.com/lsdriscoll * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria * 2014 James Hall, [email protected] * 2014 Diego Casorran, https://github.com/diegocr * * * ==================================================================== */ M=ut.API,C={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},O=1,p=function(t,e,n,r,i){C={x:t,y:e,w:n,h:r,ln:i}},d=function(){return C},T={left:0,top:0,bottom:0},M.setHeaderFunction=function(t){s=t},M.getTextDimensions=function(t,e){var n,r=this.table_font_size||this.internal.getFontSize(),i=(this.internal.getFont().fontStyle,(e=e||{}).scaleFactor||this.internal.scaleFactor),o=0,e=0;if("string"==typeof t)0!=(o=this.getStringUnitWidth(t)*r)&&(e=1);else if("[object Array]"===Object.prototype.toString.call(t)){for(var a=0;a=this.internal.pageSize.getHeight()-s.bottom&&(this.cellAddPage(),c=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(o,!0)),e=d().y+d().h,c&&(e=23))),void 0!==i[0])if(this.printingHeaderRow?this.rect(t,e,n,r,"FD"):this.rect(t,e,n,r),"right"===a){i instanceof Array||(i=[i]);for(var l=0;l=this.pageBreaks[i]&&(n++,0===this.lastBreak&&r++,e=this.pageBreaks[i]-this.lastBreak,this.lastBreak=this.pageBreaks[i],r+=Math.floor(e/this.pageWrapY));return 0===this.lastBreak&&(r+=Math.floor(t/this.pageWrapY)+1),r+n}return this.pdf.internal.getCurrentPageInfo().pageNumber},_gotoPage:function(){},drawImage:function(t,e,n,r,i,o,a,s,u){void 0!==o&&(e=o,n=a,r=s,i=u),e=this._wrapX(e),n=this._wrapY(n);var i=this._matrix_map_rect(this.ctx._transform,{x:e,y:n,w:r,h:i}),u=(this._matrix_map_rect(this.ctx._transform,{x:o,y:a,w:s,h:u}),/data:image\/(\w+).*/i.exec(t)),u=null!=u?u[1]:"png";this.pdf.addImage(t,u,i.x,i.y,i.w,i.h)},_matrix_multiply:function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=n*t[0]+r*t[2],c=i*t[0]+o*t[2],e=a*t[0]+s*t[2]+t[4],r=n*t[1]+r*t[3],o=i*t[1]+o*t[3],s=a*t[1]+s*t[3]+t[5];return[u,r,c,o,e,s]},_matrix_rotation:function(t){return Math.atan2(t[2],t[0])},_matrix_decompose:function(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=Math.sqrt(e*e+n*n),a=(e/=o)*r+(n/=o)*i;r-=e*a,i-=n*a;var s=Math.sqrt(r*r+i*i);return a/=s,e*(i/=s)>"),this.internal.out("endobj"),u=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+c+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==o&&void 0!==u&&this.internal.out("/Names <>")}),this}, /** * @license * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected] * * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */(Lt=ut.API).events.push(["postPutResources",function(){var t=this,e=/^(\d+) 0 obj$/;if(0> endobj")}var c=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r>","endobj"),t.internal.newObject(),t.internal.write("<< /Dests "+c+" 0 R"),t.internal.write(">>","endobj")}}]),Lt.events.push(["putCatalog",function(){0> \r\nendobj\r\n"},i.outline.count_r=function(t,e){for(var n=0;n>>24&255,r[t++]=s>>>16&255,r[t++]=s>>>8&255,r[t++]=255&s,P.arrayBufferToBinaryString(r)},l=function(t,e){var n=Math.LOG2E*Math.log(32768)-8<<4|8,r=n<<8;return r|=Math.min(3,(e-1&255)>>1)<<6,r|=0,[n,255&(r+=31-r%31)]},f=function(t,e){for(var n,r=1,i=0,o=t.length,a=0;0>>0},h=function(t,e,n,r){for(var i,o,a,s=t.length/e,u=new Uint8Array(t.length+s),c=x(),l=0;l>>1)&255;return o},b=function(t,e,n){var r,i,o,a=[],s=0,u=t.length;for(a[0]=4;s>>h&255,h+=o.bits;g[y]=b>>>h&255}if(16===o.bits){p=(k=new Uint32Array(o.decodePixels().buffer)).length,d=new Uint8Array(p*(32/o.pixelBitlength)*o.colors),g=new Uint8Array(p*(32/o.pixelBitlength));for(var b,w=1>>0&255,w&&(d[v++]=b>>>16&255,b=k[y++],d[v++]=b>>>0&255),g[x++]=b>>>16&255;f=8}r!==P.image_compression.NONE&&j()?(t=E(d,o.width*o.colors,o.colors,r),u=E(g,o.width,1,r)):(t=d,u=g,l=null)}if(3===o.colorType&&(c=this.color_spaces.INDEXED,s=o.palette,o.transparency.indexed)){var _=o.transparency.indexed,S=0;for(y=0,p=_.length;yr&&(i.push(t.slice(u,o)),s=0,u=o),s+=e[o],o++;return u!==o&&i.push(t.slice(u,o)),i},D=function(t,e,n){var r,i,o,a,s,u,c,l=[],f=[l],h=(n=n||{}).textIndent||0,p=0,d=0,g=t.split(" "),m=I.apply(this,[" ",n])[0];for((s=-1===n.lineIndent?g[0].length+2:n.lineIndent||0)&&(u=Array(s).join(" "),c=[],g.map(function(t){1<(t=t.split(/\s*\n/)).length?c=c.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):c.push(t[0])}),g=c,s=L.apply(this,[u,n])),i=0,o=g.length;i>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},Lt=ut.API,H="",Lt.addMetadata=function(t,e){return U=e||"http://jspdf.default.namespaceuri/",B=t,this.internal.events.subscribe("postPutResources",function(){var t,e,n,r,i,o;B?(o='',t=unescape(encodeURIComponent('')),e=unescape(encodeURIComponent(o)),n=unescape(encodeURIComponent(B)),r=unescape(encodeURIComponent("")),i=unescape(encodeURIComponent("")),o=e.length+n.length+r.length+t.length+i.length,H=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(t+e+n+r+i),this.internal.write("endstream"),this.internal.write("endobj")):H=""}),this.internal.events.subscribe("putCatalog",function(){H&&this.internal.write("/Metadata "+H+" 0 R")}),this},G=ut,"undefined"!=typeof self&&self||void 0!==Ut&&Ut||"undefined"!=typeof window&&window||Function("return this")(),Mt=G.API,V=Mt.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a>"),r(a),e("endobj");var c=n(),l=ct(t.metadata.toUnicode);e("<<"),e("/Length "+l.length),e("/Length1 "+l.length),e(">>"),r(l),e("endobj");l=n();e("<<"),e("/Type /FontDescriptor"),e("/FontName /"+t.fontName),e("/FontFile2 "+u+" 0 R"),e("/FontBBox "+G.API.PDFObject.convert(t.metadata.bbox)),e("/Flags "+t.metadata.flags),e("/StemV "+t.metadata.stemV),e("/ItalicAngle "+t.metadata.italicAngle),e("/Ascent "+t.metadata.ascender),e("/Descent "+t.metadata.decender),e("/CapHeight "+t.metadata.capHeight),e(">>"),e("endobj");u=n();e("<<"),e("/Type /Font"),e("/BaseFont /"+t.fontName),e("/FontDescriptor "+l+" 0 R"),e("/W "+G.API.PDFObject.convert(i)),e("/CIDToGIDMap /Identity"),e("/DW 1000"),e("/Subtype /CIDFontType2"),e("/CIDSystemInfo"),e("<<"),e("/Supplement 0"),e("/Registry (Adobe)"),e("/Ordering ("+t.encoding+")"),e(">>"),e(">>"),e("endobj"),t.objectNumber=n(),e("<<"),e("/Type /Font"),e("/Subtype /Type0"),e("/ToUnicode "+c+" 0 R"),e("/BaseFont /"+t.fontName),e("/Encoding /"+t.encoding),e("/DescendantFonts ["+u+" 0 R]"),e(">>"),e("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]),Mt.events.push(["putFont",function(t){!function(t,e,n,r){if(t.metadata instanceof G.API.TTFFont&&"WinAnsiEncoding"===t.encoding){t.metadata.Unicode.widths;for(var i=t.metadata.rawData,o="",a=0;a>"),e("endobj"),t.objectNumber=n(),a=0;a>"),e("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]),Mt.events.push(["postProcessText",function(t){var e=t.text||"",n=t.x,r=t.y,i=t.options,o=t.mutex,a=(i.lang,[]),s={text:e,x:n,y:r,options:i,mutex:o};if("[object Array]"===Object.prototype.toString.call(e)){for(var u=0,u=0;u>7,n=1<<1+(7&n);b[t++],b[t++];var i=null;r&&(i=t,t+=3*n);var o=!0,a=[],s=0,u=null,c=0,l=null;for(this.width=w,this.height=e;o&&t>2&7,t++;break;case 254:for(;0!==(_=b[t++]);)t+=_;break;default:throw"Unknown graphic control label: 0x"+b[t-1].toString(16)}break;case 44:var h=b[t++]|b[t++]<<8,p=b[t++]|b[t++]<<8,d=b[t++]|b[t++]<<8,g=b[t++]|b[t++]<<8,m=b[t++],y=m>>6&1,v=i,x=!1;m>>7&&(x=!0,v=t,t+=3*(1<<1+(7&m)));var _,m=t;for(t++;;){if(0===(_=b[t++]))break;t+=_}a.push({x:h,y:p,width:d,height:g,has_local_palette:x,palette_offset:v,data_offset:m,data_length:t-m,transparent_index:u,interlaced:!!y,delay:s,disposal:c});break;case 59:o=!1;break;default:throw"Unknown gif block: 0x"+b[t-1].toString(16)}this.numFrames=function(){return a.length},this.loopCount=function(){return l},this.frameInfo=function(t){if(t<0||t>=a.length)throw"Frame index out of range.";return a[t]},this.decodeAndBlitFrameBGRA=function(t,e){var n=this.frameInfo(t),t=n.width*n.height,r=new Uint8Array(t);Dt(b,n.data_offset,r,t);var i=n.palette_offset,o=n.transparent_index;null===o&&(o=256);var a=n.width,s=w-a,u=a,c=4*(n.y*w+n.x),l=4*((n.y+n.height)*w+n.x),f=c,h=4*s;!0===n.interlaced&&(h+=4*(a+s)*7);for(var p=8,d=0,g=r.length;d>=1)),v===o?f+=4:(m=b[i+3*v],y=b[i+3*v+1],v=b[i+3*v+2],e[f++]=v,e[f++]=y,e[f++]=m,e[f++]=255),--u}},this.decodeAndBlitFrameRGBA=function(t,e){var n=this.frameInfo(t),t=n.width*n.height,r=new Uint8Array(t);Dt(b,n.data_offset,r,t);var i=n.palette_offset,o=n.transparent_index;null===o&&(o=256);var a=n.width,s=w-a,u=a,c=4*(n.y*w+n.x),l=4*((n.y+n.height)*w+n.x),f=c,h=4*s;!0===n.interlaced&&(h+=4*(a+s)*7);for(var p=8,d=0,g=r.length;d>=1)),v===o?f+=4:(m=b[i+3*v],y=b[i+3*v+1],v=b[i+3*v+2],e[f++]=m,e[f++]=y,e[f++]=v,e[f++]=255),--u}}}function Dt(t,e,n,r){for(var i=t[e++],o=1<>=u,l-=u,m!=o){if(m==a)break;for(var y=m>8,++v;var w=b;if(r>=8;null!==g&&s<4096&&(d[s++]=g<<8|w,c+1<=s&&u<12&&(++u,c=c<<1|1)),g=m}else s=1+a,c=(1<<(u=i+1))-1,g=null}return h!==r&&console.log("Warning, gif stream shorter than expected."),n}ee.exports?ee.exports.saveAs=te:null!==re(18)&&null!==re(6)&&(void 0===(Vt=function(){return te}.call(ne,re,ne,ee))||(ee.exports=Vt)),ut.API.adler32cs=(Ct="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,Ot=Ct?function(t){return t instanceof ArrayBuffer||!1}:function(){return!1},Tt=function(t){return unescape(encodeURIComponent(t))},Pt=65521,jt=function(t,e){for(var n=65535&t,r=t>>>16,i=0,o=e.length;i>>0},Et=function(t,e){for(var n=65535&t,r=t>>>16,i=0,o=e.length;i>>0},It=(Lt={}).Adler32=(((Mt=(At=function(t){if(!(this instanceof At))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(t=null==t?1:+t))throw new Error("First arguments needs to be a finite number.");this.checksum=t>>>0}).prototype={}).constructor=At).from=((kt=function(t){if(!(this instanceof At))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");this.checksum=jt(1,t.toString())}).prototype=Mt,kt),At.fromUtf8=((kt=function(t){if(!(this instanceof At))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");t=Tt(t.toString());this.checksum=jt(1,t)}).prototype=Mt,kt),Ct&&(At.fromBuffer=((kt=function(t){if(!(this instanceof At))throw new TypeError("Constructor cannot called be as a function.");if(!Ot(t))throw new Error("First argument needs to be ArrayBuffer.");t=new Uint8Array(t);return this.checksum=Et(1,t)}).prototype=Mt,kt)),Mt.update=function(t){if(null==t)throw new Error("First argument needs to be a string.");return t=t.toString(),this.checksum=jt(this.checksum,t)},Mt.updateUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");t=Tt(t.toString());return this.checksum=jt(this.checksum,t)},Ct&&(Mt.updateBuffer=function(t){if(!Ot(t))throw new Error("First argument needs to be ArrayBuffer.");t=new Uint8Array(t);return this.checksum=Et(this.checksum,t)}),Mt.clone=function(){return new It(this.checksum)},At),Lt.from=function(t){if(null==t)throw new Error("First argument needs to be a string.");return jt(1,t.toString())},Lt.fromUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");t=Tt(t.toString());return jt(1,t)},Ct&&(Lt.fromBuffer=function(t){if(!Ot(t))throw new Error("First argument need to be ArrayBuffer.");t=new Uint8Array(t);return Et(1,t)}),Lt),function(t){var d=15,g=573,e=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function lt(){var p=this;p.build_tree=function(t){var e,n,r,i=p.dyn_tree,o=p.stat_desc.static_tree,a=p.stat_desc.elems,s=-1;for(t.heap_len=0,t.heap_max=g,e=0;ep.max_code||(t.bl_count[h]++,i=0,c<=n&&(i=u[n-c]),o=a[2*n],t.opt_len+=o*(h+i),s&&(t.static_len+=o*(s[2*n+1]+i)));if(0!==f){do{for(h=l-1;0===t.bl_count[h];)h--}while(t.bl_count[h]--,t.bl_count[h+1]+=2,t.bl_count[l]--,0<(f-=2));for(h=l;0!==h;h--)for(n=t.bl_count[h];0!==n;)(r=t.heap[--e])>p.max_code||(a[2*r+1]!=h&&(t.opt_len+=(h-a[2*r+1])*a[2*r],a[2*r+1]=h),n--)}}(t),function(t,e,n){for(var r,i,o=[],a=0,s=1;s<=d;s++)o[s]=a=a+n[s-1]<<1;for(r=0;r<=e;r++)0!==(i=t[2*r+1])&&(t[2*r]=function(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}(o[i]++,i))}(i,p.max_code,t.bl_count)}}function ft(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i}function n(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}lt._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],lt.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],lt.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],lt.d_code=function(t){return t<256?e[t]:e[256+(t>>>7)]},lt.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],lt.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],lt.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],lt.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ft.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],ft.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],ft.static_l_desc=new ft(ft.static_ltree,lt.extra_lbits,257,286,d),ft.static_d_desc=new ft(ft.static_dtree,lt.extra_dbits,0,30,d),ft.static_bl_desc=new ft(null,lt.extra_blbits,0,19,7);var ht=[new n(0,0,0,0,0),new n(4,4,8,4,1),new n(4,5,16,8,1),new n(4,6,32,32,1),new n(4,4,16,16,2),new n(8,16,32,32,2),new n(8,16,128,128,2),new n(8,32,128,256,2),new n(32,128,258,1024,2),new n(32,258,258,4096,2)],pt=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function dt(t,e,n,r){var i=t[2*e],t=t[2*n];return i>>8&255)}function K(t,e){var n=e;16-n>>16-H,H+=n-16):(r|=t<>>=8,H-=8)}function nt(t,e){var n,r;if(W.pending_buf[B+2*z]=t>>>8&255,W.pending_buf[B+2*z+1]=255&t,W.pending_buf[N+z]=255&e,z++,0===t?L[2*e]++:(o++,t--,L[2*(lt._length_code[e]+256+1)]++,q[2*lt.d_code(t)]++),0==(8191&z)&&2>>=3,o>>3,(i=W.static_len+3+7>>>3)<=r&&(r=i)):r=i=e+5,e+4<=r&&-1!=t?ot(t,e,n):i==r?(K(2+(n?1:0),3),rt(ft.static_ltree,ft.static_dtree)):(K(4+(n?1:0),3),function(t,e,n){var r;for(K(t-257,5),K(e-1,5),K(n-4,4),r=0;r>=2),Ca&&0!=--r);return o<=C?o:C}function ct(t){return t.total_in=t.total_out=0,t.msg=null,W.pending=0,W.pending_out=0,u=113,l=0,G.dyn_tree=L,G.stat_desc=ft.static_l_desc,V.dyn_tree=q,V.stat_desc=ft.static_d_desc,Y.dyn_tree=D,Y.stat_desc=ft.static_bl_desc,H=r=0,U=8,X(),function(){var t;for(i=2*h,t=m[v-1]=0;t>1)&&(r=3),a|=r<<6,0!==A&&(a|=32),u=113,J((a=a+=31-a%31)>>8&255),J(255&a)),0!==W.pending){if(s.flush_pending(),0===s.avail_out)return l=-1,0}else if(0===s.avail_in&&e<=i&&4!=e)return s.msg=pt[7],-5;if(666==u&&0!==s.avail_in)return t.msg=pt[7],-5;if(0!==s.avail_in||0!==C||0!=e&&666!=u){switch(o=-1,ht[j].func){case 0:o=function(t){var e,n=65535;for(c-5t.avail_out&&(e=t.avail_out),0!==e&&(t.next_out.set(t.dstate.pending_buf.subarray(t.dstate.pending_out,t.dstate.pending_out+e),t.next_out_index),t.next_out_index+=e,t.dstate.pending_out+=e,t.total_out+=e,t.avail_out-=e,t.dstate.pending-=e,0===t.dstate.pending&&(t.dstate.pending_out=0))}},(t=t.zip||t).Deflater=t._jzlib_Deflater=function(t){var s=new i,u=new Uint8Array(512),t=t?t.level:-1;void 0===t&&(t=-1),s.deflateInit(t),s.next_out=u,this.append=function(t,e){var n,r=[],i=0,o=0,a=0;if(t.length){s.next_in_index=0,s.next_in=t,s.avail_in=t.length;do{if(s.next_out_index=0,s.avail_out=512,0!=s.deflate(0))throw new Error("deflating: "+s.msg)}while(s.next_out_index&&(512==s.next_out_index?r.push(new Uint8Array(u)):r.push(new Uint8Array(u.subarray(0,s.next_out_index)))),a+=s.next_out_index,e&&0 "+s.toRGB()+" -> "+s.toHex());a.appendChild(u),a.appendChild(s),o.appendChild(a)}catch(e){}return o}},function(t){function u(t){return(t=t.charCodeAt(0))===e||t===a?62:t===n||t===s?63:t>16),s((65280&n)>>8),s(255&n);return 2==r?s(255&(n=u(t.charAt(e))<<2|u(t.charAt(e+1))>>4)):1==r&&(s((n=u(t.charAt(e))<<10|u(t.charAt(e+1))<<4|u(t.charAt(e+2))>>2)>>8&255),s(255&n)),i}(n),e)},c.prototype.parse=function(){return this.directory=new p(this.contents),this.head=new w(this),this.name=new M(this),this.cmap=new _(this),this.toUnicode=new Map,this.hhea=new S(this),this.maxp=new C(this),this.hmtx=new O(this),this.post=new A(this),this.os2=new k(this),this.loca=new I(this),this.glyf=new P(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]},c.prototype.registerTTF=function(){var i,t,e;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){for(var t,e=[],n=0,r=(t=this.bbox).length;n>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+e)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(e=this.familyClass)||2===e||3===e||4===e||5===e||7===e,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},c.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},c.prototype.widthOfGlyph=function(t){var e=1e3/this.head.unitsPerEm;return this.hmtx.forGlyph(t).advance*e},c.prototype.widthOfString=function(t,e,n){for(var r,i,o,a=o=i=0,s=(t=""+t).length;0<=s?o>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},m.prototype.readInt32=function(){var t;return 2147483648<=(t=this.readUInt32())?t-4294967296:t},m.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},m.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},m.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},m.prototype.readInt16=function(){var t;return 32768<=(t=this.readUInt16())?t-65536:t},m.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},m.prototype.readString=function(t){for(var e,n=[],r=e=0;0<=t?e>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},m.prototype.readInt=function(){return this.readInt32()},m.prototype.writeInt=function(t){return this.writeInt32(t)},m.prototype.read=function(t){for(var e=[],n=0;0<=t?n>8,s[4*u+1]=(16711680&r[u])>>16,s[4*u]=(4278190080&r[u])>>24;return s},q),F=(L.prototype.generateCmap=function(){var t,e,n,r=this.font.cmap.tables[0].codeMap,i={};for(t in n=this.subset)e=n[t],i[t]=r[e];return i},L.prototype.glyphsFor=function(t){for(var e,n,r,i,o={},a=0,s=t.length;a>"),e.join("\n")},J)}(ut),Ft="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==Ut&&Ut||Function('return typeof this === "object" && this.content')()||Function("return this")(),Lt=function(){var c,e,n;function i(t){var e,n,r,i,o,a,s,u,c,l;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},r=null;;){switch(e=this.readUInt32(),o=function(){for(var t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.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(e);break;case"fcTL":r&&this.animation.frames.push(r),this.pos+=4,r={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},s=this.readUInt16(),i=this.readUInt16()||100,r.delay=1e3*s/i,r.disposeOp=this.data[this.pos++],r.blendOp=this.data[this.pos++],r.data=[];break;case"IDAT":case"fdAT":for("fdAT"===o&&(this.pos+=4,e-=4),t=(null!=r?r.data:void 0)||this.imgData,u=0;0<=e?un)throw new Error("More transparent colors than palette size");if(0<(a=n-this.transparency.indexed.length))for(c=0;0<=a?cthis.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.load=function(t,e,n){var r;return"function"==typeof e&&(n=e),(r=new XMLHttpRequest).open("GET",t,!0),r.responseType="arraybuffer",r.onload=function(){var t=new i(new Uint8Array(r.response||r.mozResponseArrayBuffer));return"function"==typeof(null!=e?e.getContext:void 0)&&t.render(e),"function"==typeof n?n(t):void 0},r.send(null)},i.prototype.read=function(t){for(var e=[],n=0;0<=t?n>t,this.codeSize=n-=t,this.bytesPos=o,e},t.prototype.getCode=function(t){for(var e,n=t[0],r=t[1],i=this.codeSize,o=this.codeBuf,a=this.bytes,s=this.bytesPos;i>16,t&=65535;return(0==i||i>n,this.codeSize=i-n,this.bytesPos=s,t},t.prototype.generateHuffmanTable=function(t){for(var e=t.length,n=0,r=0;rn&&(n=t[r]);for(var i=1<>=1;for(r=l;r>=1)){if(1==r)e=T,n=P;else if(2==r){for(var i=this.getBits(5)+257,o=this.getBits(5)+1,a=this.getBits(4)+4,s=Array(M.length),u=0;u>16;0>16)&&(y=this.getBits(y));var v=(65535&m)+y;d<=g+l&&(d=(S=this.ensureBuffer(g+l)).length);for(var b=0;b>>1;o(t[i],e)<0?n=1+i:r=i}return n},right:function(t,e,n,r){for(arguments.length<3&&(n=0),arguments.length<4&&(r=t.length);n>>1;0>16,t>>8&255,255&t)}function pt(t){return ht(t)+""}function dt(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function gt(t,e,n){var r,i,o=0,a=0,s=0;if(i=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(r=i[2].split(","),i[1]){case"hsl":return n(parseFloat(r[0]),parseFloat(r[1])/100,parseFloat(r[2])/100);case"rgb":return e(bt(r[0]),bt(r[1]),bt(r[2]))}return(i=No.get(t))?e(i.r,i.g,i.b):(null==t||"#"!==t.charAt(0)||isNaN(i=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&i)>>4,o|=o>>4,a=240&i,a|=a>>4,s=15&i,s|=s<<4):7===t.length&&(o=(16711680&i)>>16,a=(65280&i)>>8,s=255&i)),e(o,a,s))}function mt(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),s=a-o,u=(a+o)/2;return s?(i=u<.5?s/(a+o):s/(2-a-o),r=t==a?(e-n)/s+(e=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Mt(){for(var t,e=Ro,n=1/0;e;)e=e.c?(e.tg}function p(t,e,n){var r=[1,0,0],i=ae(ie(t),ie(e)),o=oe(i,i),a=i[0],s=o-a*a;if(!s)return!n&&t;var u=g*o/s,c=-g*a/s,l=ae(r,i),f=ue(r,u);se(f,ue(i,c));o=l,a=oe(f,o),s=oe(o,o),r=a*a-s*(oe(f,f)-1);if(!(r<0)){u=Math.sqrt(r),i=ue(o,(-a-u)/s);if(se(i,f),i=le(i),!n)return i;var h,c=t[0],l=e[0],r=t[1],n=e[1];l_o;return _e(h,function(a){var s,u,c,l,f;return{lineStart:function(){l=c=!1,f=1},point:function(t,e){var n,r,i=[t,e],o=h(t,e),e=m?o?0:d(t,e):o?d(t+(t<0?ko:-ko),e):0;!s&&(l=c=o)&&a.lineStart(),o!==c&&(n=p(s,i),(fe(s,n)||fe(i,n))&&(i[0]+=_o,i[1]+=_o,o=h(i[0],i[1]))),o!==c?(f=0,o?(a.lineStart(),n=p(i,s),a.point(n[0],n[1])):(n=p(s,i),a.point(n[0],n[1]),a.lineEnd()),s=n):y&&s&&m^o&&(e&u||!(r=p(i,s,!0))||(f=0,m?(a.lineStart(),a.point(r[0][0],r[0][1]),a.point(r[1][0],r[1][1]),a.lineEnd()):(a.point(r[1][0],r[1][1]),a.lineEnd(),a.lineStart(),a.point(r[0][0],r[0][1])))),!o||s&&fe(s,i)||a.point(i[0],i[1]),s=i,c=o,u=e},lineEnd:function(){c&&a.lineEnd(),s=null},clean:function(){return f|(l&&c)<<1}}},Ze(i,6*Oo),m?[0,-i]:[-ko,i-ko])}function Ce(u,c,l,f){return function(t){var e=t.a,n=t.b,r=e.x,i=e.y,o=0,a=1,s=n.x-r,e=n.y-i,n=u-r;if(s||!(0r&&0_o||io(r-u)>_o)&&(a.splice(o,0,new En(function(t,e,n){t=new Tn(t,null);return t.a=e,t.b=n,is.push(t),t}(i.site,c,io(n-l)<_o&&_o=s)return}else r={x:u,y:a};n={x:u,y:s}}else{if(r){if(r.y=s)return}else r={x:(a-u)/c,y:a};n={x:(s-u)/c,y:s}}else{if(r){if(r.y=o)return}else r={x:i,y:c*i+u};n={x:o,y:c*o+u}}else{if(r){if(r.xo&&(i=r.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(e=e[0])===(n=n[0])?s[a]?s[a]+=n:s[++a]=n:(s[++a]=null,u.push({i:a,x:Gn(e,n)})),o=ps.lastIndex;return oi&&(r=n,i=e);return r}function jr(t){return t.reduce(Er,0)}function Er(t,e){return t+e[1]}function Ir(t,e){return Fr(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Fr(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function Lr(t){return[Xi.min(t),Xi.max(t)]}function qr(t,e){return t.value-e.value}function Dr(t,e){var n=t._pack_next;(t._pack_next=e)._pack_prev=t,(e._pack_next=n)._pack_prev=e}function Nr(t,e){(t._pack_next=e)._pack_prev=t}function Rr(t,e){var n=e.x-t.x,r=e.y-t.y,e=t.r+e.r;return n*n+r*r<.999*e*e}function zr(t){function e(t){u=Math.min(t.x-t.r,u),c=Math.max(t.x+t.r,c),l=Math.min(t.y-t.r,l),f=Math.max(t.y+t.r,f)}if((n=t.children)&&(s=n.length)){var n,r,i,o,a,s,u=1/0,c=-1/0,l=1/0,f=-1/0;if(n.forEach(Br),(r=n[0]).x=-r.r,r.y=0,e(r),1e;)i.push(r/o);else for(;(r=t+n*++a)=g.length)return p?p.call(d,t):h?t.sort(h):t;for(var e,i,o,a,s=-1,u=t.length,c=g[r++],l=new v;++s=g.length)return t;var i=[],o=e[r++];return t.forEach(function(t,e){i.push({key:t,values:n(e,r)})}),o?i.sort(function(t,e){return o(t.key,e.key)}):i}(f(Xi.map,t,0),0)},d.key=function(t){return g.push(t),d},d.sortKeys=function(t){return e[g.length-1]=t,d},d.sortValues=function(t){return h=t,d},d.rollup=function(t){return p=t,d},d},Xi.set=function(t){var e=new d;if(t)for(var n=0,r=t.length;n=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Vo=Xi.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=Xi.round(t,Ct(t,e))).toFixed(Math.max(0,Math.min(20,Ct(t*(1+1e-15),e))))}}),Yo=Xi.time={},Xo=Date;Tt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Qo.setUTCDate.apply(this._,arguments)},setDay:function(){Qo.setUTCDay.apply(this._,arguments)},setFullYear:function(){Qo.setUTCFullYear.apply(this._,arguments)},setHours:function(){Qo.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Qo.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Qo.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Qo.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Qo.setUTCSeconds.apply(this._,arguments)},setTime:function(){Qo.setTime.apply(this._,arguments)}};var Qo=Date.prototype;Yo.year=Pt(function(t){return(t=Yo.day(t)).setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),Yo.years=Yo.year.range,Yo.years.utc=Yo.year.utc.range,Yo.day=Pt(function(t){var e=new Xo(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),Yo.days=Yo.day.range,Yo.days.utc=Yo.day.utc.range,Yo.dayOfYear=function(t){var e=Yo.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,n){n=7-n;var e=Yo[t]=Pt(function(t){return(t=Yo.day(t)).setDate(t.getDate()-(t.getDay()+n)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var e=Yo.year(t).getDay();return Math.floor((Yo.dayOfYear(t)+(e+n)%7)/7)-(e!==n)});Yo[t+"s"]=e.range,Yo[t+"s"].utc=e.utc.range,Yo[t+"OfYear"]=function(t){var e=Yo.year(t).getDay();return Math.floor((Yo.dayOfYear(t)+(e+n)%7)/7)}}),Yo.week=Yo.sunday,Yo.weeks=Yo.sunday.range,Yo.weeks.utc=Yo.sunday.utc.range,Yo.weekOfYear=Yo.sundayOfYear;var Jo={"-":"",_:" ",0:"0"},Zo=/^\s*\d+/,Ko=/^%/;Xi.locale=function(t){return{numberFormat:(x=(e=t).decimal,s=e.thousands,u=e.grouping,n=e.currency,_=u&&s?function(t,e){for(var n=t.length,r=[],i=0,o=u[0],a=0;0e));)o=u[i=(i+1)%u.length];return r.reverse().join(s)}:P,function(t){var t=Go.exec(t),s=t[1]||" ",u=t[2]||">",c=t[3]||"-",e=t[4]||"",l=t[5],f=+t[6],h=t[7],p=t[8],d=t[9],g=1,m="",y="",v=!1,b=!0,p=p&&+p.substring(1);switch((l||"0"===s&&"="===u)&&(l=s="0",u="="),d){case"n":h=!0,d="g";break;case"%":g=100,y="%",d="f";break;case"p":g=100,y="%",d="r";break;case"b":case"o":case"x":case"X":"#"===e&&(m="0"+d.toLowerCase());case"c":b=!1;case"d":v=!0,p=0;break;case"s":g=-1,d="r"}"$"===e&&(m=n[0],y=n[1]),"r"!=d||p||(d="g"),null!=p&&("g"==d?p=Math.max(1,Math.min(21,p)):"e"!=d&&"f"!=d||(p=Math.max(0,Math.min(20,p)))),d=Vo.get(d)||Ot;var w=l&&h;return function(t){var e=y;if(v&&t%1)return"";var n=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===c?"":c;g<0?(t=(i=Xi.formatPrefix(t,p)).scale(t),e=i.symbol+y):t*=g;var r,i,o=(t=d(t,p)).lastIndexOf(".");i=o<0?(a=b?t.lastIndexOf("e"):-1)<0?(r=t,""):(r=t.substring(0,a),t.substring(a)):(r=t.substring(0,o),x+t.substring(o+1)),!l&&h&&(r=_(r,1/0));var a=m.length+r.length+i.length+(w?0:n.length),o=a"===u?o+n+t:"^"===u?o.substring(0,a>>=1)+n+t+o.substring(a):n+(w?t:o+t))+e}}),timeFormat:Et(t)};var e,x,s,u,n,_},eo=Xi.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Xi.format=eo.numberFormat,Xi.geo={},Kt.prototype={s:0,t:0,add:function(t){$t(t,this.t,$o),$t($o.s,this.s,this),this.s?this.t+=$o.t:this.s=$o.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var $o=new Kt;Xi.geo.stream=function(t,e){t&&ta.hasOwnProperty(t.type)?ta[t.type](t,e):te(t,e)};var ta={Feature:function(t,e){te(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++rka(ra,oa)&&(oa=t):ka(t,oa)>ka(ra,oa)&&(ra=t):ra<=oa?(tka(ra,oa)&&(oa=t):ka(t,oa)>ka(ra,oa)&&(ra=t)):ya(t,e),la=s,sa=t}function ba(){da.point=va}function wa(){pa[0]=ra,pa[1]=oa,da.point=ya,la=null}function xa(t,e){var n;la?fa+=180_o&&(ra=-(oa=180)),pa[0]=ra,pa[1]=oa,la=null}function ka(t,e){return(e-=t)<0?e+360:e}function Aa(t,e){return t[0]-e[0]}function Ma(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tka(s[0],s[1])&&(s[1]=i[1]),ka(i[0],s[1])>ka(s[0],s[1])&&(s[0]=i[0])):n.push(s=i);for(var r,i,o,a=-1/0,e=0,s=n[o=n.length-1];e<=o;s=i,++e)i=n[e],(r=ka(s[1],i[0]))>a&&(a=r,ra=i[0],oa=s[1])}return ha=pa=null,ra===1/0||ia===1/0?[[NaN,NaN],[NaN,NaN]]:[[ra,ia],[oa,aa]]}),Xi.geo.centroid=function(t){Ca=Oa=Ta=Pa=ja=Ea=Ia=Fa=La=qa=Da=0,Xi.geo.stream(t,Na);var e=La,n=qa,r=Da,t=e*e+n*n+r*r;return t_o?Math.atan((Math.sin(r)*(u=Math.cos(o))*Math.sin(i)-Math.sin(o)*(i=Math.cos(r))*Math.sin(n))/(i*u*a)):(r+o)/2,c.point(p,h),c.lineEnd(),c.lineStart(),c.point(s,h),l=0),c.point(f=t,h=e),p=s},lineEnd:function(){c.lineEnd(),f=h=NaN},clean:function(){return 2-l}}},function(t,e,n,r){var i;null==t?(i=n*Co,r.point(-ko,i),r.point(0,i),r.point(ko,i),r.point(ko,0),r.point(ko,-i),r.point(0,-i),r.point(-ko,-i),r.point(-ko,0),r.point(-ko,i)):io(t[0]-e[0])>_o?(i=n*(t=t[0]_o}).map(l)).concat(Xi.range(Math.ceil(s/g)*g,a,g).filter(function(t){return io(t%y)>_o}).map(f))}var n,r,i,o,a,s,u,c,l,f,h,p,d=10,g=d,m=90,y=360,v=2.5;return e.lines=function(){return t().map(function(t){return{type:"LineString",coordinates:t}})},e.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(p(u).slice(1),h(i).reverse().slice(1),p(c).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(o=+t[0][0],i=+t[1][0],c=+t[0][1],u=+t[1][1],i=o&&t.x<=s&&t.y>=a&&t.y<=u?[[o,u],[s,u],[s,a],[o,a]]:[]).point=r[e]}),i}function n(t){return t.map(function(t,e){return{x:Math.round(o(t,e)/_o)*_o,y:Math.round(a(t,e)/_o)*_o,i:e}})}var r=ln,i=fn,o=r,a=i,c=fs;return t?e(t):(e.links=function(e){return Nn(n(e)).edges.filter(function(t){return t.l&&t.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},e.triangles=function(h){var p=[];return Nn(n(h)).cells.forEach(function(t,e){for(var n,r,i,o,a=t.site,s=t.edges.sort(kn),u=-1,c=s.length,l=s[c-1].edge,f=l.l===a?l.r:l.l;++uu&&(u=e.x),e.y>c&&(c=e.y),n.push(e.x),r.push(e.y);else for(i=0;i=a[0]&&r<=a[1]&&((n=i[Xi.bisect(s,r,1,c)-1]).y+=l,n.push(t[e]));return i}var f=!0,h=Number,p=Lr,d=Ir;return n.value=function(t){return arguments.length?(h=t,n):h},n.range=function(t){return arguments.length?(p=wt(t),n):p},n.bins=function(e){return arguments.length?(d="number"==typeof e?function(t){return Fr(t,e)}:wt(e),n):d},n.frequency=function(t){return arguments.length?(f=!!t,n):f},n},Xi.layout.pack=function(){function e(t,e){var n,r=s.call(this,t,e),i=r[0],t=c[0],e=c[1],o=null==a?Math.sqrt:"function"==typeof a?a:function(){return a};return i.x=i.y=0,wr(i,function(t){t.r=+o(t.value)}),wr(i,zr),u&&(n=u*(a?1:Math.max(2*i.r/t,2*i.r/e))/2,wr(i,function(t){t.r+=n}),wr(i,zr),wr(i,function(t){t.r-=n})),function t(e,n,r,i){var o=e.children;if(e.x=n+=i*e.x,e.y=r+=i*e.y,e.r*=i,o)for(var a=-1,s=o.length;++ar.x&&(r=t),t.depth>i.depth&&(i=t)}),o=p(n,r)/2-n.x,a=d[0]/(r.x+p(r,n)/2+o),s=d[1]/(i.depth||1),br(t,function(t){t.x=(t.x+o)*a,t.y=t.depth*s})),u}function c(o){var t=o.children,e=o.parent.children,n=o.i?e[o.i-1]:null;t.length?(function(){for(var t,e=0,n=0,r=o.children,i=r.length;0<=--i;)(t=r[i]).z+=e,t.m+=e,e+=t.s+(n+=t.c)}(),t=(t[0].z+t[t.length-1].z)/2,n?(o.z=n.z+p(o._,n._),o.m=o.z-t):o.z=t):n&&(o.z=n.z+p(o._,n._)),o.parent.A=function(t,e,n){if(e){for(var r,i=t,o=t,a=e,s=i.parent.children[0],u=i.m,c=o.m,l=a.m,f=s.m;a=Vr(a),i=Gr(i),a&&i;)s=Gr(s),(o=Vr(o)).a=t,0<(r=a.z+l-i.z-u+p(a._,i._))&&(function(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}(function(t,e,n){return t.a.parent===e.parent?t.a:n}(a,t,n),t,r),u+=r,c+=r),l+=a.m,u+=i.m,f+=s.m,c+=o.m;a&&!Vr(o)&&(o.t=a,o.m+=l-c),i&&!Gr(s)&&(s.t=i,s.m+=u-f,n=t)}return n}(o,n,o.parent.A||e[0])}function l(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function f(t){t.x*=d[0],t.y=t.depth*d[1]}var h=Xi.layout.hierarchy().sort(null).value(null),p=Wr,d=[1,1],g=null;return e.separation=function(t){return arguments.length?(p=t,e):p},e.size=function(t){return arguments.length?(g=null==(d=t)?f:null,e):g?null:d},e.nodeSize=function(t){return arguments.length?(g=null==(d=t)?null:f,e):g?d:null},vr(e,h)},Xi.layout.cluster=function(){function e(t,e){var r,n=u.call(this,t,e),i=n[0],o=0;wr(i,function(t){var e,n=t.children;n&&n.length?(t.x=(e=n).reduce(function(t,e){return t+e.x},0)/e.length,t.y=(n=n,1+Xi.max(n,function(t){return t.y}))):(t.x=r?o+=c(t,r):0,t.y=0,r=t)});var t=function t(e){var n=e.children;return n&&n.length?t(n[0]):e}(i),e=function t(e){var n,r=e.children;return r&&(n=r.length)?t(r[n-1]):e}(i),a=t.x-c(t,e)/2,s=e.x+c(e,t)/2;return wr(i,f?function(t){t.x=(t.x-i.x)*l[0],t.y=(i.y-t.y)*l[1]}:function(t){t.x=(t.x-a)/(s-a)*l[0],t.y=(1-(i.y?t.y/i.y:1))*l[1]}),n}var u=Xi.layout.hierarchy().sort(null).value(null),c=Wr,l=[1,1],f=!1;return e.separation=function(t){return arguments.length?(c=t,e):c},e.size=function(t){return arguments.length?(f=null==(l=t),e):f?null:l},e.nodeSize=function(t){return arguments.length?(f=null!=(l=t),e):f?l:null},vr(e,u)},Xi.layout.treemap=function(){function c(t,e){for(var n,r,i=-1,o=t.length;++in.dy)&&(c=n.dy);++on.dx)&&(c=n.dx);++or;o--);e=e.slice(i,o)}return e},i.tickFormat=function(t,n){if(!arguments.length)return Ms;arguments.length<2?n=Ms:"function"!=typeof n&&(n=Xi.format(n));var r=Math.max(1,u*t/i.ticks().length);return function(t){var e=t/h(Math.round(f(t)));return e*urect,.s>rect").attr("width",M[1]-M[0])}function w(t){t.select(".extent").attr("y",C[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function i(){function t(){var t=Xi.mouse(o),e=!1;i&&(t[0]+=i[0],t[1]+=i[1]),p||(Xi.event.altKey?(u=u||[(M[0]+M[1])/2,(C[0]+C[1])/2],g[0]=M[+(t[0]s&&(r.pop(),a.text(r.join(" ")),r=[t],a=e.append("tspan").attr("x",0).attr("y",o).attr("dy",1.1*++i+0+"em").text(t))})},D3Lixpi.wrapInnerLegend=function(t,c,e){t.each(function(){for(var t,e=0,n=d3.select(this),r=n.text().split(";").reverse(),i=[],o=0,a=n.attr("y"),s=0,u=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");t=r.pop();)i.push(t),u.text(i.join(" ")),i.pop(),u.text(i.join(" ")),i=[t],0==e?(u=n.append("tspan").attr("x",0).attr("y",a).attr("dy",1.7*++o+"em").text(t).attr("class","highlighted").style("font-size",c),s=.9):u=n.append("tspan").attr("x",0).attr("y",a).attr("dy",1.35*++o+s+"em").text(t),++e})},D3Lixpi.isIE=function(){return!!navigator.userAgent.match(/Trident/g)||!!navigator.userAgent.match(/MSIE/g)}})},function(t,e){$(function(){D3Lixpi.PieRadian=function(){return this.options={width:900,height:900,container:"#piechart",thickness:.46,padAngle:0,isRefreshable:!1,isInlineLegendHtml:!1,isInlineLegendValue:!0,intervalTime:6e3,interval:null,isActive:!0,isPlaying:!1,isFitSpace:!1,isHoverable:!0,isOuterLegend:!0,isInlineLegend:!1,isInnerLegend:!1,isSticlLegendsToCorners:!1,isOuterLegendForSmallSegments:!1,innerLegend:"",innerLegendRaw:"",inlineLegendTransitionDuration:500,inlineLegendTransitionEasing:"linear",innerLegendTransitionDuration:500,innerLegendTransitionEasing:"linear",transitionDuration:600,transitionEasing:"linear",startTransitionDuration:1300,startTransitionEasing:"bounce",hoverTransitionDuration:500,hoverTransitionEasing:"elastic",errorTextStyle:{fill:"rgb(108, 109, 114)",fontSize:"40px"},outerLegendPolylineStyle:{opacity:.2,fill:"transparent",strokeColor:"#000000",strokeWidth:"1px"},outerLegendTextStyle:{fill:"rgb(108, 109, 114)",fontSize:"14px"},inlineLegendTextStyle:{fill:"rgb(255, 255, 255)",fontSize:"15px",lineHeight:"18px"},innerLegendTextStyle:{fill:"rgb(108, 109, 114)",fontSize:"24px",highlightedFontSize:"50px",highlightedIndex:0,highlightedDy:1.7,defDy:1.35},colors:["#DC6900","#DB536A","#E0301E","#A32020","#602320","#EB8C00","#968C6D"],outerLegendValues:["Legend 1","Legend 2","Legend 3","Legend 4","Legend 5","Legend 6","Legend 7"],inlineLegendValues:["Legend 1","Legend 2","Legend 3","Legend 4","Legend 5","Legend 6","Legend 7"],innerLegendValues:["Legend 1","Legend 2","Legend 3","Legend 4","Legend 5","Legend 6","Legend 7"],tooltips:[],tooltips_visibile:!1,tooltips_class:"",container_class:"pwc-fe-chart-container"},this},D3Lixpi.PieRadian.prototype.init=function(t){var e=this;$.extend(this.options,t),e.color=d3.scale.ordinal().domain(e.options.colors).range(e.options.colors),e.resize();void 0===e.options.width&&void 0===e.options.height?(e.options.width=parseInt(d3.select(this.options.container).style("width"),10),e.options.height=parseInt(d3.select(this.options.container).style("height"),10)):(e.options.width,e.options.height);d3.select(e.options.container).append("div").attr("class",e.options.container_class);return e.svg=d3.select(e.options.container).select("."+e.options.container_class).append("svg").attr("viewBox","0 0 "+Math.min(e.options.width,e.options.height)+" "+Math.min(e.options.width,e.options.height)).attr("preserveAspectRatio","xMinYMin meet").on("mouseover",function(t){e.pause()}).on("mouseout",function(t){e.resume()}).append("g"),d3.select(e.options.container).select("."+e.options.container_class).append("div").attr("class","ch-legend-container"),e.svg.append("g").attr("class","innerLegends"),e.svg.append("g").attr("class","labels"),e.svg.append("g").attr("class","lines"),e.svg.append("g").attr("class","slices"),e.svg.append("g").attr("class","inlineLegends"),e.chartName="donut",e.svg.attr("class","arcs_container").attr("transform","translate("+Math.min(e.options.width,e.options.height)/2+","+Math.min(e.options.width,e.options.height)/2+")"),e.radius=Math.min(e.options.width,e.options.height)/2,e.options.isFitSpace?(e.innerRadius=e.radius*(1-e.options.thickness),e.outerRadius=+e.radius,(e.options.isOuterLegendForSmallSegments||e.options.isSticlLegendsToCorners)&&(e.innerRadius=.5*e.radius,e.outerRadius=.93*e.radius)):(e.innerRadius=.39*e.radius,e.outerRadius=.7*e.radius),e.arc=d3.svg.arc().outerRadius(function(t){return t.outerRadius||e.outerRadius}).innerRadius(function(t){return t.innerRadius||e.innerRadius}),e.arcOver=d3.svg.arc().outerRadius(e.outerRadius).innerRadius(e.innerRadius-10*e.options.thickness),e.outerArc=d3.svg.arc().outerRadius(e.outerRadius+10).innerRadius(e.outerRadius+10),e.options.tooltips.length&&e.options.tooltips_visibile&&(e.tooltip=d3.select("body").append("div").attr("class",e.options.tooltips_class).style("opacity",0)),this},D3Lixpi.PieRadian.prototype.error=function(t){var e=this;e.svg.select("g.innerLegends").selectAll("foreignobject").remove(),e.svg.select("g.innerLegends").selectAll("text").remove(),e.svg.select("g.inlineLegends").selectAll("foreignobject").remove(),e.svg.select("g.inlineLegends").selectAll("text").remove(),e.svg.select("g.labels").selectAll("text").remove(),e.svg.select("g.lines").selectAll("polyline").remove(),e.svg.select("g.slices").selectAll("path").remove(),$(e.options.container).find(".ch-legend-container").html(""),e.svg.select("g.innerLegends").append("text").attr("class","error").style("fill",e.options.errorTextStyle.fill).style("font-size",e.options.errorTextStyle.fontSize).text(t).attr("text-anchor","middle"),setTimeout(function(){e.resize()},e.options.transitionDuration)},D3Lixpi.PieRadian.prototype.redraw=function(t){this.build(t)},D3Lixpi.PieRadian.prototype.build=function(t,i){var e,o,a,n,s=this;i=i||[],0 1 or slidesPerRow > 1"),t.variableWidth=!1);for(var r=[],i=null,o=0;o=n.length));c+=1)u.push(f.default.cloneElement(n[c],{key:100*o+10*s+c,tabIndex:-1,style:{width:"".concat(100/t.slidesPerRow,"%"),display:"inline-block"}}));a.push(f.default.createElement("div",{key:10*o+s},u))}t.variableWidth?r.push(f.default.createElement("div",{key:o,style:{width:i}},a)):r.push(f.default.createElement("div",{key:o},a))}if("unslick"!==t)return r.length<=t.slidesToShow&&(t.unslick=!0),f.default.createElement(h.InnerSlider,d({style:this.props.style,ref:this.innerSliderRefHandler},t),r);var l="regular slider "+(this.props.className||"");return f.default.createElement("div",{className:l},n)}}])&&u(t.prototype,e),n&&u(t,n),i}();e.default=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InnerSlider=void 0;var h=r(n(2)),o=r(n(21)),a=r(n(22)),u=r(n(5)),p=n(4),c=n(23),l=n(24),d=n(25),s=r(n(26));function r(t){return t&&t.__esModule?t:{default:t}}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(){return(g=Object.assign||function(t){for(var e=1;e=h.default.Children.count(f.props.children)&&f.changeSlide({message:"index",index:h.default.Children.count(f.props.children)-f.props.slidesToShow,currentSlide:f.state.currentSlide}),f.props.autoplay?f.autoPlay("update"):f.pause("paused")})}),S(x(f),"onWindowResized",function(t){f.debouncedResize&&f.debouncedResize.cancel(),f.debouncedResize=(0,a.default)(function(){return f.resizeWindow(t)},50),f.debouncedResize()}),S(x(f),"resizeWindow",function(){var t,e=!(0=-(0,p.getPreClones)(t);r--)if(f.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}0=f.props.slidesToShow&&(s=(0,p.extractObject)(i,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),t=f.props.pauseOnDotsHover,s=y(y({},s),{},{clickHandler:f.changeSlide,onMouseEnter:t?f.onDotsLeave:null,onMouseOver:t?f.onDotsOver:null,onMouseLeave:t?f.onDotsLeave:null}),t=h.default.createElement(l.Dots,s));var s=(0,p.extractObject)(i,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);s.clickHandler=f.changeSlide,f.props.arrows&&(e=h.default.createElement(d.PrevArrow,s),n=h.default.createElement(d.NextArrow,s));i=null;f.props.vertical&&(i={height:f.state.listHeight});s=null;!1===f.props.vertical?!0===f.props.centerMode&&(s={padding:"0px "+f.props.centerPadding}):!0===f.props.centerMode&&(s={padding:f.props.centerPadding+" 0px"});i=y(y({},i),s),s=f.props.touchMove,i={className:"slick-list",style:i,onClick:f.clickHandler,onMouseDown:s?f.swipeStart:null,onMouseMove:f.state.dragging&&s?f.swipeMove:null,onMouseUp:s?f.swipeEnd:null,onMouseLeave:f.state.dragging&&s?f.swipeEnd:null,onTouchStart:s?f.swipeStart:null,onTouchMove:f.state.dragging&&s?f.swipeMove:null,onTouchEnd:s?f.touchEnd:null,onTouchCancel:f.state.dragging&&s?f.swipeEnd:null,onKeyDown:f.props.accessibility?f.keyHandler:null},s={className:r,dir:"ltr",style:f.props.style};return f.props.unslick&&(i={className:"slick-list"},s={className:r}),h.default.createElement("div",s,f.props.unslick?"":e,h.default.createElement("div",g({ref:f.listRefHandler},i),h.default.createElement(c.Track,g({ref:f.trackRefHandler},o),f.props.children)),f.props.unslick?"":n,f.props.unslick?"":t)}),f.list=null,f.track=null,f.state=y(y({},o.default),{},{currentSlide:f.props.initialSlide,slideCount:h.default.Children.count(f.props.children)}),f.callbackTimers=[],f.clickable=!0,f.debouncedResize=null;t=f.ssrInit();return f.state=y(y({},f.state),t),f}return t=i,(e=[{key:"didPropsChange",value:function(t){for(var e=!1,n=0,r=Object.keys(this.props);n=t.slideCount;return t.centerMode?(r=Math.floor(t.slidesToShow/2),n=(i-t.currentSlide)%t.slideCount==0,i>t.currentSlide-r-1&&i<=t.currentSlide+r&&(e=!0)):e=t.currentSlide<=i&&i=t.slideCount?t.targetSlide-t.slideCount:t.targetSlide)}}function x(t,e){return t.key||e}function p(u){var c,l=[],f=[],h=[],p=m.default.Children.count(u.children),d=(0,v.lazyStartIndex)(u),g=(0,v.lazyEndIndex)(u);return m.default.Children.forEach(u.children,function(t,e){var n,r={message:"children",index:e,slidesToScroll:u.slidesToScroll,currentSlide:u.currentSlide},i=!u.lazyLoad||u.lazyLoad&&0<=u.lazyLoadedList.indexOf(e)?t:m.default.createElement("div",null),o=(s=b(b({},u),{},{index:e}),n={},void 0!==s.variableWidth&&!1!==s.variableWidth||(n.width=s.slideWidth),s.fade&&(n.position="relative",s.vertical?n.top=-s.index*parseInt(s.slideHeight):n.left=-s.index*parseInt(s.slideWidth),n.opacity=s.currentSlide===s.index?1:0,s.useCSS&&(n.transition="opacity "+s.speed+"ms "+s.cssEase+", visibility "+s.speed+"ms "+s.cssEase)),n),a=i.props.className||"",s=w(b(b({},u),{},{index:e}));l.push(m.default.cloneElement(i,{key:"original"+x(i,e),"data-index":e,className:(0,y.default)(s,a),tabIndex:"-1","aria-hidden":!s["slick-active"],style:b(b({outline:"none"},i.props.style||{}),o),onClick:function(t){i.props&&i.props.onClick&&i.props.onClick(t),u.focusOnSelect&&u.focusOnSelect(r)}})),u.infinite&&!1===u.fade&&((n=p-e)<=(0,v.getPreClones)(u)&&p!==u.slidesToShow&&(d<=(c=-n)&&(i=t),s=w(b(b({},u),{},{index:c})),f.push(m.default.cloneElement(i,{key:"precloned"+x(i,c),"data-index":c,tabIndex:"-1",className:(0,y.default)(s,a),"aria-hidden":!s["slick-active"],style:b(b({},i.props.style||{}),o),onClick:function(t){i.props&&i.props.onClick&&i.props.onClick(t),u.focusOnSelect&&u.focusOnSelect(r)}}))),p!==u.slidesToShow&&((c=p+e)..":" />")}m.a.prototype.forceUpdate=function(t){return null==this.__v?console.warn('Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application.\n\n'+S(r())):null==this.__P&&console.warn('Can\'t call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n'+S(this.__v)),a.call(this,t)},function(){var e,n,r,i,o;e=m.i.__b,n=m.i.diffed,r=m.i.__,i=m.i.vnode,o=m.i.__r,m.i.diffed=function(t){_(t)&&x.pop(),w.pop(),n&&n(t)},m.i.__b=function(t){_(t)&&w.push(t),e&&e(t)},m.i.__=function(t,e){x=[],r&&r(t,e)},m.i.vnode=function(t){t.__o=0, "+e+");")}c&&c(t,e)},m.i.__b=function(t){var n,r,i,o,e=t.type,a=function t(e){return e?"function"==typeof e.type?t(e.__):e:{}}(t.__);if(l=!0,void 0===e)throw new Error("Undefined component passed to createElement()\n\nYou likely forgot to export your component or might have mixed up default and named imports"+A(t)+"\n\n"+S(t));if(null!=e&&"object"==y(e)){if(void 0!==e.__k&&void 0!==e.__e)throw new Error("Invalid type passed to createElement(): "+e+"\n\nDid you accidentally pass a JSX literal as JSX twice?\n\n let My"+b(t)+" = "+A(e)+";\n let vnode = ;\n\nThis usually happens when you export a JSX literal and not the component.\n\n"+S(t));throw new Error("Invalid type passed to createElement(): "+(Array.isArray(e)?"array":e))}if("thead"!==e&&"tfoot"!==e&&"tbody"!==e||"table"===a.type?"tr"===e&&"thead"!==a.type&&"tfoot"!==a.type&&"tbody"!==a.type&&"table"!==a.type?console.error("Improper nesting of table. Your should have a parent."+A(t)+"\n\n"+S(t)):"td"===e&&"tr"!==a.type?console.error("Improper nesting of table. Your should have a parent."+A(t)+"\n\n"+S(t)):"th"===e&&"tr"!==a.type&&console.error("Improper nesting of table. Your should have a ."+A(t)+"\n\n"+S(t)):console.error("Improper nesting of table. Your should have a parent."+A(t)+"\n\n"+S(t)),void 0!==t.ref&&"function"!=typeof t.ref&&"object"!=y(t.ref)&&!("$$typeof"in t))throw new Error('Component\'s "ref" property should be a function, or an object created by createRef(), but got ['+y(t.ref)+"] instead\n"+A(t)+"\n\n"+S(t));if("string"==typeof t.type)for(var s in t.props)if("o"===s[0]&&"n"===s[1]&&"function"!=typeof t.props[s]&&null!=t.props[s])throw new Error("Component's \""+s+'" property should be a function, but got ['+y(t.props[s])+"] instead\n"+A(t)+"\n\n"+S(t));if("function"==typeof t.type&&t.type.propTypes){if("Lazy"===t.type.displayName&&p&&!p.lazyPropTypes.has(t.type)){var u="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var c=t.type();p.lazyPropTypes.set(t.type,!0),console.warn(u+"Component wrapped in lazy() is "+b(c))}catch(t){console.warn(u+"We will log the wrapped component's name once it is loaded.")}}a=t.props;t.type.__f&&delete(a=function(t,e){for(var n in e)t[n]=e[n];return t}({},a)).ref,n=t.type.propTypes,r=a,i=b(t),o=function(){return S(t)},Object.keys(n).forEach(function(t){var e;try{e=n[t](r,t,i,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){e=t}!e||e.message in v||(v[e.message]=!0,console.error("Failed prop type: "+e.message+("\n"+o()||"")))})}f&&f(t)},m.i.__h=function(t,e,n){if(!t||!l)throw new Error("Hook can only be invoked from render methods.");h&&h(t,e,n)};var t={nodeName:(t=function(e,n){return{get:function(){var t="get"+e+n;d&&d.indexOf(t)<0&&(d.push(t),console.warn("getting vnode."+e+" is deprecated, "+n))},set:function(){var t="set"+e+n;d&&d.indexOf(t)<0&&(d.push(t),console.warn("setting vnode."+e+" is not allowed, "+n))}}})("nodeName","use vnode.type"),attributes:t("attributes","use vnode.props"),children:t("children","use vnode.props.children")},g=Object.create({},t);m.i.vnode=function(t){var e=t.props;if(null!==t.type&&null!=e&&("__source"in e||"__self"in e)){var n,r=t.props={};for(n in e){var i=e[n];"__source"===n?t.__source=i:"__self"===n?t.__self=i:r[n]=i}}t.__proto__=g,s&&s(t)},m.i.diffed=function(e){if(e.__k&&e.__k.forEach(function(t){if(t&&void 0===t.type){delete t.__,delete t.__b;t=Object.keys(t).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+t+"}.\n\n"+S(e))}}),l=!1,a&&a(e),null!=e.__k)for(var t=[],n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n",{class:"pwc-fe-chart_background"}),this.$donut_foreground=$("
",{class:"pwc-fe-chart_foreground"}),this.render()}var t,n,r;return t=e,(n=[{key:"validateParams",value:function(){"normal"!==this.options.mode&&(this.options.hasBackground=!0)}},{key:"render",value:function(){this.options.hasBackground&&this.$donut_background.appendTo(this.$container),this.$donut_foreground.appendTo(this.$container),this.options.hasBackground?this.makeBackground():this.play()}},{key:"cleanUp",value:function(t){(0t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n .slide_content")).height()),1

Contact us

Sofie Simon

Senior Manager, Sustainability Leader for Deals Financial Services, Zurich, PwC Switzerland

+41 58 792 26 46

Email

OSZAR »