/** * Kendo UI v2018.1.117 (http://www.telerik.com/kendo-ui) * Copyright 2018 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial license terms. */ !function(t,define){define("util/text-metrics.min",["kendo.core.min"],t)}(function(){!function(t){function e(t){return(t+"").replace(s,h)}function r(t){var e,r=[];for(e in t)r.push(e+t[e]);return r.sort().join("")}function n(t){var e,r=2166136261;for(e=0;e>>0}function i(){return{width:0,height:0,baseline:0}}function o(t,e,r){return u.current.measure(t,e,r)}var a,s,h,c,f,u;window.kendo.util=window.kendo.util||{},a=kendo.Class.extend({init:function(t){this._size=t,this._length=0,this._map={}},put:function(t,e){var r=this._map,n={key:t,value:e};r[t]=n,this._head?(this._tail.newer=n,n.older=this._tail,this._tail=n):this._head=this._tail=n,this._length>=this._size?(r[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},get:function(t){var e=this._map[t];if(e)return e===this._head&&e!==this._tail&&(this._head=e.newer,this._head.older=null),e!==this._tail&&(e.older&&(e.older.newer=e.newer,e.newer.older=e.older),e.older=this._tail,e.newer=null,this._tail.newer=e,this._tail=e),e.value}}),s=/\r?\n|\r|\t/g,h=" ",c={baselineMarkerSize:1},"undefined"!=typeof document&&(f=document.createElement("div"),f.style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;"),u=kendo.Class.extend({init:function(e){this._cache=new a(1e3),this.options=t.extend({},c,e)},measure:function(t,o,a){var s,h,c,u,d,l,p,g,m;if(void 0===a&&(a={}),!t)return i();if(s=r(o),h=n(t+s),c=this._cache.get(h))return c;u=i(),d=a.box||f,l=this._baselineMarker().cloneNode(!1);for(p in o)g=o[p],void 0!==g&&(d.style[p]=g);return m=a.normalizeText!==!1?e(t):t+"",d.textContent=m,d.appendChild(l),document.body.appendChild(d),m.length&&(u.width=d.offsetWidth-this.options.baselineMarkerSize,u.height=d.offsetHeight,u.baseline=l.offsetTop+this.options.baselineMarkerSize),u.width>0&&u.height>0&&this._cache.put(h,u),d.parentNode.removeChild(d),u},_baselineMarker:function(){var t=document.createElement("div");return t.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",t}}),u.current=new u,kendo.deepExtend(kendo.util,{LRUCache:a,TextMetrics:u,measureText:o,objectKey:r,hashKey:n,normalizeText:e})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,r){(r||e)()}),function(t,define){define("pdf/pako.min",["kendo.core.min"],t)}(function(){return function(){kendo.pdf=kendo.pdf||{},kendo.pdf.supportsDeflate=function(){return window.pako&&"function"==typeof window.pako.deflate},kendo.pdf.deflate=function(t){return window.pako.deflate(t)}}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,r){(r||e)()}),function(t,define){define("pdf/core.min",["pdf/pako.min","kendo.core.min","kendo.color.min","kendo.drawing.min"],t)}(function(){return function(t){function e(t){function e(){return k>=T}function r(){return kT&&(T=k)}function i(){return r()<<8|r()}function o(t){n(t>>8),n(t)}function a(){var t=i();return t>=32768?t-65536:t}function s(t){o(t<0?t+65536:t)}function h(){return 65536*i()+i()}function c(t){o(t>>>16&65535),o(65535&t)}function f(){var t=h();return t>=2147483648?t-4294967296:t}function u(t){c(t<0?t+4294967296:t)}function d(){return h()/65536}function l(t){c(Math.round(65536*t))}function p(){return f()/65536}function g(t){u(Math.round(65536*t))}function m(t){return y(t,r)}function w(t){return String.fromCharCode.apply(String,m(t))}function S(t){for(var e=0;e=t.length){var r=new Uint8Array(Math.max(e+256,2*t.length));r.set(t,0),t=r}}:function(){},_=Tt?function(){return new Uint8Array(t.buffer,0,T)}:function(){return t},b=Tt?function(e){if("string"==typeof e)return S(e);var r=e.length;x(k+r),t.set(e,k),k+=r,k>T&&(T=k)}:function(t){if("string"==typeof t)return S(t);for(var e=0;e=55296&&e<=56319&&i65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)}).join("")}function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function o(t){return Object.keys(t).sort(function(t,e){return t-e}).map(parseFloat)}function a(t){var e,r,n;for(this.raw=t,this.scalerType=t.readLong(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),e=this.tables={},r=0;r=0&&(i=i.replace(/\.?0+$/,"")),"-0"==i&&(i="0"),n.writeString(i)}else/string|boolean/.test(typeof r)?n.writeString(r+""):"function"==typeof r.get?n.write(r.get()):"object"==typeof r&&(r?t(new Qt(r)):n.writeString("null"))}}var r=0,n=e();return t.writeData=function(t){n.write(t)},t.withIndent=function(e){++r,e(t),--r},t.indent=function(){t(Ut,x("",2*r," ")),t.apply(null,arguments)},t.offset=function(){return n.offset()},t.toString=function(){throw Error("FIX CALLER")},t.get=function(){return n.get()},t.stream=function(){return n},t}function d(t,e){var r=t.beforeRender,n=t.render;t.beforeRender=function(){},t.render=function(t){t(e," 0 R")},t.renderFull=function(i){t._offset=i.offset(),i(e," 0 obj "),r.call(t,i),n.call(t,i),i(" endobj")}}function l(t){var e,r,n;if("function"!=typeof t&&(e=t,t=function(t,r){return t in e?e[t]:r}),r=t("paperSize",qt.a4),!r)return{};if("string"==typeof r&&(r=qt[r.toLowerCase()],null==r))throw Error("Unknown paper size");return r[0]=I(r[0]),r[1]=I(r[1]),t("landscape",!1)&&(r=[Math.max(r[0],r[1]),Math.min(r[0],r[1])]),n=t("margin"),n&&("string"==typeof n||"number"==typeof n?(n=I(n,0),n={left:n,top:n,right:n,bottom:n}):n={left:I(n.left,0),top:I(n.top,0),right:I(n.right,0),bottom:I(n.bottom,0)},t("addMargin")&&(r[0]+=n.left+n.right,r[1]+=n.top+n.bottom)),{paperSize:r,margin:n}}function p(t){function e(e,r){return t&&null!=t[e]?t[e]:r}var r,n,i,o=this,a=u(),s=0,h=[];o.getOption=e,o.attach=function(t){return h.indexOf(t)<0&&(d(t,++s),h.push(t)),t},o.pages=[],o.FONTS={},o.IMAGES={},o.GRAD_COL_FUNCTIONS={},o.GRAD_OPC_FUNCTIONS={},o.GRAD_COL={},o.GRAD_OPC={},r=o.attach(new ee),n=o.attach(new re),r.setPages(n),i=o.attach(new Qt({Producer:new Yt(e("producer","Kendo UI PDF Generator")),Title:new Yt(e("title","")),Author:new Yt(e("author","")),Subject:new Yt(e("subject","")),Keywords:new Yt(e("keywords","")),Creator:new Yt(e("creator","Kendo UI PDF Generator")),CreationDate:e("date",new Date)})),o.addPage=function(t){var e,r,i,a=l(function(e,r){return t&&null!=t[e]?t[e]:r}),s=a.paperSize,h=a.margin,c=s[0],f=s[1];return h&&(c-=h.left+h.right,f-=h.top+h.bottom),e=new te(u(),null,(!0)),r={Contents:o.attach(e),Parent:n,MediaBox:[0,0,s[0],s[1]]},i=new se(o,r),i._content=e,n.addPage(o.attach(i)),i.transform(1,0,0,-1,0,s[1]),h&&(i.translate(h.left,h.top),i.rect(0,0,c,f),i.clip()),o.pages.push(i),i},o.render=function(){var t,e;for(a("%PDF-1.4",Ut,"%ÂÁÚÏÎ",Ut,Ut),t=0;t=f.width||r.height>=f.height)&&(r=null),!r&&h&&/^image\/jpe?g$/i.test(h.type))return i=new FileReader,i.onload=function(){var r=new A(e(new Uint8Array(this.result)));URL.revokeObjectURL(s),n(Wt[t]=r)},void i.readAsArrayBuffer(h);r||(r={width:f.width,height:f.height}),a=document.createElement("canvas"),a.width=r.width,a.height=r.height,c=a.getContext("2d"),c.drawImage(f,0,0,r.width,r.height);try{u=c.getImageData(0,0,r.width,r.height)}catch(x){return void o()}finally{s&&URL.revokeObjectURL(s)}for(d=!1,l=e(),p=e(),g=u.data,m=0;m0;)t(e[o],n)}}function x(t,e,r){for(;t.length0&&e.withIndent(function(){for(var r=0;r0&&r%8===0?e.indent(t[r]):e(" ",t[r])}),e(" ]")}function k(t,e){e("(D:",_(t.getUTCFullYear(),4),_(t.getUTCMonth()+1,2),_(t.getUTCDate(),2),_(t.getUTCHours(),2),_(t.getUTCMinutes(),2),_(t.getUTCSeconds(),2),"Z)")}function T(t){return t*(72/25.4)}function D(t){return T(10*t)}function F(t){return 72*t}function I(t,e){var r,n;if("number"==typeof t)return t;if("string"==typeof t&&(r=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(t),r&&(n=parseFloat(r[1]),!isNaN(n))))return"pt"==r[2]?n:{mm:T,cm:D,"in":F}[r[2]](n);if(null!=e)return e;throw Error("Can't parse unit: "+t)}function L(){}function M(t,e,r){r||(r=L),t.prototype=new r;for(var n in e)b(e,n)&&(t.prototype[n]=e[n]);return t}function O(t){return b(Vt,t)?Vt[t]:Vt[t]=new $t(t)}function A(t){var e,r,n,i,o,a,s,h,c;if(t.offset(0),o=t.readShort(),65496!=o)throw Error("Invalid JPEG image");for(;!t.eof();){if(a=t.readByte(),255!=a)throw Error("Invalid JPEG image");if(s=t.readByte(),h=t.readShort(),ne.indexOf(s)>=0){i=t.readByte(),r=t.readShort(),e=t.readShort(),n=t.readByte();break}t.skip(h-2)}if(null==n)throw Error("Invalid JPEG image");switch(c={Type:O("XObject"),Subtype:O("Image"),Width:e,Height:r,BitsPerComponent:i,Filter:O("DCTDecode")},n){case 1:c.ColorSpace=O("DeviceGray");break;case 3:c.ColorSpace=O("DeviceRGB");break;case 4:c.ColorSpace=O("DeviceCMYK"),c.Decode=[1,0,1,0,1,0,1,0]}this.asStream=function(){t.offset(0);var e=new te(t,c);return e._resourceName=O("I"+ ++jt),e}}function R(t,e,r,n){this.asStream=function(i){var o=new te(n,{Type:O("XObject"),Subtype:O("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:O("DeviceGray")},(!0)),a=new te(r,{Type:O("XObject"),Subtype:O("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:O("DeviceRGB"),SMask:i.attach(o)},(!0));return a._resourceName=O("I"+ ++jt),a}}function P(t){return t.map(function(t){return Kt(t)?P(t):"number"==typeof t?(Math.round(1e3*t)/1e3).toFixed(3):t}).join(" ")}function E(t,e,r,n,i,o,a){var s=P([e,r,n,i,o,a]),h=t.GRAD_COL_FUNCTIONS[s];return h||(h=t.GRAD_COL_FUNCTIONS[s]=t.attach(new Qt({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[e,r,n],C1:[i,o,a]}))),h}function G(t,e,r){var n=P([e,r]),i=t.GRAD_OPC_FUNCTIONS[n];return i||(i=t.GRAD_OPC_FUNCTIONS[n]=t.attach(new Qt({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[e],C1:[r]}))),i}function N(t,e){function r(t){return 1==t.length?t[0]:{FunctionType:3,Functions:t,Domain:[0,1],Bounds:u,Encode:d}}var n,i,o,a,s,h=!1,c=[],f=[],u=[],d=[];for(n=1;n0)){var o=new p({producer:r("producer"),title:r("title"),author:r("author"),subject:r("subject"),keywords:r("keywords"),creator:r("creator"),date:r("date")});h?t.children.forEach(n):n(t),e(o.render(),o)}}var i,o=[],a={},s=t.options,h=r("multiPage"),c=r("imgDPI");c&&w(),t.traverse(function(t){Q({Image:function(t){var e,r,n=t.src();c?(e=t.bbox().size,r=a[n],e={width:Math.ceil(e.width*c/72),height:Math.ceil(e.height*c/72)},r&&(e.width=Math.max(r.width,e.width),e.height=Math.max(r.height,e.height)),a[n]=e):a[n]=null},Text:function(t){var e=q(t.options.font),r=H(e);o.indexOf(r)<0&&o.push(r)}},t)}),i=2,Xt(o,n),Zt(a,n)}function J(t,e){Y(t,function(t){e("data:application/pdf;base64,"+t.base64())})}function $(t,e){Y(t,function(t){e(new window.Blob([t.get()],{type:"application/pdf"}))})}function V(e,r,n,i){window.Blob&&!_t.safari?$(e,function(e){t.saveAs({dataURI:e,fileName:r}),i&&i(e)}):J(e,function(e){t.saveAs({dataURI:e,fileName:r,proxyURL:n}),i&&i(e)})}function Q(t,e){var r=t[e.nodeType];return r?r.call.apply(r,arguments):e}function tt(t,e,r){var n,i,o;t.options._pdfDebug&&e.comment("BEGIN: "+t.options._pdfDebug),n=t.transform(),i=t.opacity(),e.save(),null!=i&&i<1&&e.setOpacity(i),et(t,e,r),rt(t,e,r),n&&(o=n.matrix(),e.transform(o.a,o.b,o.c,o.d,o.e,o.f)),nt(t,e,r),Q({Path:ct,MultiPath:ft,Circle:ut,Arc:dt,Text:lt,Image:gt,Group:pt,Rect:mt},t,e,r),e.restore(),t.options._pdfDebug&&e.comment("END: "+t.options._pdfDebug)}function et(t,e){var r,n,i,o,a,s,h=t.stroke&&t.stroke();if(h){if(r=h.color){if(r=wt(r),null==r)return;e.setStrokeColor(r.r,r.g,r.b),1!=r.a&&e.setStrokeOpacity(r.a)}if(n=h.width,null!=n){if(0===n)return;e.setLineWidth(n)}i=h.dashType,i&&e.setDashPattern(ue[i],0),o=h.lineCap,o&&e.setLineCap(de[o]),a=h.lineJoin,a&&e.setLineJoin(le[a]),s=h.opacity,null!=s&&e.setStrokeOpacity(s)}}function rt(t,e){var r,n,i=t.fill&&t.fill();if(i&&!(i instanceof vt.Gradient)){if(r=i.color){if(r=wt(r),null==r)return;e.setFillColor(r.r,r.g,r.b),1!=r.a&&e.setFillOpacity(r.a)}n=i.opacity,null!=n&&e.setFillOpacity(n)}}function nt(t,e,r){var n=t.clip();n&&(ht(n,e,r),e.clip())}function it(t){return t&&(t instanceof vt.Gradient||t.color&&!/^(none|transparent)$/i.test(t.color)&&(null==t.width||t.width>0)&&(null==t.opacity||t.opacity>0))}function ot(t,e,r,n){var i,o,a,s,h,c,f,u,d=t.fill();if(d instanceof vt.Gradient)return n?e.clipStroke():e.clip(),i=d instanceof vt.RadialGradient,i?(o={x:d.center().x,y:d.center().y,r:0},a={x:d.center().x,y:d.center().y,r:d.radius()}):(o={x:d.start().x,y:d.start().y},a={x:d.end().x,y:d.end().y}),s=d.stops.elements().map(function(t){var e,r=t.offset();return r=/%$/.test(r)?parseFloat(r)/100:parseFloat(r),e=wt(t.color()),e.a*=t.opacity(),{offset:r,color:e}}),s.unshift(s[0]),s.push(s[s.length-1]),h={userSpace:d.userSpace(),type:i?"radial":"linear",start:o,end:a,stops:s},c=t.rawBBox(),f=c.topLeft(),u=c.getSize(),c={left:f.x,top:f.y,width:u.width,height:u.height},e.gradient(h,c),!0}function at(t,e,r){it(t.fill())&&it(t.stroke())?ot(t,e,r,!0)||e.fillStroke():it(t.fill())?ot(t,e,r,!1)||e.fill():it(t.stroke())?e.stroke():e.nop()}function st(t,e){var r,n,i,o=t.segments;if(4==o.length&&t.options.closed){for(r=[],n=0;n0&&(it(t.fill())||it(t.stroke()))}function n(t){var e,r,n=[];for(e=0;e0?t:e(null)},Group:function(r){var i=new vt.Group(r.options);return i.children=n(r.children),i._pdfLink=r._pdfLink,r===t||0!==i.children.length||r._pdfLink?i:e(null)},Rect:function(t){return r(t)?t:e(null)}},a)})}var s,h=!1,c=kt.Matrix.unit(),f=null;do s=!1,t=a(t);while(t&&s);return{root:t,bbox:f}}function yt(t,e){var r,n=Ct.createPromise();for(r in e)"margin"==r&&t.options.pdf&&t.options.pdf._ignoreMargin||t.options.set("pdf."+r,e[r]);return J(t,n.resolve),n}var xt,_t,bt,vt,Ct,kt,Tt,Dt,Ft,It,Lt,Mt,Ot,At,Rt,Pt,Et,Gt,Nt,Bt,zt,Ut,jt,qt,Ht,Wt,Xt,Zt,Kt,Yt,Jt,$t,Vt,Qt,te,ee,re,ne,ie,oe,ae,se,he,ce,fe,ue,de,le;window.kendo.pdf=window.kendo.pdf||{},xt=t.support,_t=xt.browser,bt=t.pdf,vt=t.drawing,Ct=vt.util,kt=t.geometry,Tt="undefined"!=typeof Uint8Array,Dt=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{decode:function(e){for(var r,n,i,o,a,s,h,c=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),f=0,u=c.length,d=[];f>>4,s=(15&n)<<4|i>>>2,h=(3&i)<<6|o,d.push(a),64!=i&&d.push(s),64!=o&&d.push(h);return d},encode:function(e){for(var r,n,i,o,a,s,h,c=0,f=e.length,u="";c>>2,a=(3&r)<<4|n>>>4,s=(15&n)<<2|i>>>6,h=63&i,c-f==2?s=h=64:c-f==1&&(h=64),u+=t.charAt(o)+t.charAt(a)+t.charAt(s)+t.charAt(h);return u}}}(),a.prototype={readTable:function(t,e){var r=this.tables[t];if(!r)throw Error("Table "+t+" not found in directory");return this[t]=r.table=new e(this,r)},render:function(t){var r,n,o,a,s,h,c,f,u=this,d=Object.keys(t).length,l=Math.pow(2,Math.floor(Math.log(d)/Math.LN2)),p=16*l,g=Math.floor(Math.log(l)/Math.LN2),m=16*d-p,w=e();w.writeLong(this.scalerType),w.writeShort(d),w.writeShort(p),w.writeShort(g),w.writeShort(m),r=16*d,n=w.offset()+r,o=null,a=e();for(s in t)if(i(t,s))for(h=t[s],w.writeString(s),w.writeLong(u.checksum(h)),w.writeLong(n),w.writeLong(h.length),a.write(h),"head"==s&&(o=n),n+=h.length;n%4;)a.writeByte(0),n++;return w.write(a.get()),c=this.checksum(w.get()),f=2981146554-c,w.offset(o+8),w.writeLong(f),w.get()},checksum:function(t){t=e(t);for(var r=0;!t.eof();)r+=t.readLong();return 4294967295&r}},Ft=s({parse:function(t){t.offset(this.offset),this.version=t.readLong(),this.revision=t.readLong(),this.checkSumAdjustment=t.readLong(),this.magicNumber=t.readLong(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.read(8),this.modified=t.read(8),this.xMin=t.readShort_(),this.yMin=t.readShort_(),this.xMax=t.readShort_(),this.yMax=t.readShort_(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort_(),this.indexToLocFormat=t.readShort_(),this.glyphDataFormat=t.readShort_()},render:function(t){var r=e();return 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_(t),r.writeShort_(this.glyphDataFormat),r.get()}}),It=s({parse:function(t){t.offset(this.offset);var e=this.file.head.indexToLocFormat;this.offsets=0===e?t.times(this.length/2,function(){return 2*t.readShort()}):t.times(this.length/4,t.readLong)},offsetOf:function(t){return this.offsets[t]},lengthOf:function(t){return this.offsets[t+1]-this.offsets[t]},render:function(t){var r,n=e(),i=t[t.length-1]>65535;for(r=0;r=0?i.push(c):(i.push(t.length+o.length),o.push(h));for(n.writeShort(r.length),a=0;a0;)r[e++]=t.readShort();break;case 12:for(t.readShort(),n.length=t.readLong(),n.language=t.readLong(),w=t.readLong();w-- >0;)for(e=t.readLong(),S=t.readLong(),y=t.readLong();e<=S;)r[e++]=y++;break;default:window.console&&window.console.error("Unhandled CMAP format: "+n.format)}})}function r(t,r){function n(e){return r[t[e]]}var i,a,s,h,c,f,u,d,l,p,g,m,w,S,y,x,_,b=o(t),v=[],C=[],k=null,T=null;for(i=0;i=32768)for(p.push(0),g.push(2*(m.length+c-i)),x=w;x<=S;++x)m.push(n(x));else p.push(y-w),g.push(0)}return _=e(),_.writeShort(3),_.writeShort(1),_.writeLong(12),_.writeShort(4),_.writeShort(16+8*c+2*m.length),_.writeShort(0),_.writeShort(f),_.writeShort(u),_.writeShort(d),_.writeShort(l),C.forEach(_.writeShort),_.writeShort(0),v.forEach(_.writeShort),p.forEach(_.writeShort_),g.forEach(_.writeShort),m.forEach(_.writeShort),_.get()}return s({parse:function(e){var r,n=this,i=n.offset;e.offset(i),n.codeMap={},n.version=e.readShort(),r=e.readShort(),n.tables=e.times(r,function(){return new t(e,i,n.codeMap)})},render:function(t,n){var i=e();return i.writeShort(0),i.writeShort(1),i.write(r(t,n)),i.get()}})}(),Gt=s({parse:function(t){t.offset(this.offset),this.version=t.readShort(),this.averageCharWidth=t.readShort_(),this.weightClass=t.readShort(),this.widthClass=t.readShort(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort_(),this.ySubscriptYSize=t.readShort_(),this.ySubscriptXOffset=t.readShort_(),this.ySubscriptYOffset=t.readShort_(),this.ySuperscriptXSize=t.readShort_(),this.ySuperscriptYSize=t.readShort_(),this.ySuperscriptXOffset=t.readShort_(),this.ySuperscriptYOffset=t.readShort_(),this.yStrikeoutSize=t.readShort_(),this.yStrikeoutPosition=t.readShort_(),this.familyClass=t.readShort_(),this.panose=t.times(10,t.readByte),this.charRange=t.times(4,t.readLong),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort_(),this.descent=t.readShort_(),this.lineGap=t.readShort_(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=t.times(2,t.readLong),this.version>1&&(this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()))},render:function(){return this.raw()}}),Nt=1e5,c.prototype={use:function(t){var e,n,i,o=this;return"string"==typeof t?r(t).reduce(function(t,e){return t+String.fromCharCode(o.use(e))},""):(e=o.unicodes[t],e||(e=o.next++,o.subset[e]=t,o.unicodes[t]=e,n=o.font.cmap.codeMap[t],n&&(o.ncid2ogid[e]=n,null==o.ogid2ngid[n]&&(i=o.nextGid++,o.ogid2ngid[n]=i,o.ngid2ogid[i]=n))),e)},encodeText:function(t){return this.use(t)},glyphIds:function(){return o(this.ogid2ngid)},glyphsFor:function(t,e){var r,n,i,o=this;for(e||(e={}),r=0;r")}},Yt),$t=M(function(t){this.name=t},{render:function(t){t("/"+this.escape())},escape:function(){return this.name.replace(/[^\x21-\x7E]/g,function(t){return"#"+_(t.charCodeAt(0).toString(16),2)})},toString:function(){return this.name}}),Vt={},$t.get=O,Qt=M(function(t){this.props=t},{render:function(t){var e=this.props,r=!0;t("<<"),t.withIndent(function(){for(var n in e)b(e,n)&&!/^_/.test(n)&&(r=!1,t.indent(O(n)," ",e[n]))}),r||t.indent(),t(">>")}}),te=M(function(t,r,n){if("string"==typeof t){var i=e();i.write(t),t=i}this.data=t,this.props=r||{},this.compress=n},{render:function(t){var e=this.data.get(),r=this.props;this.compress&&bt.supportsDeflate()&&(r.Filter?r.Filter instanceof Array||(r.Filter=[r.Filter]):r.Filter=[],r.Filter.unshift(O("FlateDecode")),e=bt.deflate(e)),r.Length=e.length,t(new Qt(r)," stream",Ut),t.writeData(e),t(Ut,"endstream")}}),ee=M(function(t){t=this.props=t||{},t.Type=O("Catalog")},{setPages:function(t){this.props.Pages=t}},Qt),re=M(function(){this.props={Type:O("Pages"),Kids:[],Count:0}},{addPage:function(t){this.props.Kids.push(t),this.props.Count++}},Qt),ne=[192,193,194,195,197,198,199,201,202,203,205,206,207],ie=M(function(t){this.props={Type:O("Font"),Subtype:O("Type1"),BaseFont:O(t)},this._resourceName=O("F"+ ++jt)},{encodeText:function(t){return new Yt(t+"")}},Qt),oe=M(function(t,e,r){var n,i;r=this.props=r||{},r.Type=O("Font"),r.Subtype=O("Type0"),r.Encoding=O("Identity-H"),this._pdf=t,this._font=e,this._sub=e.makeSubset(),this._resourceName=O("F"+ ++jt),n=e.head,this.name=e.psName,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=10==this.familyClass,this.flags=(e.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32},{encodeText:function(t){return new Jt(this._sub.encodeText(t+""))},getTextWidth:function(t,e){var r,n,i=this,o=0,a=this._font.cmap.codeMap;for(r=0;r> def"),t.indent("/CMapName /Adobe-Identity-UCS def"),t.indent("/CMapType 2 def"),t.indent("1 begincodespacerange"),t.indent(" <0000>"),t.indent("endcodespacerange");var e=this;t.indent(e.lastChar-e.firstChar+1," beginbfchar"),t.withIndent(function(){var r,i,o,a;for(r=e.firstChar;r<=e.lastChar;++r){for(i=e.map[r],o=n([i]),t.indent("<",_(r.toString(16),4),">","<"),a=0;a")}}),t.indent("endbfchar"),t.indent("endcmap"),t.indent("CMapName currentdict /CMap defineresource pop"),t.indent("end"),t.indent("end")}}),se=M(function(t,e){this._pdf=t,this._rcount=0,this._textMode=!1,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||{},e.Type=O("Page"),e.ProcSet=[O("PDF"),O("Text"),O("ImageB"),O("ImageC"),O("ImageI")],e.Resources=new Qt({Font:new Qt(this._fontResources),ExtGState:new Qt(this._gsResources),XObject:new Qt(this._xResources),Pattern:new Qt(this._patResources),Shading:new Qt(this._shResources)}),e.Annots=this._annotations},{_out:function(){this._content.data.apply(null,arguments)},transform:function(t,e,r,n,i,o){K(arguments)||(this._matrix=Z(arguments,this._matrix),this._out(t," ",e," ",r," ",n," ",i," ",o," cm"),this._out(Ut))},translate:function(t,e){this.transform(1,0,0,1,t,e)},scale:function(t,e){this.transform(t,0,0,e,0,0)},rotate:function(t){var e=Math.cos(t),r=Math.sin(t);this.transform(e,r,-r,e,0,0)},beginText:function(){this._textMode=!0,this._out("BT",Ut)},endText:function(){this._textMode=!1,this._out("ET",Ut)},_requireTextMode:function(){if(!this._textMode)throw Error("Text mode required; call page.beginText() first")},_requireFont:function(){if(!this._font)throw Error("No font selected; call page.setFont() first")},setFont:function(t,e){this._requireTextMode(),null==t?t=this._font:t instanceof oe||(t=this._pdf.getFont(t)),null==e&&(e=this._fontSize),this._fontResources[t._resourceName]=t,this._font=t,this._fontSize=e,this._out(t._resourceName," ",e," Tf",Ut)},setTextLeading:function(t){this._requireTextMode(),this._out(t," TL",Ut)},setTextRenderingMode:function(t){this._requireTextMode(),this._out(t," Tr",Ut)},showText:function(t,e){var r,n;this._requireFont(),t.length>1&&e&&this._font instanceof oe&&(r=this._font.getTextWidth(this._fontSize,t),n=e/r*100,this._out(n," Tz ")),this._out(this._font.encodeText(t)," Tj",Ut)},showTextNL:function(t){this._requireFont(),this._out(this._font.encodeText(t)," '",Ut)},addLink:function(t,e){var r=this._toPage({x:e.left,y:e.bottom}),n=this._toPage({x:e.right,y:e.top});this._annotations.push(new Qt({Type:O("Annot"),Subtype:O("Link"),Rect:[r.x,r.y,n.x,n.y],Border:[0,0,0],A:new Qt({Type:O("Action"),S:O("URI"),URI:new Yt(t)})}))},setStrokeColor:function(t,e,r){this._out(t," ",e," ",r," RG",Ut)},setOpacity:function(t){this.setFillOpacity(t),this.setStrokeOpacity(t),this._opacity*=t},setStrokeOpacity:function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!0);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",Ut)}},setFillColor:function(t,e,r){this._out(t," ",e," ",r," rg",Ut)},setFillOpacity:function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!1);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",Ut)}},gradient:function(t,e){var r,n,i;this.save(),this.rect(e.left,e.top,e.width,e.height),this.clip(),t.userSpace||this.transform(e.width,0,0,e.height,e.left,e.top),r=U(this._pdf,t,e),n=r.shading._resourceName,this._shResources[n]=r.shading,r.hasAlpha&&(i=r.opacity._resourceName,this._gsResources[i]=r.opacity,this._out("/"+i+" gs ")),this._out("/"+n+" sh",Ut),this.restore()},setDashPattern:function(t,e){this._out(t," ",e," d",Ut)},setLineWidth:function(t){this._out(t," w",Ut)},setLineCap:function(t){this._out(t," J",Ut)},setLineJoin:function(t){this._out(t," j",Ut)},setMitterLimit:function(t){this._out(t," M",Ut)},save:function(){this._contextStack.push(this._context()),this._out("q",Ut)},restore:function(){this._out("Q",Ut),this._context(this._contextStack.pop())},moveTo:function(t,e){this._out(t," ",e," m",Ut)},lineTo:function(t,e){this._out(t," ",e," l",Ut)},bezier:function(t,e,r,n,i,o){this._out(t," ",e," ",r," ",n," ",i," ",o," c",Ut)},bezier1:function(t,e,r,n){this._out(t," ",e," ",r," ",n," y",Ut)},bezier2:function(t,e,r,n){this._out(t," ",e," ",r," ",n," v",Ut)},close:function(){this._out("h",Ut)},rect:function(t,e,r,n){this._out(t," ",e," ",r," ",n," re",Ut)},ellipse:function(t,e,r,n){function i(e){return t+e}function o(t){return e+t}var a=.5522847498307936;this.moveTo(i(0),o(n)),this.bezier(i(r*a),o(n),i(r),o(n*a),i(r),o(0)),this.bezier(i(r),o(-n*a),i(r*a),o(-n),i(0),o(-n)),this.bezier(i(-r*a),o(-n),i(-r),o(-n*a),i(-r),o(0)),this.bezier(i(-r),o(n*a),i(-r*a),o(n),i(0),o(n))},circle:function(t,e,r){this.ellipse(t,e,r,r)},stroke:function(){this._out("S",Ut)},nop:function(){this._out("n",Ut)},clip:function(){this._out("W n",Ut)},clipStroke:function(){this._out("W S",Ut)},closeStroke:function(){this._out("s",Ut)},fill:function(){this._out("f",Ut)},fillStroke:function(){this._out("B",Ut)},drawImage:function(t){var e=this._pdf.getImage(t);e&&(this._xResources[e._resourceName]=e,this._out(e._resourceName," Do",Ut))},comment:function(t){var e=this;t.split(/\r?\n/g).forEach(function(t){e._out("% ",t,Ut)})},_context:function(t){return null==t?{opacity:this._opacity,matrix:this._matrix}:(this._opacity=t.opacity,void(this._matrix=t.matrix))},_toPage:function(t){var e=this._matrix,r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],s=e[5];return{x:r*t.x+i*t.y+a,y:n*t.x+o*t.y+s}}},Qt),he={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"},W("Times New Roman","serif"),W("Courier New","monospace"),W("Arial","sans-serif"),W("Helvetica","sans-serif"),W("Verdana","sans-serif"),W("Tahoma","sans-serif"),W("Georgia","sans-serif"),W("Monaco","monospace"),W("Andale Mono","monospace"),ce={fill:0,stroke:1,fillAndStroke:2,invisible:3,fillAndClip:4,strokeAndClip:5,fillStrokeClip:6,clip:7},fe=ce,ue={dash:[4],dashDot:[4,2,1,2],dot:[1,2],longDash:[8,2],longDashDot:[8,2,1,2],longDashDotDot:[8,2,1,2,1,2],solid:[]},de={butt:0,round:1,square:2},le={miter:0,round:1,bevel:2},t.deepExtend(t.pdf,{Document:p,BinaryStream:e,defineFont:X,parseFontDef:q,getFontURL:H,loadFonts:Xt,loadImages:Zt,getPaperOptions:l,clearImageCache:w,TEXT_RENDERING_MODE:ce,exportPDF:yt,saveAs:V,toDataURL:J,toBlob:$,render:Y}),t.drawing.exportPDF=t.pdf.exportPDF,t.drawing.pdf=t.pdf}(kendo),kendo},"function"==typeof define&&define.amd?define:function(t,e,r){(r||e)()}),function(t,define){define("pdf/mixins.min",["pdf/core.min"],t)}(function(){return function(t,e){kendo.PDFMixin={extend:function(t){t.events.push("pdfExport"),t.options.pdf=this.options,t.saveAsPDF=this.saveAsPDF,t._drawPDF=this._drawPDF,t._drawPDFShadow=this._drawPDFShadow},options:{fileName:"Export.pdf",proxyURL:"",paperSize:"auto",allPages:!1,landscape:!1,margin:null,title:null,author:null,subject:null,keywords:null,creator:"Kendo UI PDF Generator v."+kendo.version,date:null},saveAsPDF:function(){var e,r=new t.Deferred,n=r.promise(),i={promise:n};if(!this.trigger("pdfExport",i))return e=this.options.pdf,e.multiPage=e.multiPage||e.allPages,this._drawPDF(r).then(function(t){return kendo.drawing.exportPDF(t,e)}).done(function(t){kendo.saveAs({dataURI:t,fileName:e.fileName,proxyURL:e.proxyURL,forceProxy:e.forceProxy,proxyTarget:e.proxyTarget}),r.resolve()}).fail(function(t){r.reject(t)}),n},_drawPDF:function(e){var r=new t.Deferred;return kendo.drawing.drawDOM(this.wrapper).done(function(t){var n={page:t,pageNumber:1,progress:1,totalPages:1};e.notify(n),r.resolve(n.page)}).fail(function(t){r.reject(t)}),r},_drawPDFShadow:function(e,r){var n,i,o;return e=e||{},n=this.wrapper,i=t("
"),e.width&&i.css({width:e.width,overflow:"visible"}),n.before(i),i.append(e.content||n.clone(!0,!0)),o=t.Deferred(),setTimeout(function(){var t=kendo.drawing.drawDOM(i,r);t.always(function(){i.remove()}).then(function(){o.resolve.apply(o,arguments)}).fail(function(){o.reject.apply(o,arguments)}).progress(function(){o.progress.apply(o,arguments)})},15),o.promise()}}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,r){(r||e)()}),function(t,define){define("kendo.pdf.min",["kendo.core.min","kendo.drawing.min","pdf/core.min","pdf/mixins.min"],t)}(function(){},"function"==typeof define&&define.amd?define:function(t,e,r){(r||e)()}); //# sourceMappingURL=kendo.pdf.min.js.map