@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
1 lines • 61.9 kB
JavaScript
module.exports=function(r){var n={};function i(t){if(n[t])return n[t].exports;var e=n[t]={exports:{},id:t,loaded:!1};return r[t].call(e.exports,e,e.exports,i),e.loaded=!0,e.exports}return i.m=r,i.c=n,i.p="",i(0)}({0:function(t,e,r){t.exports=r(1662)},3:function(t,e){t.exports=function(){throw Error("define cannot be used indirect")}},20:function(t,e){t.exports=require("../kendo.core")},957:function(t,e){t.exports=require("../kendo.color")},1662:function(t,e,r){var n;r(3),r=[r(1663),r(20),r(957),r(1664)],void 0===(e="function"==typeof(n=function(){var s=window.kendo.jQuery;window.kendo.pdf=window.kendo.pdf||{};var t,i=kendo.support.browser,l=kendo.drawing,f=l.util,p=f.extendStatic,o=kendo.pdf,m=kendo.geometry,O=typeof Uint8Array!=="undefined"&&kendo.support.browser&&(!kendo.support.browser.msie||kendo.support.browser.version>9),D=function(){var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{decode:function(t){var e=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=0,n=e.length,i=[];while(r<n){var o=p.indexOf(e.charAt(r++));var a=p.indexOf(e.charAt(r++));var s=p.indexOf(e.charAt(r++));var f=p.indexOf(e.charAt(r++));var h=o<<2|a>>>4;var c=(a&15)<<4|s>>>2;var u=(s&3)<<6|f;i.push(h);if(s!=64)i.push(c);if(f!=64)i.push(u)}return i},encode:function(t){var e=0,r=t.length;var n="";while(e<r){var i=t[e++];var o=t[e++];var a=t[e++];var s=i>>>2;var c=(i&3)<<4|o>>>4;var f=(o&15)<<2|a>>>6;var h=a&63;if(e-r==2)f=h=64;else if(e-r==1)h=64;n+=p.charAt(s)+p.charAt(c)+p.charAt(f)+p.charAt(h)}return n}}}();function T(n){var r=0,i=0;if(n==null)n=O?new Uint8Array(256):[];else i=n.length;var u=O?function(t){if(t>=n.length){var e=new Uint8Array(Math.max(t+256,n.length*2));e.set(n,0);n=e}}:function(){};var t=O?function(){return new Uint8Array(n.buffer,0,i)}:function(){return n};var p=O?function(t){if(typeof t=="string")return c(t);var e=t.length;u(r+e);n.set(t,r);r+=e;if(r>i)i=r}:function(t){if(typeof t=="string")return c(t);for(var e=0;e<t.length;++e)o(t[e])};var l=O?function(t,e){if(n.buffer.slice)return new Uint8Array(n.buffer.slice(t,t+e));else{var r=new Uint8Array(e);r.set(new Uint8Array(n.buffer,t,e));return r}}:function(t,e){return n.slice(t,t+e)};function d(){return r>=i}function e(){return r<i?n[r++]:0}function o(t){u(r);n[r++]=t&255;if(r>i)i=r}function a(){return e()<<8|e()}function s(t){o(t>>8);o(t)}function g(){var t=a();return t>=32768?t-65536:t}function v(t){s(t<0?t+65536:t)}function f(){return a()*65536+a()}function h(t){s(t>>>16&65535);s(t&65535)}function y(){var t=f();return t>=2147483648?t-4294967296:t}function m(t){h(t<0?t+4294967296:t)}function w(){return f()/65536}function S(t){h(Math.round(t*65536))}function b(){return y()/65536}function x(t){m(Math.round(t*65536))}function _(t){return T(t,e)}function C(t){return String.fromCharCode.apply(String,_(t))}function c(t){for(var e=0;e<t.length;++e)o(t.charCodeAt(e))}function T(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=e();return r}var k={eof:d,readByte:e,writeByte:o,readShort:a,writeShort:s,readLong:f,writeLong:h,readFixed:w,writeFixed:S,readShort_:g,writeShort_:v,readLong_:y,writeLong_:m,readFixed_:b,writeFixed_:x,read:_,write:p,readString:C,writeString:c,times:T,get:t,slice:l,offset:function(t){if(t!=null){r=t;return k}return r},skip:function(t){r+=t},toString:function(){throw new Error("FIX CALLER. BinaryStream is no longer convertible to string!")},length:function(){return i},saveExcursion:function(t){var e=r;try{return t()}finally{r=e}},writeBase64:function(t){if(window.atob)c(window.atob(t));else p(D.decode(t))},base64:function(){return D.encode(t())}};return k}function h(t){var e=[],r=0,n=t.length,i,o;while(r<n){i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){o=t.charCodeAt(r++);if((o&64512)==56320)e.push(((i&1023)<<10)+(o&1023)+65536);else{e.push(i);r--}}else e.push(i)}return e}function c(t){return t.map(function(t){var e="";if(t>65535){t-=65536;e+=String.fromCharCode(t>>>10&1023|55296);t=56320|t&1023}e+=String.fromCharCode(t);return e}).join("")}function e(t){var e=window.atob(t);var r=new Uint8Array(e.length);for(var n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}function n(t){var e=new Uint8Array(t.length);for(var r=0;r<t.length;r++)e[r]=t[r];return e}function w(t){if(window.atob)return e(t);return n(D.decode(t))}function S(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function k(t){return Object.keys(t).sort(function(t,e){return t-e}).map(parseFloat)}var b=function t(e){this.raw=e;this.scalerType=e.readLong();this.tableCount=e.readShort();this.searchRange=e.readShort();this.entrySelector=e.readShort();this.rangeShift=e.readShort();var r=this.tables={};for(var n=0;n<this.tableCount;++n){var i={tag:e.readString(4),checksum:e.readLong(),offset:e.readLong(),length:e.readLong()};r[i.tag]=i}},r=(b.prototype.readTable=function t(e,r){var n=this.tables[e];if(!n)throw new Error("Table "+e+" not found in directory");return this[e]=n.table=new r(this,n)},b.prototype.render=function c(t){var u=this;var e=Object.keys(t).length;var r=Math.pow(2,Math.floor(Math.log(e)/Math.LN2));var n=r*16;var p=Math.floor(Math.log(r)/Math.LN2);var l=e*16-n;var i=T();i.writeLong(this.scalerType);i.writeShort(e);i.writeShort(n);i.writeShort(p);i.writeShort(l);var d=e*16;var o=i.offset()+d;var a=null;var s=T();for(var f in t)if(S(t,f)){var h=t[f];i.writeString(f);i.writeLong(u.checksum(h));i.writeLong(o);i.writeLong(h.length);s.write(h);if(f=="head")a=o;o+=h.length;while(o%4){s.writeByte(0);o++}}i.write(s.get());var g=this.checksum(i.get());var v=2981146554-g;i.offset(a+8);i.writeLong(v);return i.get()},b.prototype.checksum=function t(e){e=T(e);var r=0;while(!e.eof())r+=e.readLong();return r&4294967295},function t(e,r){this.definition=r;this.length=r.length;this.offset=r.offset;this.file=e;this.rawData=e.raw;this.parse(e.raw)}),x=(r.prototype.raw=function t(){return this.rawData.slice(this.offset,this.length)},r.prototype.parse=function t(){},function(t){function e(){t.apply(this,arguments)}p(e,t);e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.fn=e.prototype;e.fn.init=e.fn.constructor;e.prototype.parse=function t(e){e.offset(this.offset);this.version=e.readLong();this.revision=e.readLong();this.checkSumAdjustment=e.readLong();this.magicNumber=e.readLong();this.flags=e.readShort();this.unitsPerEm=e.readShort();this.created=e.read(8);this.modified=e.read(8);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_()};e.prototype.render=function t(e){var r=T();r.writeLong(this.version);r.writeLong(this.revision);r.writeLong(0);r.writeLong(this.magicNumber);r.writeShort(this.flags);r.writeShort(this.unitsPerEm);r.write(this.created);r.write(this.modified);r.writeShort_(this.xMin);r.writeShort_(this.yMin);r.writeShort_(this.xMax);r.writeShort_(this.yMax);r.writeShort(this.macStyle);r.writeShort(this.lowestRecPPEM);r.writeShort_(this.fontDirectionHint);r.writeShort_(e);r.writeShort_(this.glyphDataFormat);return r.get()};return e}(r)),_=function(t){function e(){t.apply(this,arguments)}p(e,t);e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.fn=e.prototype;e.fn.init=e.fn.constructor;e.prototype.parse=function t(e){e.offset(this.offset);var r=this.file.head.indexToLocFormat;if(r===0)this.offsets=e.times(this.length/2,function(){return 2*e.readShort()});else this.offsets=e.times(this.length/4,e.readLong)};e.prototype.offsetOf=function t(e){return this.offsets[e]};e.prototype.lengthOf=function t(e){return this.offsets[e+1]-this.offsets[e]};e.prototype.render=function t(e){var r=T();var n=e[e.length-1]>65535;for(var i=0;i<e.length;++i)if(n)r.writeLong(e[i]);else r.writeShort(e[i]/2);return{format:n?1:0,table:r.get()}};return e}(r),C=function(t){function e(){t.apply(this,arguments)}p(e,t);e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.fn=e.prototype;e.fn.init=e.fn.constructor;e.prototype.parse=function t(e){e.offset(this.offset);this.version=e.readLong();this.ascent=e.readShort_();this.descent=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.skip(4*2);this.metricDataFormat=e.readShort_();this.numOfLongHorMetrics=e.readShort()};e.prototype.render=function t(e){var r=T();r.writeLong(this.version);r.writeShort_(this.ascent);r.writeShort_(this.descent);r.writeShort_(this.lineGap);r.writeShort(this.advanceWidthMax);r.writeShort_(this.minLeftSideBearing);r.writeShort_(this.minRightSideBearing);r.writeShort_(this.xMaxExtent);r.writeShort_(this.caretSlopeRise);r.writeShort_(this.caretSlopeRun);r.writeShort_(this.caretOffset);r.write([0,0,0,0,0,0,0,0]);r.writeShort_(this.metricDataFormat);r.writeShort(e.length);return r.get()};return e}(r),F=function(t){function e(){t.apply(this,arguments)}p(e,t);e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.fn=e.prototype;e.fn.init=e.fn.constructor;e.prototype.parse=function t(e){e.offset(this.offset);this.version=e.readLong();this.numGlyphs=e.readShort();this.maxPoints=e.readShort();this.maxContours=e.readShort();this.maxComponentPoints=e.readShort();this.maxComponentContours=e.readShort();this.maxZones=e.readShort();this.maxTwilightPoints=e.readShort();this.maxStorage=e.readShort();this.maxFunctionDefs=e.readShort();this.maxInstructionDefs=e.readShort();this.maxStackElements=e.readShort();this.maxSizeOfInstructions=e.readShort();this.maxComponentElements=e.readShort();this.maxComponentDepth=e.readShort()};e.prototype.render=function t(e){var r=T();r.writeLong(this.version);r.writeShort(e.length);r.writeShort(this.maxPoints);r.writeShort(this.maxContours);r.writeShort(this.maxComponentPoints);r.writeShort(this.maxComponentContours);r.writeShort(this.maxZones);r.writeShort(this.maxTwilightPoints);r.writeShort(this.maxStorage);r.writeShort(this.maxFunctionDefs);r.writeShort(this.maxInstructionDefs);r.writeShort(this.maxStackElements);r.writeShort(this.maxSizeOfInstructions);r.writeShort(this.maxComponentElements);r.writeShort(this.maxComponentDepth);return r.get()};return e}(r),L=function(t){function e(){t.apply(this,arguments)}p(e,t);e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.fn=e.prototype;e.fn.init=e.fn.constructor;e.prototype.parse=function t(e){e.offset(this.offset);var r=this.file,n=r.hhea;this.metrics=e.times(n.numOfLongHorMetrics,function(){return{advance:e.readShort(),lsb:e.readShort_()}});var i=r.maxp.numGlyphs-r.hhea.numOfLongHorMetrics;this.leftSideBearings=e.times(i,e.readShort_)};e.prototype.forGlyph=function t(e){var r=this.metrics;var n=r.length;if(e<n)return r[e];return{advance:r[n-1].advance,lsb:this.leftSideBearings[e-n]}};e.prototype.render=function t(e){var r=this;var n=T();for(var i=0;i<e.length;++i){var o=r.forGlyph(e[i]);n.writeShort(o.advance);n.writeShort_(o.lsb)}return n.get()};return e}(r),I=function(){var d=function t(e){this.raw=e};var t={compound:{}};t.compound.get=function(){return false};d.prototype.render=function t(){return this.raw.get()};Object.defineProperties(d.prototype,t);var o=1;var a=8;var s=32;var f=64;var h=128;var g=function t(e){this.raw=e;var r=this.glyphIds=[];var n=this.idOffsets=[];while(true){var i=e.readShort();n.push(e.offset());r.push(e.readShort());if(!(i&s))break;e.skip(i&o?4:2);if(i&h)e.skip(8);else if(i&f)e.skip(4);else if(i&a)e.skip(2)}};var e={compound:{}};e.compound.get=function(){return true};g.prototype.render=function t(e){var r=this;var n=T(this.raw.get());for(var i=0;i<this.glyphIds.length;++i){var o=r.glyphIds[i];n.offset(r.idOffsets[i]);n.writeShort(e[o])}return n.get()};Object.defineProperties(g.prototype,e);return function(t){function e(){t.apply(this,arguments)}p(e,t);e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.fn=e.prototype;e.fn.init=e.fn.constructor;e.prototype.parse=function t(){this.cache={}};e.prototype.glyphFor=function c(t){var e=this.cache;if(S(e,t))return e[t];var r=this.file.loca;var n=r.lengthOf(t);if(n===0)return e[t]=null;var i=this.rawData;var o=this.offset+r.offsetOf(t);var a=T(i.slice(o,n));var s=a.readShort_();var f=a.readShort_();var u=a.readShort_();var p=a.readShort_();var l=a.readShort_();var h=e[t]=s<0?new g(a):new d(a);h.numberOfContours=s;h.xMin=f;h.yMin=u;h.xMax=p;h.yMax=l;return h};e.prototype.render=function t(e,r,n){var i=T(),o=[];for(var a=0;a<r.length;++a){var s=r[a];var f=e[s];if(i.offset()%2)i.writeByte(0);o.push(i.offset());if(f)i.write(f.render(n))}if(i.offset()%2)i.writeByte(0);o.push(i.offset());return{table:i.get(),offsets:o}};return e}(r)}(),A=function(){var u=function t(e,r){this.text=e;this.length=e.length;this.platformID=r.platformID;this.platformSpecificID=r.platformSpecificID;this.languageID=r.languageID;this.nameID=r.nameID};return function(t){function e(){t.apply(this,arguments)}p(e,t);e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.fn=e.prototype;e.fn.init=e.fn.constructor;e.prototype.parse=function t(e){e.offset(this.offset);e.readShort();var r=e.readShort();var n=this.offset+e.readShort();var i=e.times(r,function(){return{platformID:e.readShort(),platformSpecificID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:e.readShort()+n}});var o=this.strings={};for(var a=0;a<i.length;++a){var s=i[a];e.offset(s.offset);var f=e.readString(s.length);if(!o[s.nameID])o[s.nameID]=[];o[s.nameID].push(new u(f,s))}this.postscriptEntry=o[6][0];this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")};e.prototype.render=function c(t){var e=this;var r=this.strings;var n=0;for(var i in r)if(S(r,i))n+=r[i].length;var o=T();var a=T();o.writeShort(0);o.writeShort(n);o.writeShort(6+12*n);for(i in r)if(S(r,i)){var s=i==6?[new u(t,e.postscriptEntry)]:r[i];for(var f=0;f<s.length;++f){var h=s[f];o.writeShort(h.platformID);o.writeShort(h.platformSpecificID);o.writeShort(h.languageID);o.writeShort(h.nameID);o.writeShort(h.length);o.writeShort(a.offset());a.writeString(h.text)}}o.write(a.get());return o.get()};return e}(r)}(),M=function(){var c=".notdef .null nonmarkingreturn space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore grave a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute agrave acircumflex adieresis atilde aring ccedilla eacute egrave ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis dagger degree cent sterling section bullet paragraph germandbls registered copyright trademark acute dieresis notequal AE Oslash infinity plusminus lessequal greaterequal yen mu partialdiff summation product pi integral ordfeminine ordmasculine Omega ae oslash questiondown exclamdown logicalnot radical florin approxequal Delta guillemotleft guillemotright ellipsis nonbreakingspace Agrave Atilde Otilde OE oe endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex apple Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde macron breve dotaccent ring cedilla hungarumlaut ogonek caron Lslash lslash Scaron scaron Zcaron zcaron brokenbar Eth eth Yacute yacute Thorn thorn minus multiply onesuperior twosuperior threesuperior onehalf onequarter threequarters franc Gbreve gbreve Idotaccent Scedilla scedilla Cacute cacute Ccaron ccaron dcroat".split(/\s+/g);return function(t){function e(){t.apply(this,arguments)}p(e,t);e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.fn=e.prototype;e.fn.init=e.fn.constructor;e.prototype.parse=function t(e){var r=this;e.offset(this.offset);this.format=e.readLong();this.italicAngle=e.readFixed_();this.underlinePosition=e.readShort_();this.underlineThickness=e.readShort_();this.isFixedPitch=e.readLong();this.minMemType42=e.readLong();this.maxMemType42=e.readLong();this.minMemType1=e.readLong();this.maxMemType1=e.readLong();var n;switch(this.format){case 65536:case 196608:break;case 131072:n=e.readShort();this.glyphNameIndex=e.times(n,e.readShort);this.names=[];var i=this.offset+this.length;while(e.offset()<i)r.names.push(e.readString(e.readByte()));break;case 151552:n=e.readShort();this.offsets=e.read(n);break;case 262144:this.map=e.times(this.file.maxp.numGlyphs,e.readShort);break}};e.prototype.glyphFor=function t(e){switch(this.format){case 65536:return c[e]||".notdef";case 131072:var r=this.glyphNameIndex[e];if(r<c.length)return c[r];return this.names[r-c.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[e]||65535}};e.prototype.render=function h(t){var e=this;if(this.format==196608)return this.raw();var r=T(this.rawData.slice(this.offset,32));r.writeLong(131072);r.offset(32);var n=[];var i=[];for(var o=0;o<t.length;++o){var a=t[o];var s=e.glyphFor(a);var f=c.indexOf(s);if(f>=0)n.push(f);else{n.push(c.length+i.length);i.push(s)}}r.writeShort(t.length);for(o=0;o<n.length;++o)r.writeShort(n[o]);for(o=0;o<i.length;++o){r.writeByte(i[o].length);r.writeString(i[o])}return r.get()};return e}(r)}(),R=function(){var o=function t(y,e,m){var w=this;w.platformID=y.readShort();w.platformSpecificID=y.readShort();w.offset=e+y.readLong();y.saveExcursion(function(){var t;y.offset(w.offset);w.format=y.readShort();switch(w.format){case 0:w.length=y.readShort();w.language=y.readShort();for(var e=0;e<256;++e)m[e]=y.readByte();break;case 4:w.length=y.readShort();w.language=y.readShort();var r=y.readShort()/2;y.skip(6);var n=y.times(r,y.readShort);y.skip(2);var i=y.times(r,y.readShort);var o=y.times(r,y.readShort_);var a=y.times(r,y.readShort);var s=(w.length+w.offset-y.offset())/2;var c=y.times(s,y.readShort);for(e=0;e<r;++e){var f=i[e],u=n[e];for(t=f;t<=u;++t){var h;if(a[e]===0)h=t+o[e];else{var p=a[e]/2-(r-e)+(t-f);h=c[p]||0;if(h!==0)h+=o[e]}m[t]=h&65535}}break;case 6:w.length=y.readShort();w.language=y.readShort();t=y.readShort();var l=y.readShort();while(l-- >0)m[t++]=y.readShort();break;case 12:y.readShort();w.length=y.readLong();w.language=y.readLong();var d=y.readLong();while(d-- >0){t=y.readLong();var g=y.readLong();var v=y.readLong();while(t<=g)m[t++]=v++}break;default:if(window.console)window.console.error("Unhandled CMAP format: "+w.format)}})};function i(c,u){var p=k(c);var t=[];var e=[];var r=null;var l=null;function d(t){return u[c[t]]}for(var n=0;n<p.length;++n){var i=p[n];var g=d(i);var v=g-i;if(r==null||v!==l){if(r)e.push(r);t.push(i);l=v}r=i}if(r)e.push(r);e.push(65535);t.push(65535);var o=t.length;var y=o*2;var m=2*Math.pow(2,Math.floor(Math.log(o)/Math.LN2));var w=Math.log(m/2)/Math.LN2;var S=y-m;var a=[];var s=[];var b=[];for(n=0;n<o;++n){var f=t[n];var x=e[n];if(f==65535){a.push(0);s.push(0);break}var _=d(f);if(f-_>=32768){a.push(0);s.push(2*(b.length+o-n));for(var C=f;C<=x;++C)b.push(d(C))}else{a.push(_-f);s.push(0)}}var h=T();h.writeShort(3);h.writeShort(1);h.writeLong(12);h.writeShort(4);h.writeShort(16+o*8+b.length*2);h.writeShort(0);h.writeShort(y);h.writeShort(m);h.writeShort(w);h.writeShort(S);e.forEach(h.writeShort);h.writeShort(0);t.forEach(h.writeShort);a.forEach(h.writeShort_);s.forEach(h.writeShort);b.forEach(h.writeShort);return h.get()}return function(t){function e(){t.apply(this,arguments)}p(e,t);e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.fn=e.prototype;e.fn.init=e.fn.constructor;e.prototype.parse=function t(e){var r=this;var n=r.offset;e.offset(n);r.codeMap={};r.version=e.readShort();var i=e.readShort();r.tables=e.times(i,function(){return new o(e,n,r.codeMap)})};e.render=function t(e,r){var n=T();n.writeShort(0);n.writeShort(1);n.write(i(e,r));return n.get()};return e}(r)}(),G=function(t){function e(){t.apply(this,arguments)}p(e,t);e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.fn=e.prototype;e.fn.init=e.fn.constructor;e.prototype.parse=function t(e){e.offset(this.offset);this.version=e.readShort();this.averageCharWidth=e.readShort_();this.weightClass=e.readShort();this.widthClass=e.readShort();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=e.times(10,e.readByte);this.charRange=e.times(4,e.readLong);this.vendorID=e.readString(4);this.selection=e.readShort();this.firstCharIndex=e.readShort();this.lastCharIndex=e.readShort();if(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=e.times(2,e.readLong);if(this.version>1){this.xHeight=e.readShort();this.capHeight=e.readShort();this.defaultChar=e.readShort();this.breakChar=e.readShort();this.maxContext=e.readShort()}}};e.prototype.render=function t(){return this.raw()};return e}(r),P=1e5;function E(){var t="",e=String(P);for(var r=0;r<e.length;++r)t+=String.fromCharCode(e.charCodeAt(r)-48+65);++P;return t}var N=function t(e){this.font=e;this.subset={};this.unicodes={};this.ogid2ngid={0:0};this.ngid2ogid={0:0};this.ncid2ogid={};this.next=this.firstChar=1;this.nextGid=1;this.psName=E()+"+"+this.font.psName},B=(N.prototype.use=function t(e){var r=this;if(typeof e=="string")return h(e).reduce(function(t,e){return t+String.fromCharCode(r.use(e))},"");var n=r.unicodes[e];if(!n){n=r.next++;r.subset[n]=e;r.unicodes[e]=n;var i=r.font.cmap.codeMap[e];if(i){r.ncid2ogid[n]=i;if(r.ogid2ngid[i]==null){var o=r.nextGid++;r.ogid2ngid[i]=o;r.ngid2ogid[o]=i}}}return n},N.prototype.encodeText=function t(e){return this.use(e)},N.prototype.glyphIds=function t(){return k(this.ogid2ngid)},N.prototype.glyphsFor=function t(e,r){var n=this;if(!r)r={};for(var i=0;i<e.length;++i){var o=e[i];if(!r[o]){var a=r[o]=n.font.glyf.glyphFor(o);if(a&&a.compound)n.glyphsFor(a.glyphIds,r)}}return r},N.prototype.render=function c(){var t=this;var e=this.glyphsFor(this.glyphIds());for(var r in e)if(S(e,r)){r=parseInt(r,10);if(t.ogid2ngid[r]==null){var n=t.nextGid++;t.ogid2ngid[r]=n;t.ngid2ogid[n]=r}}var i=k(this.ngid2ogid);var o=i.map(function(t){return this.ngid2ogid[t]},this);var a=this.font;var s=a.glyf.render(e,o,this.ogid2ngid);var f=a.loca.render(s.offsets);this.lastChar=this.next-1;var h={cmap:R.render(this.ncid2ogid,this.ogid2ngid),glyf:s.table,loca:f.table,hmtx:a.hmtx.render(o),hhea:a.hhea.render(o),maxp:a.maxp.render(o),post:a.post.render(o),name:a.name.render(this.psName),head:a.head.render(f.format),"OS/2":a.os2.render()};return this.font.directory.render(h)},N.prototype.cidToGidMap=function t(){var e=this;var r=T(),n=0;for(var i=this.firstChar;i<this.next;++i){while(n<i){r.writeShort(0);n++}var o=e.ncid2ogid[i];if(o){var a=e.ogid2ngid[o];r.writeShort(a)}else r.writeShort(0);n++}return r.get()},function t(e,r){var n=this;var i=n.contents=T(e);if(i.readString(4)=="ttcf"){var o;var a=function(){i.offset(o);n.parse()};if(!r)throw new Error("Must specify a name for TTC files");i.readLong();var s=i.readLong();for(var f=0;f<s;++f){o=i.readLong();i.saveExcursion(a);if(n.psName==r)return}throw new Error("Font "+r+" not found in collection")}else{i.offset(0);n.parse()}}),j=(B.prototype.parse=function t(){var e=this.directory=new b(this.contents);this.head=e.readTable("head",x);this.loca=e.readTable("loca",_);this.hhea=e.readTable("hhea",C);this.maxp=e.readTable("maxp",F);this.hmtx=e.readTable("hmtx",L);this.glyf=e.readTable("glyf",I);this.name=e.readTable("name",A);this.post=e.readTable("post",M);this.cmap=e.readTable("cmap",R);this.os2=e.readTable("OS/2",G);this.psName=this.name.postscriptName;this.ascent=this.os2.ascent||this.hhea.ascent;this.descent=this.os2.descent||this.hhea.descent;this.lineGap=this.os2.lineGap||this.hhea.lineGap;this.scale=1e3/this.head.unitsPerEm},B.prototype.widthOfGlyph=function t(e){return this.hmtx.forGlyph(e).advance*this.scale},B.prototype.makeSubset=function t(){return new N(this)},String.fromCharCode),U="þÿ";function z(t){return j(t>>8)+j(t&255)}function q(t){var e="";for(var r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n<65535)e+=z(n);else{var i=(n-65536>>10)+55296;var o=(n-65536&1023)+56320;e+=z(i);e+=z(o)}}return e}var H=kendo.support.browser,u="\n",X=0,W={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],executive:[521.86,756],folio:[612,936],legal:[612,1008],letter:[612,792],tabloid:[792,1224]};function J(){var e=0,i=T();function o(){var t=arguments;for(var e=0;e<arguments.length;++e){var r=t[e];if(r===undefined)throw new Error("Cannot output undefined to PDF");else if(r instanceof vt){r.beforeRender(o);r.render(o)}else if(ft(r))ct(r,o);else if(ht(r))ut(r,o);else if(typeof r=="number"){if(isNaN(r))throw new Error("Cannot output NaN to PDF");var n=r.toFixed(7);if(n.indexOf(".")>=0)n=n.replace(/\.?0+$/,"");if(n=="-0")n="0";i.writeString(n)}else if(/string|boolean/.test(typeof r))i.writeString(String(r));else if(typeof r.get=="function")i.write(r.get());else if(typeof r=="object")if(!r)i.writeString("null");else o(new y(r))}}o.writeData=function(t){i.write(t)};o.withIndent=function(t){++e;t(o);--e};o.indent=function(){o(u,at("",e*2," "));o.apply(null,arguments)};o.offset=function(){return i.offset()};o.toString=function(){throw new Error("FIX CALLER")};o.get=function(){return i.get()};o.stream=function(){return i};return o}function Z(e,r){var n=e.beforeRender;var i=e.render;e.beforeRender=function(){};e.render=function(t){t(r," 0 R")};e.renderFull=function(t){e._offset=t.offset();t(r," 0 obj ");n.call(e,t);i.call(e,t);t(" endobj")}}function Y(t){if(typeof t!="function"){var r=t;t=function(t,e){return t in r?r[t]:e}}var e=t("paperSize",W.a4);if(!e)return{};if(typeof e=="string"){e=W[e.toLowerCase()];if(e==null)throw new Error("Unknown paper size")}e[0]=gt(e[0]);e[1]=gt(e[1]);if(t("landscape",false))e=[Math.max(e[0],e[1]),Math.min(e[0],e[1])];var n=t("margin");if(n){if(typeof n=="string"||typeof n=="number"){n=gt(n,0);n={left:n,top:n,right:n,bottom:n}}else n={left:gt(n.left,0),top:gt(n.top,0),right:gt(n.right,0),bottom:gt(n.bottom,0)};if(t("addMargin")){e[0]+=n.left+n.right;e[1]+=n.top+n.bottom}}return{paperSize:e,margin:n}}var $={"Times-Roman":true,"Times-Bold":true,"Times-Italic":true,"Times-BoldItalic":true,Helvetica:true,"Helvetica-Bold":true,"Helvetica-Oblique":true,"Helvetica-BoldOblique":true,Courier:true,"Courier-Bold":true,"Courier-Oblique":true,"Courier-BoldOblique":true,Symbol:true,ZapfDingbats:true};function K(t,e){var r;if(H.msie&&(r=/^data:.*?;base64,/i.exec(t))){e(w(t.substr(r[0].length)));return}function n(){if(window.console)if(window.console.error)window.console.error("Cannot load URL: %s",t);else window.console.log("Cannot load URL: %s",t);e(null)}var i=new XMLHttpRequest;i.open("GET",t,true);if(O)i.responseType="arraybuffer";i.onload=function(){if(i.status==200||i.status==304)if(O)e(new Uint8Array(i.response));else e(new window.VBArray(i.responseBody).toArray());else n()};i.onerror=n;i.send(null)}function Q(r,n){var t=$[r];if(t)n(t);else K(r,function(t){if(t==null)throw new Error("Cannot load font from "+r);else{var e=new B(t);$[r]=e;n(e)}})}var V={};function tt(){V={}}function et(u,p,l,d){var g=V[u],v,i;if(g)l(g);else{g=new Image;if(!/^data:/i.test(u))g.crossOrigin="Anonymous";if(O&&!/^data:/i.test(u)){var e=new XMLHttpRequest;e.onload=function(){i=e.response;if(H.mozilla&&i.type=="image/svg+xml"){var t=new FileReader;t.onload=function(){var t=(new window.DOMParser).parseFromString(this.result,"image/svg+xml");var e=t.documentElement;if(e.getAttribute("width")&&e.getAttribute("height")){v=URL.createObjectURL(i);o(v)}else{e.setAttribute("width",p.width);e.setAttribute("height",p.height);var r=(new window.XMLSerializer).serializeToString(e);var n="data:image/svg+xml;base64,"+f.encodeBase64(r);o(n)}};t.readAsText(i)}else{v=URL.createObjectURL(i);o(v)}};e.onerror=y;e.open("GET",u,true);e.responseType="blob";e.send()}else o(u)}function o(t){g.src=t;if(g.complete&&!H.msie)r.call(g);else{g.onload=r;g.onerror=y}}function n(){if(!p)p={width:g.width,height:g.height};var t=document.createElement("canvas");t.width=p.width;t.height=p.height;var e=t.getContext("2d");e.drawImage(g,0,0,p.width,p.height);var r;try{r=e.getImageData(0,0,p.width,p.height)}catch(t){y();return}finally{if(v)URL.revokeObjectURL(v)}var n=false,i=T(),o=T();var a=r.data;var s=0;while(s<a.length){i.writeByte(a[s++]);i.writeByte(a[s++]);i.writeByte(a[s++]);var f=a[s++];if(f<255)n=true;o.writeByte(f)}if(n||d.keepPNG)g=new Tt(p.width,p.height,i,o);else{var h=t.toDataURL("image/jpeg",d.jpegQuality);h=h.substr(h.indexOf(";base64,")+8);var c=T();c.writeBase64(h);g=new Ct(c)}l(V[u]=g)}function y(){l(V[u]="ERROR")}function r(){if(p){var t=i&&i.type==="image/svg+xml"||/^data:image\/svg\+xml;/i.test(this.src.substring(0,19));var e=p.width>=g.width||p.height>=g.height;if(!t&&e)p=null}if(!p&&i&&/^image\/jpe?g$/i.test(i.type)){var r=new FileReader;r.onload=function(){try{var t=new Ct(T(new Uint8Array(this.result)));URL.revokeObjectURL(v);l(V[u]=t)}catch(t){n()}};r.readAsArrayBuffer(i)}else n()}}function rt(o){return function(t,e){var r=t.length,n=r;if(r===0)return e();function i(){if(--r===0)e()}while(n-- >0)o(t[n],i)}}var nt=rt(Q),it=function(e,t,r){r=s.extend({jpegQuality:.92,keepPNG:false},r);var n=Object.keys(e),i=n.length;if(i===0)return t();function o(){if(--i===0)t()}n.forEach(function(t){et(t,e[t],o,r)})},ot=function f(r){var h=this;var n=J();var e=0;var i=[];function t(t,e){return r&&r[t]!=null?r[t]:e}h.getOption=t;h.attach=function(t){if(i.indexOf(t)<0){Z(t,++e);i.push(t)}return t};h.pages=[];h.FONTS={};h.IMAGES={};h.GRAD_COL_FUNCTIONS={};h.GRAD_OPC_FUNCTIONS={};h.GRAD_COL={};h.GRAD_OPC={};var o=h.attach(new bt);var c=h.attach(new xt);if(t("autoPrint")){var a={};a.JavaScript=new y({Names:[new g("JS"),h.attach(new y({S:v("JavaScript"),JS:new g("print(true);")}))]});o.props.Names=new y(a)}o.setPages(c);var s=h.attach(new y({Producer:new g(t("producer","Kendo UI PDF Generator"),true),Title:new g(t("title",""),true),Author:new g(t("author",""),true),Subject:new g(t("subject",""),true),Keywords:new g(t("keywords",""),true),Creator:new g(t("creator","Kendo UI PDF Generator"),true),CreationDate:t("date",new Date)}));h.addPage=function(r){var t=Y(function(t,e){return r&&r[t]!=null?r[t]:e});var e=t.paperSize;var n=t.margin;var i=e[0];var o=e[1];if(n){i-=n.left+n.right;o-=n.top+n.bottom}var a=new St(J(),null,true);var s={Contents:h.attach(a),Parent:c,MediaBox:[0,0,e[0],e[1]]};var f=new Pt(h,s);f._content=a;c.addPage(h.attach(f));f.transform(1,0,0,-1,0,e[1]);if(n){f.translate(n.left,n.top);f.rect(0,0,i,o);f.clip()}h.pages.push(f);return f};h.render=function(){var t;n("%PDF-1.4",u,"%ÂÁÚÏÎ",u,u);for(t=0;t<i.length;++t){i[t].renderFull(n);n(u,u)}var e=n.offset();n("xref",u,0," ",i.length+1,u);n("0000000000 65535 f ",u);for(t=0;t<i.length;++t)n(d(i[t]._offset,10)," 00000 n ",u);n(u);n("trailer",u);n(new y({Size:i.length+1,Root:o,Info:s}),u,u);n("startxref",u,e,u);n("%%EOF",u);return n.stream().offset(0)};h.loadFonts=nt;h.loadImages=it};function at(t,e,r){while(t.length<e)t=r+t;return t}function d(t,e){return at(String(t),e,"0")}function st(t,e){return Object.prototype.hasOwnProperty.call(t,e)}ot.prototype.getFont=function t(e){var r=this.FONTS[e];if(!r){r=$[e];if(!r)throw new Error("Font "+e+" has not been loaded");if(r===true)r=this.attach(new kt(e));else r=this.attach(new Ot(this,r));this.FONTS[e]=r}return r},ot.prototype.getImage=function t(e){var r=this.IMAGES[e];if(!r){r=V[e];if(!r)throw new Error("Image "+e+" has not been loaded");if(r==="ERROR")return null;r=this.IMAGES[e]=this.attach(r.asStream(this))}return r},ot.prototype.getOpacityGS=function t(e,r){var n=parseFloat(e).toFixed(3);e=parseFloat(n);n+=r?"S":"F";var i=this._opacityGSCache||(this._opacityGSCache={});var o=i[n];if(!o){var a={Type:v("ExtGState")};if(r)a.CA=e;else a.ca=e;o=this.attach(new y(a));o._resourceName=v("GS"+ ++X);i[n]=o}return o},ot.prototype.dict=function t(e){return new y(e)},ot.prototype.name=function t(e){return v(e)},ot.prototype.stream=function t(e,r){return new St(r,e)};var ft=Array.isArray||function(t){return t instanceof Array};function ht(t){return t instanceof Date}function ct(e,r){r("[");if(e.length>0)r.withIndent(function(){for(var t=0;t<e.length;++t)if(t>0&&t%8===0)r.indent(e[t]);else r(" ",e[t])});r(" ]")}function ut(t,e){e("(D:",d(t.getUTCFullYear(),4),d(t.getUTCMonth()+1,2),d(t.getUTCDate(),2),d(t.getUTCHours(),2),d(t.getUTCMinutes(),2),d(t.getUTCSeconds(),2),"Z)")}function pt(t){return t*(72/25.4)}function lt(t){return pt(t*10)}function dt(t){return t*72}function gt(t,e){if(typeof t=="number")return t;if(typeof t=="string"){var r;r=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(t);if(r){var n=parseFloat(r[1]);if(!isNaN(n)){if(r[2]=="pt")return n;return{mm:pt,cm:lt,in:dt}[r[2]](n)}}}if(e!=null)return e;throw new Error("Can't parse unit: "+t)}var vt=function t(){},g=(vt.prototype.beforeRender=function t(){},function(r){function t(t,e){r.call(this);this.value=t;this.utf16be=Boolean(e)}p(t,r);t.prototype=Object.create(r&&r.prototype);t.prototype.constructor=t;t.fn=t.prototype;t.fn.init=t.fn.constructor;t.prototype.render=function t(e){var r=this.value;if(this.utf16be){r=U+q(r);r=r.replace(/([\(\)\\])/g,"\\$1");e("(",r,")")}else{var n=[40];for(var i=0;i<r.length;++i){var o=r.charCodeAt(i)&255;if(o==40||o==41||o==92)n.push(92);n.push(o)}n.push(41);e.writeData(n)}};t.prototype.toString=function t(){return this.value};return t}(vt)),yt=function(e){function t(t){e.call(this,t);this.value=t}p(t,e);t.prototype=Object.create(e&&e.prototype);t.prototype.constructor=t;t.fn=t.prototype;t.fn.init=t.fn.constructor;t.prototype.render=function t(e){var r=this;e("<");for(var n=0;n<this.value.length;++n)e(d(r.value.charCodeAt(n).toString(16),4));e(">")};return t}(g),mt=function(e){function t(t){e.call(this);this.name=t}p(t,e);t.prototype=Object.create(e&&e.prototype);t.prototype.constructor=t;t.fn=t.prototype;t.fn.init=t.fn.constructor;t.get=function t(e){return v(e)};t.prototype.render=function t(e){e("/"+this.escape())};t.prototype.escape=function t(){return this.name.replace(/[^\x21-\x7E]/g,function(t){return"#"+d(t.charCodeAt(0).toString(16),2)})};t.prototype.toString=function t(){return this.name};return t}(vt),wt={};function v(t){if(st(wt,t))return wt[t];return wt[t]=new mt(t)}var y=function(e){function t(t){e.call(this);this.props=t}p(t,e);t.prototype=Object.create(e&&e.prototype);t.prototype.constructor=t;t.fn=t.prototype;t.fn.init=t.fn.constructor;t.prototype.render=function t(e){var r=this.props,n=true;e("<<");e.withIndent(function(){for(var t in r)if(st(r,t)&&!/^_/.test(t)){n=false;e.indent(v(t)," ",r[t])}});if(!n)e.indent();e(">>")};return t}(vt),St=function(i){function t(t,e,r){i.call(this);if(typeof t=="string"){var n=T();n.write(t);t=n}this.data=t;this.props=e||{};this.compress=r}p(t,i);t.prototype=Object.create(i&&i.prototype);t.prototype.constructor=t;t.fn=t.prototype;t.fn.init=t.fn.constructor;t.prototype.render=function t(e){var r=this.data.get(),n=this.props;if(this.compress&&o.supportsDeflate()){if(!n.Filter)n.Filter=[];else if(!(n.Filter instanceof Array))n.Filter=[n.Filter];n.Filter.unshift(v("FlateDecode"));r=o.deflate(r)}n.Length=r.length;e(new y(n)," stream",u);e.writeData(r);e(u,"endstream")};return t}(vt),bt=function(t){function e(){t.call(this,{Type:v("Catalog")})}p(e,t);e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.fn=e.prototype;e.fn.init=e.fn.constructor;e.prototype.setPages=function t(e){this.props.Pages=e};return e}(y),xt=function(t){function e(){t.call(this,{Type:v("Pages"),Kids:[],Count:0})}p(e,t);e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.fn=e.prototype;e.fn.init=e.fn.constructor;e.prototype.addPage=function t(e){this.props.Kids.push(e);this.props.Count++};return e}(y),_t=[192,193,194,195,197,198,199,201,202,203,205,206,207],Ct=function c(e){e.offset(0);var t,r,n,i;var o=e.readShort();if(o!=65496)throw new Error("Invalid JPEG image");while(!e.eof()){var a=e.readByte();if(a!=255)throw new Error("Invalid JPEG image");var s=e.readByte();var f=e.readShort();if(_t.indexOf(s)>=0){i=e.readByte();r=e.readShort();t=e.readShort();n=e.readByte();break}e.skip(f-2)}if(n==null)throw new Error("Invalid JPEG image");var h={Type:v("XObject"),Subtype:v("Image"),Width:t,Height:r,BitsPerComponent:i,Filter:v("DCTDecode")};switch(n){case 1:h.ColorSpace=v("DeviceGray");break;case 3:h.ColorSpace=v("DeviceRGB");break;case 4:h.ColorSpace=v("DeviceCMYK");h.Decode=[1,0,1,0,1,0,1,0];break}this.asStream=function(){e.offset(0);var t=new St(e,h);t._resourceName=v("I"+ ++X);return t}},Tt=function t(n,i,o,a){this.asStream=function(t){var e=new St(a,{Type:v("XObject"),Subtype:v("Image"),Width:n,Height:i,BitsPerComponent:8,ColorSpace:v("DeviceGray")},true);var r=new St(o,{Type:v("XObject"),Subtype:v("Image"),Width:n,Height:i,BitsPerComponent:8,ColorSpace:v("DeviceRGB"),SMask:t.attach(e)},true);r._resourceName=v("I"+ ++X);return r}},kt=function(e){function t(t){e.call(this,{Type:v("Font"),Subtype:v("Type1"),BaseFont:v(t)});this._resourceName=v("F"+ ++X)}p(t,e);t.prototype=Object.create(e&&e.prototype);t.prototype.constructor=t;t.fn=t.prototype;t.fn.init=t.fn.constructor;t.prototype.encodeText=function t(e){return new g(String(e))};return t}(y),Ot=function(d){function t(t,e,r){d.call(this,{});r=this.props;r.Type=v("Font");r.Subtype=v("Type0");r.Encoding=v("Identity-H");this._pdf=t;this._font=e;this._sub=e.makeSubset();this._resourceName=v("F"+ ++X);var n=e.head;this.name=e.psName;var i=this.scale=e.scale;this.bbox=[n.xMin*i,n.yMin*i,n.xMax*i,n.yMax*i];this.italicAngle=e.post.italicAngle;this.ascent=e.ascent*i;this.descent=e.descent*i;this.lineGap=e.lineGap*i;this.capHeight=e.os2.capHeight||this.ascent;this.xHeight=e.os2.xHeight||0;this.stemV=0;this.familyClass=(e.os2.familyClass||0)>>8;this.isSerif=this.familyClass>=1&&this.familyClass<=7;this.isScript=this.familyClass==10;this.flags=(e.post.isFixedPitch?1:0)|(this.isSerif?1<<1:0)|(this.isScript?1<<3:0)|(this.italicAngle!==0?1<<6:0)|1<<5}p(t,d);t.prototype=Object.create(d&&d.prototype);t.prototype.constructor=t;t.fn=t.prototype;t.fn.init=t.fn.constructor;t.prototype.encodeText=function t(e){return new yt(this._sub.encodeText(String(e)))};t.prototype.getTextWidth=function t(e,r){var n=this;var i=0,o=this._font.cmap.codeMap;for(var a=0;a<r.length;++a){var s=o[r.charCodeAt(a)];i+=n._font.widthOfGlyph(s||0)}return i*e/1e3};t.prototype.beforeRender=function c(){var i=this;var t=i._sub;var e=t.render();var r=new St(T(e),{Length1:e.length},true);var n=i._pdf.attach(new d({Type:v("FontDescriptor"),FontName:v(i._sub.psName),FontBBox:i.bbox,Flags:i.flags,StemV:i.stemV,ItalicAngle:i.italicAngle,Ascent:i.ascent,Descent:i.descent,CapHeight:i.capHeight,XHeight:i.xHeight,FontFile2:i._pdf.attach(r)}));var u=t.ncid2ogid;var o=t.firstChar;var a=t.lastChar;var s=[];(function t(e,r){if(e<=a){var n=u[e];if(n==null)t(e+1);else{if(!r)s.push(e,r=[]);r.push(i._font.widthOfGlyph(n));t(e+1,r)}}})(o);var p=new d({Type:v("Font"),Subtype:v("CIDFontType2"),BaseFont:v(i._sub.psName),CIDSystemInfo:new d({Registry:new g("Adobe"),Ordering:new g("Identity"),Supplement:0}),FontDescriptor:n,FirstChar:o,LastChar:a,DW:Math.round(i._font.widthOfGlyph(0)),W:s,CIDToGIDMap:i._pdf.attach(i._makeCidToGidMap())});var f=i.props;f.BaseFont=v(i._sub.psName);f.DescendantFonts=[i._pdf.attach(p)];var l=new Dt(o,a,t.subset);var h=new St(J(),null,true);h.data(l);f.ToUnicode=i._pdf.attach(h)};t.prototype._makeCidToGidMap=function t(){return new St(T(this._sub.cidToGidMap()),null,true)};return t}(y),Dt=function(n){function t(t,e,r){n.call(this);this.firstChar=t;this.lastChar=e;this.map=r}p(t,n);t.prototype=Object.create(n&&n.prototype);t.prototype.constructor=t;t.fn=t.prototype;t.fn.init=t.fn.constructor;t.prototype.render=function t(i){i.indent("/CIDInit /ProcSet findresource begin");i.indent("12 dict begin");i.indent("begincmap");i.indent("/CIDSystemInfo <<");i.indent(" /Registry (Adobe)");i.indent(" /Ordering (UCS)");i.indent(" /Supplement 0");i.indent(">> def");i.indent("/CMapName /Adobe-Identity-UCS def");i.indent("/CMapType 2 def");i.indent("1 begincodespacerange");i.indent(" <0000><ffff>");i.indent("endcodespacerange");var o=this;i.indent(o.lastChar-o.firstChar+1," beginbfchar");i.withIndent(function(){for(var t=o.firstChar;t<=o.lastChar;++t){var e=o.map[t];var r=c([e]);i.indent("<",d(t.toString(16),4),">","<");for(var n=0;n<r.length;++n)i(d(r.charCodeAt(n).toString(16),4));i(">")}});i.indent("endbfchar");i.indent("endcmap");i.indent("CMapName currentdict /CMap defineresource pop");i.indent("end");i.indent("end")};return t}(vt);function Ft(t){return t.map(function(t){return ft(t)?Ft(t):typeof t=="number"?(Math.round(t*1e3)/1e3).toFixed(3):t}).join(" ")}function Lt(t,e,r,n,i,o,a){var s=Ft([e,r,n,i,o,a]);var f=t.GRAD_COL_FUNCTIONS[s];if(!f)f=t.GRAD_COL_FUNCTIONS[s]=t.attach(new y({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[e,r,n],C1:[i,o,a]}));return f}function It(t,e,r){var n=Ft([e,r]);var i=t.GRAD_OPC_FUNCTIONS[n];if(!i)i=t.GRAD_OPC_FUNCTIONS[n]=t.attach(new y({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[e],C1:[r]}));return i}function At(t,e){var r=false;var n=[];var c=[];var i=[];var u=[];var o,a,s,f,h;for(o=1;o<e.length;++o){a=e[o-1];s=e[o];f=a.color;h=s.color;c.push(Lt(t,f.r,f.g,f.b,h.r,h.g,h.b));if(f.a<1||h.a<1)r=true;i.push(s.offset);u.push(0,1)}if(r)for(o=1;o<e.length;++o){a=e[o-1];s=e[o];f=a.color;h=s.color;n.push(It(t,f.a,h.a))}i.pop();return{hasAlpha:r,colors:p(c),opacities:r?p(n):null};function p(t){if(t.length==1)return t[0];return{FunctionType:3,Functions:t,Domain:[0,1],Bounds:i,Encode:u}}}function Mt(t,e,r,n,i,o){var a,s;if(!o){var f=[e].concat(n);r.forEach(function(t){f.push(t.offset,t.color.r,t.color.g,t.color.b)});s=Ft(f);a=t.GRAD_COL[s]}if(!a){a=new y({Type:v("Shading"),ShadingType:e?3:2,ColorSpace:v("DeviceRGB"),Coords:n,Domain:[0,1],Function:i,Extend:[true,true]});t.attach(a);a._resourceName="S"+ ++X;if(s)t.GRAD_COL[s]=a}return a}function Rt(t,e,r,n,i,o){var a,s;if(!o){var f=[e].concat(n);r.forEach(function(t){f.push(t.offset,t.color.a)});s=Ft(f);a=t.GRAD_OPC[s]}if(!a){a=new y({Type:v("ExtGState"),AIS:false,CA:1,ca:1,SMask:{Type:v("Mask"),S:v("Luminosity"),G:t.attach(new St("/a0 gs /s0 sh",{Type:v("XObject"),Subtype:v("Form"),FormType:1,BBox:o?[o.left,o.top+o.height,o.left+o.width,o.top]:[0,1,1,0],Group:{Type:v("Group"),S:v("Transparency"),CS:v("DeviceGray"),I:true},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:v("DeviceGray"),Coords:n,Domain:[0,1],ShadingType:e?3:2,Function:i,Extend:[true,true]}}}}))}});t.attach(a);a._resourceName="O"+ ++X;if(s)t.GRAD_OPC[s]=a}return a}function Gt(t,e,r){var n=e.type=="radial";var i=At(t,e.stops);var o=n?[e.start.x,e.start.y,e.start.r,e.end.x,e.end.y,e.end.r]:[e.start.x,e.start.y,e.end.x,e.end.y];var a=Mt(t,n,e.stops,o,i.colors,e.userSpace&&r);var s=i.hasAlpha?Rt(t,n,e.stops,o,i.opacities,e.userSpace&&r):null;return{hasAlpha:i.hasAlpha,shading:a,opacity:s}}var Pt=function(o){function t(t,e){o.call(this,e);this._pdf=t;this._rcount=0;this._textMode=false;this._fontResources={};this._gsResources={};this._xResources={};this._patResources={};this._shResources={};this._opacity=1;this._matrix=[1,0,0,1,0,0];this._annotations=[];this._font=null;this._fontSize=null;this._contextStack=[];e=this.props;e.Type=v("Page");e.ProcSet=[v("PDF"),v("Text"),v("ImageB"),v("ImageC"),v("ImageI")];e.Resources=new o({Font:new o(this._fontResources),ExtGState:new o(this._gsResources),XObject:new o(this._xResources),Pattern:new o(this._patResources),Shading:new o(this._shResources)});e.Annots=this._annotations}p(t,o);t.prototype=Object.create(o&&o.prototype);t.prototype.constructor=t;t.fn=t.prototype;t.fn.init=t.fn.constructor;t.prototype._out=function t(){this._content.data.apply(null,arguments)};t.prototype.transform=function t(e,r,n,i,o,a){if(!qt(arguments)){this._matrix=zt(arguments,this._matrix);this._out(e," ",r," ",n," ",i," ",o," ",a," cm");this._out(u)}};t.prototype.translate=function t(e,r){this.transform(1,0,0,1,e,r)};t.prototype.scale=function t(e,r){this.transform(e,0,0,r,0,0)};t.prototype.rotate=function t(e){var r=Math.cos(e),n=Math.sin(e);this.transform(r,n,-n,r,0,0)};t.prototype.beginText=function t(){this._textMode=true;this._out("BT",u)};t.prototype.endText=function t(){this._textMode=false;this._out("ET",u)};t.prototype._requireTextMode=function t(){if(!this._textMode)throw new Error("Text mode required; call page.beginText() first")};t.prototype._requireFont=function t(){if(!this._font)throw new Error("No font selected; call page.setFont() first")};t.prototype.setFont=function t(e,r){this._requireTextMode();if(e==null)e=this._font;else if(!(e instanceof Ot))e=this._pdf.getFont(e);if(r==null)r=this._fontSize;this._fontResources[e._resourceName]=e;this._font=e;this._fontSize=r;this._out(e._resourceName," ",r," Tf",u)};t.prototype.setTextLeading=function t(e){this._requireTextMode();this._out(e," TL",u)};t.prototype.setTextRenderingMode=function t(e){this._requireTextMode();this._out(e," Tr",u)};t.prototype.showText=function t(e,r){this._requireFont();if(e.length>1&&r&&this._font instanceof Ot){var n=this._font.getTextWidth(this._fontSize,e);var i=r/n*100;this._out(i," Tz ")}this._out(this._font.encodeText(e)," Tj",u)};t.prototype.showTextNL=function t(e){this._requireFont();this._out(this._font.encodeText(e)," '",u)};t.prototype.addLink=function t(e,r){var n=this._toPage({x:r.left,y:r.bottom});var i=this._toPage({x:r.right,y:r.top});this._annotations.push(new o({Type:v("Annot"),Subtype:v("Link"),Rect:[n.x,n.y,i.x,i.y],Border:[0,0,0],A:new o({Type:v("Action"),S:v("URI"),URI:new g(e)})}))};t.prototype.setStrokeColor=function t(e,r,n){this._out(e," ",r," ",n," RG",u)};t.prototype.setOpacity=function t(e){this.setFillOpacity(e);this.setStrokeOpacity(e);this._opacity*=e};t.prototype.setStrokeOpacity=function t(e){if(e<1){var r=this._pdf.getOpacityGS(this._opacity*e,true);this._gsResources[r._resourceName]=r;this._out(r._resourceName," gs",u)}};t.prototype.setFillColor=function t(e,r,n){this._out(e," ",r," ",n," rg",u)};t.prototype.setFillOpacity=function t(e){if(e<1){var r=this._pdf.getOpacityGS(this._opacity*e,false);this._gsResources[r._resourceName]=r;this._out(r._resourceName," gs",u)}};t.prototype.gradient=function t(t,e){this.save();this.rect(e.left,e.top,e.width,e.height);this.clip();if(!t.userSpace)this.transform(e.width,0,0,e.height,e.left,e.top);var r=Gt(this._pdf,t,e);var n=r.shading._resourceName,i;this._shResources[n]=r.shading;if(r.hasAlpha){i=r.opacity._resourceName;this._gsResources[i]=r.opacity;this._out("/"+i+" gs ")}this._out("/"+n+" sh",u);this.restore()};t.prototype.setDashPattern=function t(e,r){this._out(e," ",r," d",u)};t.prototype.setLineWidth=function t(e){this._out(e," w",u)};t.prototype.setLineCap=function t(e){this._out(e," J",u)};t.prototype.setLineJoin=function t(e){this._out(e," j",u)};t.prototype.setMitterLimit=function t(e){this._out(e," M",u)};t.prototype.save=function t(){this._contextStack.push(this._context());this._out("q",u)};t.prototype.restore=function t(){this._out("Q",u);this._context(this._contextStack.pop())};t.prototype.moveTo=function t(e,r){this._out(e," ",r," m",u)};t.prototype.lineTo=function t(e,r){this._out(e," ",r," l",u)};t.prototype.bezier=function t(e,r,n,i,o,a){this._out(e," ",r," ",n," ",i," ",o," ",a," c",u)};t.prototype.bezier1=function t(e,r,n,i){this._out(e," ",r," ",n," ",i," y",u)};t.prototype.bezier2=function t(e,r,n,i){this._out(e," ",r," ",n," ",i," v",u)};t.prototype.close=function t(){this._out("h",u)};t.prototype.rect=function t(e,r,n,i){this._out(e," ",r," ",n," ",i," re",u)};t.prototype.ellipse=function t(e,r,n,i){function o(t){return e+t}function a(t){return r+t}var s=.5522847498307936;this.moveTo(o(0),a(i));this.bezier(o(n*s),a(i),o(n),a(i*s),o(n),a(0));this.bezier(o(n),a(-i*s),o(n*s),a(-i),o(0),a(-i));this.bezier(o(-n*s),a(-i),o(-n),a(-i*s),o(-n),a(0));this.bezier(o(-n),a(i*s),o(-n*s),a(i),o(0),a(i))};t.prototype.circle=function t(e,r,n){this.ellipse(e,r,n,n)};t.prototype.stroke=function t(){this._out("S",u)};t.prototype.nop=function t(){this._out("n",u)};t.prototype.clip=function t(){this._out("W n",u)};t.prototype.clipStroke=function t(){this._out("W S",u)};t.prototype.closeStroke=function t(){this._out("s",u)};t.prototype.fill=function t(){this._out("f",u)};t.prototype.fillStroke=function t(){this._out("B",u)};t.prototype.drawImage=function t(e){var r=this._pdf.getImage(e);if