@syncfusion/ej2-pdf-export 24.2.3 → 25.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -10
- package/dist/ej2-pdf-export.min.js +2 -2
- package/dist/ej2-pdf-export.umd.min.js +2 -2
- package/dist/ej2-pdf-export.umd.min.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es2015.js +10 -7
- package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es5.js +10 -7
- package/dist/es6/ej2-pdf-export.es5.js.map +1 -1
- package/dist/global/ej2-pdf-export.min.js +2 -2
- package/dist/global/ej2-pdf-export.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/implementation/structured-elements/grid/layout/grid-layouter.js +8 -6
- package/src/implementation/structured-elements/grid/pdf-grid-cell.js +2 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-pdf-export.min.js
|
|
3
|
-
* version :
|
|
3
|
+
* version : 25.1.35
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
8
|
* applicable laws.
|
|
9
9
|
*/
|
|
10
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionCompression"),require("SyncfusionFileUtils")):"function"==typeof define&&define.amd?define(["SyncfusionCompression","SyncfusionFileUtils"],e):"object"==typeof exports?exports.SyncfusionPdfExport=e(require("SyncfusionCompression"),require("SyncfusionFileUtils")):t.SyncfusionPdfExport=e(t.SyncfusionCompression,t.SyncfusionFileUtils)}(this,function(t,e){return function(t){function e(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,r){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=144)}([function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"d",function(){return s});var r=function(){function t(t,e){void 0===t?(this.x=0,this.y=0):(this.x=null!==t?t:0,this.y=null!==e?e:0)}return t}(),n=function(){function t(t,e){void 0===e?(this.height=0,this.width=0):(this.height=null!==e?e:0,this.width=null!==t?t:0)}return t}(),o=function(){function t(t,e,i,o){if(typeof t==typeof t&&void 0===t)this.x=0,this.y=0,this.height=0,this.width=0;else if(t instanceof r&&e instanceof n&&void 0===i){var s=t;this.x=s.x,this.y=s.y;var a=e;this.height=a.height,this.width=a.width}else{var h=t,u=e,l=i,c=o;this.x=h,this.y=u,this.height=c,this.width=l}}return t}(),s=function(){function t(t,e,i,r){this.left=t,this.top=e,this.right=i,this.bottom=r}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topLeft",{get:function(){return new r(this.left,this.top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return new n(this.width,this.height)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.topLeft+"x"+this.size},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){this.pages="Pages",this.kids="Kids",this.count="Count",this.resources="Resources",this.type="Type",this.size="Size",this.mediaBox="MediaBox",this.parent="Parent",this.root="Root",this.decodeParms="DecodeParms",this.filter="Filter",this.font="Font",this.type1="Type1",this.baseFont="BaseFont",this.encoding="Encoding",this.subtype="Subtype",this.contents="Contents",this.procset="ProcSet",this.colorSpace="ColorSpace",this.extGState="ExtGState",this.pattern="Pattern",this.xObject="XObject",this.length="Length",this.width="Width",this.height="Height",this.bitsPerComponent="BitsPerComponent",this.image="Image",this.dctdecode="DCTDecode",this.columns="Columns",this.blackIs1="BlackIs1",this.k="K",this.s="S",this.predictor="Predictor",this.deviceRgb="DeviceRGB",this.next="Next",this.action="Action",this.link="Link",this.a="A",this.annot="Annot",this.p="P",this.c="C",this.rect="Rect",this.uri="URI",this.annots="Annots",this.ca="ca",this.CA="CA",this.xyz="XYZ",this.fit="Fit",this.dest="Dest",this.BM="BM",this.flatedecode="FlateDecode",this.rotate="Rotate",this.bBox="BBox",this.form="Form",this.w="W",this.cIDFontType2="CIDFontType2",this.cIDToGIDMap="CIDToGIDMap",this.identity="Identity",this.dw="DW",this.fontDescriptor="FontDescriptor",this.cIDSystemInfo="CIDSystemInfo",this.fontName="FontName",this.flags="Flags",this.fontBBox="FontBBox",this.missingWidth="MissingWidth",this.stemV="StemV",this.italicAngle="ItalicAngle",this.capHeight="CapHeight",this.ascent="Ascent",this.descent="Descent",this.leading="Leading",this.avgWidth="AvgWidth",this.fontFile2="FontFile2",this.maxWidth="MaxWidth",this.xHeight="XHeight",this.stemH="StemH",this.registry="Registry",this.ordering="Ordering",this.supplement="Supplement",this.type0="Type0",this.identityH="Identity-H",this.toUnicode="ToUnicode",this.descendantFonts="DescendantFonts",this.background="Background",this.shading="Shading",this.matrix="Matrix",this.antiAlias="AntiAlias",this.function="Function",this.extend="Extend",this.shadingType="ShadingType",this.coords="Coords",this.domain="Domain",this.range="Range",this.functionType="FunctionType",this.bitsPerSample="BitsPerSample",this.patternType="PatternType",this.paintType="PaintType",this.tilingType="TilingType",this.xStep="XStep",this.yStep="YStep",this.viewerPreferences="ViewerPreferences",this.centerWindow="CenterWindow",this.displayTitle="DisplayTitle",this.fitWindow="FitWindow",this.hideMenuBar="HideMenubar",this.hideToolBar="HideToolbar",this.hideWindowUI="HideWindowUI",this.pageMode="PageMode",this.pageLayout="PageLayout",this.duplex="Duplex",this.printScaling="PrintScaling"}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"d",function(){return s}),i.d(e,"e",function(){return a}),i.d(e,"f",function(){return h}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return l}),i.d(e,"i",function(){return c}),i.d(e,"j",function(){return d}),i.d(e,"k",function(){return f}),i.d(e,"l",function(){return p}),i.d(e,"m",function(){return g});var r;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(r||(r={}));var n;!function(t){t[t.Top=0]="Top",t[t.Middle=1]="Middle",t[t.Bottom=2]="Bottom"}(n||(n={}));var o;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Justify=3]="Justify"}(o||(o={}));var s;!function(t){t[t.Fill=0]="Fill",t[t.Stroke=1]="Stroke",t[t.FillStroke=2]="FillStroke",t[t.None=3]="None",t[t.ClipFlag=4]="ClipFlag",t[t.ClipFill=4]="ClipFill",t[t.ClipStroke=5]="ClipStroke",t[t.ClipFillStroke=6]="ClipFillStroke",t[t.Clip=7]="Clip"}(s||(s={}));var a;!function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(a||(a={}));var h;!function(t){t[t.Flat=0]="Flat",t[t.Round=1]="Round",t[t.Square=2]="Square"}(h||(h={}));var u;!function(t){t[t.Solid=0]="Solid",t[t.Dash=1]="Dash",t[t.Dot=2]="Dot",t[t.DashDot=3]="DashDot",t[t.DashDotDot=4]="DashDotDot",t[t.Custom=5]="Custom"}(u||(u={}));var l;!function(t){t[t.Winding=0]="Winding",t[t.Alternate=1]="Alternate"}(l||(l={}));var c;!function(t){t[t.Rgb=0]="Rgb",t[t.Cmyk=1]="Cmyk",t[t.GrayScale=2]="GrayScale",t[t.Indexed=3]="Indexed"}(c||(c={}));var d;!function(t){t[t.Normal=0]="Normal",t[t.Multiply=1]="Multiply",t[t.Screen=2]="Screen",t[t.Overlay=3]="Overlay",t[t.Darken=4]="Darken",t[t.Lighten=5]="Lighten",t[t.ColorDodge=6]="ColorDodge",t[t.ColorBurn=7]="ColorBurn",t[t.HardLight=8]="HardLight",t[t.SoftLight=9]="SoftLight",t[t.Difference=10]="Difference",t[t.Exclusion=11]="Exclusion",t[t.Hue=12]="Hue",t[t.Saturation=13]="Saturation",t[t.Color=14]="Color",t[t.Luminosity=15]="Luminosity"}(d||(d={}));var f;!function(t){t[t.Centimeter=0]="Centimeter",t[t.Pica=1]="Pica",t[t.Pixel=2]="Pixel",t[t.Point=3]="Point",t[t.Inch=4]="Inch",t[t.Document=5]="Document",t[t.Millimeter=6]="Millimeter"}(f||(f={}));var p;!function(t){t[t.Fit=0]="Fit",t[t.Center=1]="Center",t[t.Stretch=2]="Stretch",t[t.Tile=3]="Tile"}(p||(p={}));var g;!function(t){t[t.None=0]="None",t[t.LeftToRight=1]="LeftToRight",t[t.RightToLeft=2]="RightToLeft"}(g||(g={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.stringStartMark="/",this.internalValue="",this.isSaving6=!1,this.position6=-1,this.internalValue=this.normalizeValue(t)}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status6},set:function(t){this.status6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving6},set:function(t){this.isSaving6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index6},set:function(t){this.index6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position6},set:function(t){this.position6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.internalValue},set:function(t){var e=t;null!==t&&t.length>0?(e=t,this.internalValue=this.normalizeValue(e)):this.internalValue=e},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.toString())},t.prototype.toString=function(){return this.stringStartMark+this.escapeString(this.value)},t.prototype.clone=function(e){var i=new t;return i.value=this.internalValue,i},t.prototype.escapeString=function(e){for(var i="",r=0,n=e.length;r<n;r++){var o=e[r];t.delimiters.indexOf(o);i+=o}return i},t.prototype.normalizeValue=function(t,e){return t},t.delimiters="()<>[]{}/%}",t.replacements=[" ","\t","\n","\r"],t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return h}),i.d(e,"c",function(){return u}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return c}),i.d(e,"f",function(){return d}),i.d(e,"g",function(){return f});var r=i(10),n=i(3),o=i(16),s=i(1),a=function(){function t(t){if(this.position7=-1,this.primitiveItems=new r.a,this.prefix="<<",this.suffix=">>",this.resources=[],this.object=null,this.archive=!0,this.isResource=!1,void 0===t)this.primitiveItems=new r.a,this.encrypt=!0,this.dictionaryProperties=new s.a;else{this.primitiveItems=new r.a;for(var e=t.items.keys(),i=t.items.values(),n=0;n<t.items.size();n++)this.primitiveItems.setValue(e[n],i[n]);this.status=t.status,this.freezeChanges(this),this.encrypt=!0,this.dictionaryProperties=new s.a}}return Object.defineProperty(t.prototype,"items",{get:function(){return this.primitiveItems},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status7},set:function(t){this.status7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving7},set:function(t){this.isSaving7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index7},set:function(t){this.index7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position7},set:function(t){this.position7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Count",{get:function(){return this.primitiveItems.size()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Dictionary",{get:function(){return this},enumerable:!0,configurable:!0}),t.prototype.getArchive=function(){return this.archive},t.prototype.setArchive=function(t){this.archive=t},t.prototype.setEncrypt=function(t){this.encrypt=t,this.modify()},t.prototype.getEncrypt=function(){return this.encrypt},t.prototype.freezeChanges=function(t){this.bChanged=!1},t.prototype.clone=function(e){return new t},t.prototype.modify=function(){this.bChanged=!0},t.prototype.remove=function(t){"string"!=typeof t?(this.primitiveItems.remove(t.value),this.modify()):this.remove(new n.a(t))},t.prototype.containsKey=function(t){return this.primitiveItems.containsKey(t.toString())},t.prototype.onBeginSave=function(){this.beginSave.sender.beginSave()},t.prototype.onFontDictionaryBeginSave=function(){this.fontDictionaryBeginSave.sender.fontDictionaryBeginSave()},t.prototype.onDescendantFontBeginSave=function(){this.descendantFontBeginSave.sender.descendantFontBeginSave()},t.prototype.onTemplateBeginSave=function(){this.pageBeginDrawTemplate.sender.pageBeginSave()},t.prototype.onBeginAnnotationSave=function(){this.annotationBeginSave.sender.beginSave()},t.prototype.onSectionBeginSave=function(t){var e=this.sectionBeginSave;e.sender.beginSave(e.state,t)},t.prototype.save=function(t,e){void 0===e?this.save(t,!0):(t.write(this.prefix),void 0!==this.beginSave&&this.onBeginSave(),void 0!==this.descendantFontBeginSave&&this.onDescendantFontBeginSave(),void 0!==this.fontDictionaryBeginSave&&this.onFontDictionaryBeginSave(),void 0!==this.annotationBeginSave&&this.onBeginAnnotationSave(),void 0!==this.sectionBeginSave&&this.onSectionBeginSave(t),void 0!==this.pageBeginDrawTemplate&&this.onTemplateBeginSave(),this.Count>0&&this.saveItems(t),t.write(this.suffix),t.write(o.a.newLine))},t.prototype.saveItems=function(t){t.write(o.a.newLine);for(var e=this.primitiveItems.keys(),i=this.primitiveItems.values(),r=0;r<e.length;r++){var s=e[r];new n.a(s).save(t),t.write(o.a.whiteSpace);i[r].save(t),t.write(o.a.newLine)}},t}(),h=function(){function t(t){this.sender=t}return t}(),u=function(){function t(t){this.sender=t}return t}(),l=function(){function t(t){this.sender=t}return t}(),c=function(){function t(t){this.sender=t}return t}(),d=function(){function t(t,e){this.sender=t,this.state=e}return t}(),f=function(){function t(t){this.sender=t}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.position5=-1,this.value=t}return Object.defineProperty(t.prototype,"intValue",{get:function(){return this.value},set:function(t){this.value=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInteger",{get:function(){return this.integer},set:function(t){this.integer=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status5},set:function(t){this.status5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving5},set:function(t){this.isSaving5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index5},set:function(t){this.index5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position5},set:function(t){this.position5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.intValue.toString())},t.prototype.clone=function(e){return new t(this.value)},t.floatToString=function(t){var e=t.toFixed(2);return"0.00"===e&&(e=".00"),e},t.min=function(t,e,i){var r=Math.min(t,e);return Math.min(i,r)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(5),n=i(16),o=function(){function t(e){if(this.startMark="[",this.endMark="]",this.position9=-1,this.clonedObject9=null,this.isFont=!1,void 0===e)this.internalElements=[];else if(void 0===e||e instanceof t){var i=e;this.internalElements=[];for(var n=0;n<i.elements.length;n++)this.internalElements.push(i.elements[n])}else for(var o=e,n=0;n<o.length;n++){var s=new r.a(o[n]);this.add(s)}}return t.prototype.items=function(t){return this.internalElements[t]},Object.defineProperty(t.prototype,"count",{get:function(){return this.internalElements.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status9},set:function(t){this.status9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving9},set:function(t){this.isSaving9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.clonedObject9},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position9},set:function(t){this.position9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index9},set:function(t){this.index9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CrossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.internalElements},enumerable:!0,configurable:!0}),t.prototype.add=function(t){void 0===this.internalElements&&(this.internalElements=[]),this.internalElements.push(t),this.markedChange()},t.prototype.markedChange=function(){this.bChanged=!0},t.prototype.contains=function(t){for(var e=0;e<this.internalElements.length;e++){var i=this.internalElements[e],r=t;if(null!=i&&void 0!==i&&null!=r&&void 0!==r&&i.value===r.value)return!0}return!1},t.prototype.getItems=function(t){return this.internalElements[t]},t.prototype.save=function(t){t.write(this.startMark);for(var e=0,i=this.count;e<i;e++)this.getItems(e).save(t),e+1!==i&&t.write(n.a.whiteSpace);t.write(this.endMark)},t.prototype.clone=function(e){this.clonedObject9=null;for(var i=new t,r=0;r<this.internalElements.length;r++){var n=this.internalElements[r];i.add(n.clone(e))}return i.pdfCrossTable=e,this.clonedObject9=i,i},t.fromRectangle=function(e){return new t([e.x,e.y,e.width,e.height])},t.prototype.insert=function(t,e){if(t<this.internalElements.length&&t>0){for(var i=[],r=0;r<t;r++)i.push(this.internalElements[r]);i.push(e);for(var r=t;r<this.internalElements.length;r++)i.push(this.internalElements[r]);this.internalElements=i}else this.internalElements.push(e);this.markChanged()},t.prototype.indexOf=function(t){return this.internalElements.indexOf(t)},t.prototype.remove=function(t){var e=this.internalElements.indexOf(t);this.internalElements[e]=null,this.markChanged()},t.prototype.removeAt=function(t){if(this.internalElements.length>t){for(var e=[],i=0;i<t;i++)e.push(this.internalElements[i]);for(var i=t+1;i<this.internalElements.length;i++)e.push(this.internalElements[i]);this.internalElements=e}this.markChanged()},t.prototype.clear=function(){this.internalElements=[],this.markChanged()},t.prototype.markChanged=function(){this.bChanged=!0},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"d",function(){return s}),i.d(e,"e",function(){return a}),i.d(e,"f",function(){return h}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return l}),i.d(e,"i",function(){return c}),i.d(e,"j",function(){return d}),i.d(e,"k",function(){return f}),i.d(e,"l",function(){return p}),i.d(e,"m",function(){return g});var r;!function(t){t[t.Regular=0]="Regular",t[t.Bold=1]="Bold",t[t.Italic=2]="Italic",t[t.Underline=4]="Underline",t[t.Strikeout=8]="Strikeout"}(r||(r={}));var n;!function(t){t[t.Helvetica=0]="Helvetica",t[t.Courier=1]="Courier",t[t.TimesRoman=2]="TimesRoman",t[t.Symbol=3]="Symbol",t[t.ZapfDingbats=4]="ZapfDingbats"}(n||(n={}));var o;!function(t){t[t.Standard=0]="Standard",t[t.TrueType=1]="TrueType",t[t.TrueTypeEmbedded=2]="TrueTypeEmbedded"}(o||(o={}));var s;!function(t){t[t.None=0]="None",t[t.Word=1]="Word",t[t.WordOnly=2]="WordOnly",t[t.Character=3]="Character"}(s||(s={}));var a;!function(t){t[t.None=0]="None",t[t.SuperScript=1]="SuperScript",t[t.SubScript=2]="SubScript"}(a||(a={}));var h;!function(t){t[t.Unknown=0]="Unknown",t[t.StandardEncoding=1]="StandardEncoding",t[t.MacRomanEncoding=2]="MacRomanEncoding",t[t.MacExpertEncoding=3]="MacExpertEncoding",t[t.WinAnsiEncoding=4]="WinAnsiEncoding",t[t.PdfDocEncoding=5]="PdfDocEncoding",t[t.IdentityH=6]="IdentityH"}(h||(h={}));var u;!function(t){t[t.Apple=0]="Apple",t[t.Microsoft=4]="Microsoft",t[t.Trimmed=6]="Trimmed"}(u||(u={}));var l;!function(t){t[t.Unknown=0]="Unknown",t[t.Symbol=1]="Symbol",t[t.Unicode=2]="Unicode",t[t.Macintosh=3]="Macintosh"}(l||(l={}));var c;!function(t){t[t.AppleUnicode=0]="AppleUnicode",t[t.Macintosh=1]="Macintosh",t[t.Iso=2]="Iso",t[t.Microsoft=3]="Microsoft"}(c||(c={}));var d;!function(t){t[t.Undefined=0]="Undefined",t[t.Unicode=1]="Unicode"}(d||(d={}));var f;!function(t){t[t.Roman=0]="Roman",t[t.Japanese=1]="Japanese",t[t.Chinese=2]="Chinese"}(f||(f={}));var p;!function(t){t[t.FixedPitch=1]="FixedPitch",t[t.Serif=2]="Serif",t[t.Symbolic=4]="Symbolic",t[t.Script=8]="Script",t[t.Nonsymbolic=32]="Nonsymbolic",t[t.Italic=64]="Italic",t[t.ForceBold=262144]="ForceBold"}(p||(p={}));var g;!function(t){t[t.Arg1And2AreWords=1]="Arg1And2AreWords",t[t.ArgsAreXyValues=2]="ArgsAreXyValues",t[t.RoundXyToGrid=4]="RoundXyToGrid",t[t.WeHaveScale=8]="WeHaveScale",t[t.Reserved=16]="Reserved",t[t.MoreComponents=32]="MoreComponents",t[t.WeHaveAnXyScale=64]="WeHaveAnXyScale",t[t.WeHaveTwoByTwo=128]="WeHaveTwoByTwo",t[t.WeHaveInstructions=256]="WeHaveInstructions",t[t.UseMyMetrics=512]="UseMyMetrics"}(g||(g={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return l}),i.d(e,"b",function(){return c});var r=i(1),n=i(13),o=i(6),s=i(5),a=i(3),h=i(4),u=i(17),l=function(){function t(t,e){this.index3=-1,this.position3=-1,this.objNumber=0,this.genNumber=0,"number"==typeof t&&"number"==typeof e?(this.objNumber=t,this.genNumber=e):(this.objNumber=Number(t),this.genNumber=Number(e))}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status3},set:function(t){this.status3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving3},set:function(t){this.isSaving3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index3},set:function(t){this.index3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position3},set:function(t){this.position3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.toString())},t.prototype.toString=function(){return this.objNumber.toString()+" "+this.genNumber.toString()+" R"},t.prototype.clone=function(t){return null},t}(),c=function(){function t(t,e){this.index4=-1,this.position4=-1,this.objectIndex=-1,this.dictionaryProperties=new r.a,this.initialize(t)}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status4},set:function(t){this.status4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving4},set:function(t){this.isSaving4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index4},set:function(t){this.index4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position4},set:function(t){this.position4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"object",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.objectIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),t.prototype.initialize=function(t){if(t instanceof o.a||t instanceof h.a||t instanceof a.a||t instanceof s.a||t instanceof n.a||t instanceof l||t instanceof u.b)this.primitiveObject=t;else{var e=t;this.initialize(e.element)}},t.prototype.save=function(t){var e=(t.position,t.document.crossTable);this.object.isSaving=!0;var i=null;i=e.getReference(this.object),i.save(t)},t.prototype.clone=function(t){return null},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(2),n=i(16),o=i(10),s=i(5),a=i(6),h=function(){function t(e,i,r,n){void 0===e?void 0!==i&&void 0!==r&&void 0!==n?this.assignRGB(i,r,n):this.filled=!1:e instanceof t?(this.redColor=e.r,this.greenColor=e.g,this.blueColor=e.b,this.grayColor=e.gray,this.alpha=e.alpha,this.filled=0!==this.alpha):"number"==typeof e&&void 0===i&&void 0===r&&void 0===n?(e<0&&(e=0),e>1&&(e=1),this.redColor=e*t.maxColourChannelValue,this.greenColor=e*t.maxColourChannelValue,this.blueColor=e*t.maxColourChannelValue,this.cyanColor=e,this.magentaColor=e,this.yellowColor=e,this.blackColor=e,this.grayColor=e,this.alpha=t.maxColourChannelValue,this.filled=!0):void 0===n?this.assignRGB(e,i,r):this.assignRGB(i,r,n,e)}return t.prototype.assignRGB=function(e,i,r,n){void 0===e||void 0===i||void 0===r?this.filled=!1:(this.cyanColor=0,this.magentaColor=0,this.yellowColor=0,this.blackColor=0,this.grayColor=0,this.redColor=e,this.greenColor=i,this.blueColor=r,this.alpha=void 0===n?t.maxColourChannelValue:n,this.filled=!0,this.assignCMYK(e,i,r))},t.prototype.assignCMYK=function(e,i,r){var n=e/t.maxColourChannelValue,o=i/t.maxColourChannelValue,a=r/t.maxColourChannelValue,h=s.a.min(1-n,1-o,1-a),u=1===h?0:(1-n-h)/(1-h),l=1===h?0:(1-o-h)/(1-h),c=1===h?0:(1-a-h)/(1-h);this.blackColor=h,this.cyanColor=u,this.magentaColor=l,this.yellowColor=c},Object.defineProperty(t.prototype,"r",{get:function(){return this.redColor},set:function(t){this.redColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"red",{get:function(){return this.r/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this.blueColor},set:function(t){this.blueColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"blue",{get:function(){return this.b/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"c",{get:function(){return this.cyanColor},set:function(t){this.cyanColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"k",{get:function(){return this.blackColor},set:function(t){this.blackColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"m",{get:function(){return this.magentaColor},set:function(t){this.magentaColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.yellowColor},set:function(t){this.yellowColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return this.greenColor},set:function(t){this.greenColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"green",{get:function(){return this.g/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gray",{get:function(){return(this.redColor+this.greenColor+this.blueColor)/(3*t.maxColourChannelValue)},set:function(e){this.grayColor=e<0?0:e>1?1:e,this.r=this.grayColor*t.maxColourChannelValue,this.g=this.grayColor*t.maxColourChannelValue,this.b=this.grayColor*t.maxColourChannelValue,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.filled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a",{get:function(){return this.alpha},set:function(t){this.alpha=t<0?0:t,this.filled=!0},enumerable:!0,configurable:!0}),t.prototype.toString=function(t,e){if(this.isEmpty)return"";var i="";switch(t){case r.i.Rgb:i=this.rgbToString(e);break;case r.i.GrayScale:i=this.grayScaleToString(e);break;case r.i.Cmyk:i=this.cmykToString(e)}return i},t.prototype.grayScaleToString=function(e){var i=this.gray,r="",o=null;return o=e?t.grayStringsSroke.containsKey(i)?t.grayStringsSroke.getValue(i):null:t.grayStringsFill.containsKey(i)?t.grayStringsFill.getValue(i):null,null==o?e&&(r=i.toString()+" G",t.grayStringsSroke.setValue(i,r)):r=o.toString(),r+n.a.newLine},t.prototype.rgbToString=function(e){var i=this.r,r=this.g,o=this.b,s=(i<<16)+(r<<8)+o;e&&(s+=1<<24);var a="",h=null;if(t.rgbStrings.containsKey(s)&&(h=t.rgbStrings.getValue(s)),null==h){var u=i/t.maxColourChannelValue,l=r/t.maxColourChannelValue,c=o/t.maxColourChannelValue;a=e?u.toString()+" "+l.toString()+" "+c.toString()+" RG":u.toString()+" "+l.toString()+" "+c.toString()+" rg",t.rgbStrings.setValue(s,a)}else a=h.toString();return a+n.a.newLine},t.prototype.cmykToString=function(t){var e=this.c,i=this.m,r=this.y,o=this.b;return e.toString()+" "+i.toString()+" "+r.toString()+" "+o.toString()+" K"+n.a.newLine},t.prototype.toArray=function(t){var e=new a.a;switch(t){case r.i.Rgb:e.add(new s.a(this.red)),e.add(new s.a(this.green)),e.add(new s.a(this.blue))}return e},t.rgbStrings=new o.a,t.grayStringsSroke=new o.a,t.grayStringsFill=new o.a,t.maxColourChannelValue=255,t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(67),n=function(){function t(t){this.table={},this.nElements=0,this.toStr=t||r.a}return t.prototype.getValue=function(t){var e=this.table["$"+this.toStr(t)];if(void 0!==e)return e.value},t.prototype.setValue=function(t,e){var i,r="$"+this.toStr(t);this.table[r];return this.nElements++,i=void 0,this.table[r]={key:t,value:e},i},t.prototype.remove=function(t){var e="$"+this.toStr(t),i=this.table[e];return delete this.table[e],this.nElements--,i.value},t.prototype.keys=function(){for(var t=[],e=Object.keys(this.table),i=0;i<e.length;i++){var r=this.table[e[i]];t.push(r.key)}return t},t.prototype.values=function(){for(var t=[],e=Object.keys(this.table),i=0;i<e.length;i++){var r=this.table[e[i]];t.push(r.value)}return t},t.prototype.containsKey=function(t){return!(void 0===this.getValue(t))},t.prototype.clear=function(){this.table={},this.nElements=0},t.prototype.size=function(){return this.nElements},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t.prototype.clone=function(){return this},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return a});var r=i(0),n=function(){function t(t){this.layoutElement=t}return Object.defineProperty(t.prototype,"elements",{get:function(){return this.layoutElement},enumerable:!0,configurable:!0}),t.prototype.getElement=function(){return this.layoutElement},t.prototype.layout=function(t){return this.layoutInternal(t)},t.prototype.Layouter=function(t){return this.layoutInternal(t)},t.prototype.getNextPage=function(t){return t.section.add()},t.prototype.getPaginateBounds=function(t){if(null==t)throw new Error("ArgumentNullException : param");return t.format.usePaginateBounds?t.format.paginateBounds:new r.c(t.bounds.x,0,t.bounds.width,t.bounds.height)},t}(),o=function(){function t(t){void 0===t||(this.break=t.break,this.layout=t.layout,this.paginateBounds=t.paginateBounds,this.boundsSet=t.usePaginateBounds)}return Object.defineProperty(t.prototype,"layout",{get:function(){return this.layoutType},set:function(t){this.layoutType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"break",{get:function(){return this.breakType},set:function(t){this.breakType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paginateBounds",{get:function(){return void 0===this.layoutPaginateBounds&&null==this.layoutPaginateBounds&&(this.layoutPaginateBounds=new r.c(0,0,0,0)),this.layoutPaginateBounds},set:function(t){this.layoutPaginateBounds=t,this.boundsSet=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"usePaginateBounds",{get:function(){return this.boundsSet},enumerable:!0,configurable:!0}),t}(),s=function(){function t(){}return Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},set:function(t){this.pdfPage=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return new r.c(this.layoutBounds.x,this.layoutBounds.y,this.layoutBounds.width,this.layoutBounds.height)},set:function(t){this.layoutBounds=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.layoutFormat},set:function(t){this.layoutFormat=t},enumerable:!0,configurable:!0}),t}(),a=function(){function t(t,e){this.pdfPage=t,this.layoutBounds=e}return Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.layoutBounds},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return c}),i.d(e,"b",function(){return d}),i.d(e,"c",function(){return f});var r=i(4),n=i(5),o=i(16),s=i(3),a=i(6),h=i(8),u=i(145),l=(i.n(u),this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}()),c=function(t){function e(e,i){var r=t.call(this,e)||this;return r.dicPrefix="stream",r.dicSuffix="endstream",r.clonedObject2=null,r.bCompress=!0,void 0!==e||void 0!==i?(r.dataStream2=[],r.dataStream2=i,r.bCompress2=!1):(r.dataStream2=[],r.bCompress2=!0),r}return l(e,t),Object.defineProperty(e.prototype,"internalStream",{get:function(){return this.dataStream2},set:function(t){this.dataStream2=[],this.dataStream2=t,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compress",{get:function(){return this.bCompress},set:function(t){this.bCompress=t,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.dataStream2},set:function(t){this.dataStream2=[],this.dataStream2=t,this.modify()},enumerable:!0,configurable:!0}),e.prototype.clearStream=function(){this.internalStream=[],this.items.containsKey(this.dictionaryProperties.filter)&&this.remove(this.dictionaryProperties.filter),this.bCompress=!0,this.modify()},e.prototype.write=function(t){if(null==t)throw new Error("ArgumentNullException:text");if(t.length<=0)throw new Error("ArgumentException: Can not write an empty string, text");this.dataStream2.push(t),this.modify()},e.prototype.writeBytes=function(t){if(null===t)throw new Error("ArgumentNullException:data");if(t.length<=0)throw new Error("ArgumentException: Can not write an empty bytes, data");for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);this.dataStream2.push(e),this.modify()},e.prototype.onCmapBeginSave=function(){this.cmapBeginSave.sender.cmapBeginSave()},e.prototype.onFontProgramBeginSave=function(){this.fontProgramBeginSave.sender.fontProgramBeginSave()},e.prototype.compressContent=function(t,e){if(this.bCompress){for(var i=[],r=0;r<t.length;r++)i.push(t.charCodeAt(r));var n=new Uint8Array(i),o=new u.CompressedStreamWriter;o.write(n,0,n.length),o.close(),t=o.getCompressedString,this.addFilter(this.dictionaryProperties.flatedecode)}return t},e.prototype.addFilter=function(t){var e=this.items.getValue(this.dictionaryProperties.filter);if(e instanceof h.b){e=e.object}var i=e,r=e;null!=r&&(i=new a.a,i.insert(0,r),this.items.setValue(this.dictionaryProperties.filter,i)),r=new s.a(t),null==i?this.items.setValue(this.dictionaryProperties.filter,r):i.insert(0,r)},e.prototype.save=function(e){void 0!==this.cmapBeginSave&&this.onCmapBeginSave(),void 0!==this.fontProgramBeginSave&&this.onFontProgramBeginSave();for(var i="",r=0;r<this.data.length;r++)i+=this.data[r];i.length>1&&!this.isResource&&(i="q\r\n"+i+"Q\r\n"),i=this.compressContent(i,e);var s=i.length;this.items.setValue(this.dictionaryProperties.length,new n.a(s)),t.prototype.save.call(this,e,!1),e.write(this.dicPrefix),e.write(o.a.newLine),i.length>0&&e.write(i),e.write(o.a.newLine),e.write(this.dicSuffix),e.write(o.a.newLine)},e.bytesToString=function(t){for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return e},e}(r.a),d=function(){function t(t){this.sender=t}return t}(),f=function(){function t(t){this.sender=t}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return h}),i.d(e,"c",function(){return u}),i.d(e,"d",function(){return r});var r,n=i(0),o=i(7),s=i(28),a=function(){function t(){this.isOverloadWithPosition=!1}return t.prototype.layout=function(t,e,i,r,o,s,a){if(r instanceof n.c){this.initialize(t,e,i,r,o),this.isOverloadWithPosition=s,this.clientSize=a;var h=this.doLayout();return this.clear(),h}this.initialize(t,e,i,r),this.isOverloadWithPosition=o,this.clientSize=s;var h=this.doLayout();return this.clear(),h},t.prototype.initialize=function(t,e,i,r,o){if("number"==typeof o){if(null==t)throw new Error("ArgumentNullException:text");if(null==e)throw new Error("ArgumentNullException:font");this.text=t,this.font=e,this.format=i,this.size=new n.b(r.width,r.height),this.rectangle=r,this.pageHeight=o,this.reader=new s.a(t)}else this.initialize(t,e,i,new n.c(new n.a(0,0),r),0)},t.prototype.clear=function(){this.font=null,this.format=null,this.reader.close(),this.reader=null,this.text=null},t.prototype.doLayout=function(){for(var t=new h,e=new h,i=[],r=this.reader.peekLine(),n=this.getLineIndent(!0);null!=r;){if(null!==(e=this.layoutLine(r,n))||void 0!==e){var o=0,s=this.copyToResult(t,e,i,o),a=s.success;if(o=s.numInserted,!a){this.reader.read(o);break}}this.reader.readLine(),r=this.reader.peekLine(),n=this.getLineIndent(!1)}return this.finalizeResult(t,i),t},t.prototype.getLineIndent=function(t){var e=0;return null!=this.format&&(e=t?this.format.firstLineIndent:this.format.paragraphIndent,e=this.size.width>0?Math.min(this.size.width,e):e),e},t.prototype.getLineHeight=function(){var t=this.font.height;return null!=this.format&&0!==this.format.lineSpacing&&(t=this.format.lineSpacing+this.font.height),t},t.prototype.getLineWidth=function(t){return this.font.getLineWidth(t,this.format)},t.prototype.layoutLine=function(t,e){var i=new h;i.layoutLineHeight=this.getLineHeight();var n=[],a=this.size.width,u=this.getLineWidth(t)+e,l=r.FirstParagraphLine,c=!0;if(a<=0||Math.round(u)<=Math.round(a))this.addToLineResult(i,n,t,u,r.NewLineBreak|l);else{var d="",f="";u=e;var p=e,g=new s.a(t),m=g.peekWord();for(m.length!==g.length&&" "===m&&(f+=m,d+=m,g.position+=1,m=g.peekWord());null!=m;){f+=m;var y=this.getLineWidth(f.toString())+p;if(" "===f.toString()&&(f="",y=0),y>a){if(this.getWrapType()===o.d.None)break;if(f.length===m.length){if(this.getWrapType()===o.d.WordOnly){i.textRemainder=t.substring(g.position);break}if(1===f.length){d+=m;break}c=!1,f="",m=g.peek().toString();continue}if(this.getLineWidth(m.toString())>a?this.format.wordWrap=o.d.Character:void 0!==this.format&&null!==this.format&&(this.format.wordWrap=o.d.Word),this.getWrapType()===o.d.Character&&c)c=!1,f="",f+=d.toString(),m=g.peek().toString();else{var b=d.toString();" "!==b&&this.addToLineResult(i,n,b,u,r.LayoutBreak|l),this.isOverloadWithPosition&&(a=this.clientSize.width),f="",d="",u=0,p=0,y=0,l=r.None,m=c?m:g.peekWord(),c=!0}}else d+=m,u=y,c?(g.readWord(),m=g.peekWord()):(g.read(),m=g.peek().toString())}if(d.length>0){var b=d.toString();this.addToLineResult(i,n,b,u,r.NewLineBreak|r.LastParagraphLine)}g.close()}i.layoutLines=[];for(var w=0;w<n.length;w++)i.layoutLines.push(n[w]);return n=[],i},t.prototype.addToLineResult=function(t,e,i,r,n){var o=new u;o.text=i,o.width=r,o.lineType=n,e.push(o);var s=t.actualSize;s.height+=this.getLineHeight(),s.width=Math.max(s.width,r),t.size=s},t.prototype.copyToResult=function(t,e,i,r){var n=!0,o=null!=this.format&&!this.format.lineLimit,s=t.actualSize.height,a=this.size.height;if(this.pageHeight>0&&a+this.rectangle.y>this.pageHeight&&(a=this.rectangle.y-this.pageHeight,a=Math.max(a,-a)),r=0,null!=e.lines)for(var h=0,u=e.lines.length;h<u;h++){var l=s+e.lineHeight;if(!(l<=a||a<=0||o)){n=!1;break}var c=e.lines[h];r+=c.text.length,c=this.trimLine(c,0===i.length),i.push(c);var d=t.actualSize;d.width=Math.max(d.width,c.width),t.size=d,s=l}if(s!=t.size.height){var f=t.actualSize;f.height=s,t.size=f}return{success:n,numInserted:r}},t.prototype.finalizeResult=function(t,e){t.layoutLines=[];for(var i=0;i<e.length;i++)t.layoutLines.push(e[i]);t.layoutLineHeight=this.getLineHeight(),this.reader.end||(t.textRemainder=this.reader.readToEnd()),e=[]},t.prototype.trimLine=function(t,e){var i=t.text,n=t.width;t.lineType,r.FirstParagraphLine,null==this.format||this.format.rightToLeft,s.a.spaces;return i=i.trim(),i.length!==t.text.length&&(n=this.getLineWidth(i),(t.lineType&r.FirstParagraphLine)>0&&(n+=this.getLineIndent(e))),t.text=i,t.width=n,t},t.prototype.getWrapType=function(){return null!=this.format?this.format.wordWrap:o.d.Word},t}(),h=function(){function t(){}return Object.defineProperty(t.prototype,"remainder",{get:function(){return this.textRemainder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualSize",{get:function(){return void 0===this.size&&(this.size=new n.b(0,0)),this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lines",{get:function(){return this.layoutLines},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this.layoutLineHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return null==this.layoutLines||0===this.layoutLines.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.empty?0:this.layoutLines.length},enumerable:!0,configurable:!0}),t}(),u=function(){function t(){}return Object.defineProperty(t.prototype,"lineType",{get:function(){return this.type},set:function(t){this.type=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.content},set:function(t){this.content=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.lineWidth},set:function(t){this.lineWidth=t},enumerable:!0,configurable:!0}),t}();!function(t){t[t.None=0]="None",t[t.NewLineBreak=1]="NewLineBreak",t[t.LayoutBreak=2]="LayoutBreak",t[t.FirstParagraphLine=4]="FirstParagraphLine",t[t.LastParagraphLine=8]="LastParagraphLine"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(9),n=i(18),o=i(2),s=i(11),a=function(){function t(t,e){this.pdfColor=new r.a(0,0,0),this.dashOffsetValue=0,this.penDashPattern=[0],this.pdfDashStyle=o.g.Solid,this.pdfLineCap=0,this.pdfLineJoin=0,this.penWidth=1,this.internalMiterLimit=0,this.colorSpace=o.i.Rgb,t instanceof s.a?this.setBrush(t):t instanceof r.a&&(this.color=t),"number"==typeof e&&(this.width=e)}return Object.defineProperty(t.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashOffset",{get:function(){return void 0===this.dashOffsetValue||null==this.dashOffsetValue?0:this.dashOffsetValue},set:function(t){this.dashOffsetValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashPattern",{get:function(){return this.penDashPattern},set:function(t){this.penDashPattern=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashStyle",{get:function(){return this.pdfDashStyle},set:function(t){if(this.pdfDashStyle!==t)switch(this.pdfDashStyle=t,this.pdfDashStyle){case o.g.Custom:break;case o.g.Dash:this.penDashPattern=[3,1];break;case o.g.Dot:this.penDashPattern=[1,1];break;case o.g.DashDot:this.penDashPattern=[3,1,1,1];break;case o.g.DashDotDot:this.penDashPattern=[3,1,1,1,1,1];break;case o.g.Solid:break;default:this.pdfDashStyle=o.g.Solid,this.penDashPattern=[0]}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCap",{get:function(){return this.pdfLineCap},set:function(t){this.pdfLineCap=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this.pdfLineJoin},set:function(t){this.pdfLineJoin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"miterLimit",{get:function(){return this.internalMiterLimit},set:function(t){this.internalMiterLimit=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.penWidth},set:function(t){this.penWidth=t},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this},t.prototype.setBrush=function(t){var e=t;null!=e&&e instanceof n.a&&(this.color=e.color,this.pdfBrush=e),this.color=e.color,this.pdfBrush=e},t.prototype.monitorChanges=function(t,e,i,r,n,o){r=!0,this.dashControl(t,r,e),e.setLineWidth(this.width),e.setLineJoin(this.lineJoin),e.setLineCap(this.lineCap);var s=this.miterLimit;s>0&&e.setMiterLimit(s);this.pdfBrush;return e.setColorAndSpace(this.color,n,!0),!0},t.prototype.dashControl=function(t,e,i){e=!0;var r=this.width,n=this.getPattern();return i.setLineDashPattern(n,this.dashOffset*r),e},t.prototype.getPattern=function(){for(var t=this.dashPattern,e=0;e<t.length;++e)t[e]*=this.width;return t},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){this.forTest="test",this.forTest=t.obj}return t.obj="obj",t.endObj="endobj",t.r="R",t.whiteSpace=" ",t.slash="/",t.newLine="\r\n",t.stream="stream",t.endStream="endstream",t.xref="xref",t.f="f",t.n="n",t.trailer="trailer",t.startxref="startxref",t.eof="%%EOF",t.header="%PDF-1.5",t.beginText="BT",t.endText="ET",t.beginPath="m",t.appendLineSegment="l",t.stroke="S",t.fill="f",t.fillEvenOdd="f*",t.fillStroke="B",t.fillStrokeEvenOdd="B*",t.appendbeziercurve="c",t.appendRectangle="re",t.saveState="q",t.restoreState="Q",t.paintXObject="Do",t.modifyCtm="cm",t.modifyTM="Tm",t.setLineWidth="w",t.setLineCapStyle="J",t.setLineJoinStyle="j",t.setDashPattern="d",t.setFlatnessTolerance="i",t.closePath="h",t.closeStrokePath="s",t.closeFillStrokePath="b",t.setCharacterSpace="Tc",t.setWordSpace="Tw",t.setHorizontalScaling="Tz",t.setTextLeading="TL",t.setFont="Tf",t.setRenderingMode="Tr",t.setTextRise="Ts",t.setTextScaling="Tz",t.setCoords="Td",t.goToNextLine="T*",t.setText="Tj",t.setTextWithFormatting="TJ",t.setTextOnNewLine="'",t.selectcolorspaceforstroking="CS",t.selectcolorspacefornonstroking="cs",t.setrbgcolorforstroking="RG",t.setrbgcolorfornonstroking="rg",t.setcmykcolorforstroking="K",t.setcmykcolorfornonstroking="k",t.setgraycolorforstroking="G",t.setgraycolorfornonstroking="g",t.clipPath="W",t.clipPathEvenOdd="W*",t.endPath="n",t.setGraphicsState="gs",t.comment="%",t.evenOdd="*",t.setMiterLimit="M",t.setColorAndPattern="scn",t.setColorAndPatternStroking="SCN",t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n});var r;!function(t){!function(t){t[t.None=0]="None",t[t.Ascii=1]="Ascii",t[t.Unicode=2]="Unicode"}(t.ForceEncoding||(t.ForceEncoding={}));var e;!function(t){t[t.StringValue=0]="StringValue",t[t.ByteBuffer=1]="ByteBuffer"}(e||(e={}))}(r||(r={}));var n=function(){function t(t){if(this.bHex=!1,this.position1=-1,this.clonedObject1=null,this.bDecrypted=!1,this.isParentDecrypted=!1,this.isPacked=!1,this.isFormField=!1,this.isColorSpace=!1,this.isHexString=!0,void 0===t)this.bHex=!1;else if(!(t.length>0&&"0xfeff"===t[0])){this.stringValue=t,this.data=[];for(var e=0;e<t.length;++e)this.data.push(t.charCodeAt(e))}}return Object.defineProperty(t.prototype,"hex",{get:function(){return this.bHex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.stringValue},set:function(t){this.stringValue=t,this.data=null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status1},set:function(t){this.status1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving1},set:function(t){this.isSaving1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index1},set:function(t){this.index1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.clonedObject1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position1},set:function(t){this.position1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CrossTable",{get:function(){return this.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"converted",{get:function(){return this.bConverted},set:function(t){this.bConverted=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"encode",{get:function(){return this.bForceEncoding},set:function(t){this.bForceEncoding=t},enumerable:!0,configurable:!0}),t.bytesToHex=function(t){if(null==t)return"";return""},t.prototype.save=function(e){if(null===e)throw new Error("ArgumentNullException : writer");void 0!==this.encode&&this.encode===r.ForceEncoding.Ascii?e.write(this.pdfEncode()):e.write(t.stringMark[0]+this.value+t.stringMark[1])},t.prototype.pdfEncode=function(){var e="";if(void 0!==this.encode&&this.encode===r.ForceEncoding.Ascii){for(var i=this.escapeSymbols(this.value),n=0;n<i.length;n++)e+=String.fromCharCode(i[n]);e=t.stringMark[0]+e+t.stringMark[1]}else e=this.value;return e},t.prototype.escapeSymbols=function(t){for(var e=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);switch(r){case 40:case 41:e.push(92),e.push(r);break;case 13:e.push(92),e.push(114);break;case 92:e.push(92),e.push(r);break;default:e.push(r)}}return e},t.prototype.clone=function(e){if(null!==this.clonedObject1&&this.clonedObject1.CrossTable===e)return this.clonedObject1;this.clonedObject1=null;var i=new t(this.stringValue);return i.bHex=this.bHex,i.crossTable=e,i.isColorSpace=this.isColorSpace,this.clonedObject1=i,i},t.toUnicodeArray=function(t,e){if(null==t)throw new Error("Argument Null Exception : value");for(var i=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);i.push(n/256>>>0),i.push(255&n)}return i},t.byteToString=function(t){if(null==t)throw new Error("Argument Null Exception : stream");for(var e="",i=0;i<t.length;++i)e+=String.fromCharCode(t[i]);return e},t.stringMark="()",t.hexStringMark="<>",t.hexFormatPattern="{0:X2}",t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(9),n=i(2),o=i(11),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e){var i=t.call(this)||this;return i.pdfColor=e,i}return s(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),e.prototype.monitorChanges=function(t,e,i,r,n){if(null==e)throw new Error("ArgumentNullException:streamWriter");var o=!1;if(null==t)return o=!0,e.setColorAndSpace(this.pdfColor,n,!1),o;return o=!0,e.setColorAndSpace(this.pdfColor,n,!1),o},e.prototype.resetChanges=function(t){t.setColorAndSpace(new r.a(0,0,0),n.i.Rgb,!1)},e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"d",function(){return s}),i.d(e,"e",function(){return a}),i.d(e,"f",function(){return h});var r;!function(t){t[t.Portrait=0]="Portrait",t[t.Landscape=1]="Landscape"}(r||(r={}));var n;!function(t){t[t.RotateAngle0=0]="RotateAngle0",t[t.RotateAngle90=1]="RotateAngle90",t[t.RotateAngle180=2]="RotateAngle180",t[t.RotateAngle270=3]="RotateAngle270"}(n||(n={}));var o;!function(t){t[t.None=0]="None",t[t.Numeric=1]="Numeric",t[t.LowerLatin=2]="LowerLatin",t[t.LowerRoman=3]="LowerRoman",t[t.UpperLatin=4]="UpperLatin",t[t.UpperRoman=5]="UpperRoman"}(o||(o={}));var s;!function(t){t[t.None=0]="None",t[t.Bottom=1]="Bottom",t[t.Top=2]="Top",t[t.Left=3]="Left",t[t.Right=4]="Right",t[t.Fill=5]="Fill"}(s||(s={}));var a;!function(t){t[t.None=0]="None",t[t.TopLeft=1]="TopLeft",t[t.TopCenter=2]="TopCenter",t[t.TopRight=3]="TopRight",t[t.MiddleLeft=4]="MiddleLeft",t[t.MiddleCenter=5]="MiddleCenter",t[t.MiddleRight=6]="MiddleRight",t[t.BottomLeft=7]="BottomLeft",t[t.BottomCenter=8]="BottomCenter",t[t.BottomRight=9]="BottomRight"}(a||(a={}));var h;!function(t){t[t.None=0]="None",t[t.Top=1]="Top",t[t.Bottom=2]="Bottom",t[t.Left=3]="Left",t[t.Right=4]="Right"}(h||(h={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return y});var r=i(87),n=i(85),o=i(68),s=i(51),a=i(44),h=i(90),u=i(55),l=i(89),c=i(73),d=i(2),f=i(45),p=i(7),g=i(37),m=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),y=function(t){function e(i){var r=t.call(this)||this;r.defaultMargin=40,r.streamWriter=null,r.document=r;var o=!1;void 0===i?(e.cacheCollection=new c.a,o=!1):o=i;var h=new n.a;r.setMainObjectCollection(h);var d=new s.a;d.isMerging=o,d.document=r,r.setCrossTable(d);var f=new a.a;return r.setCatalog(f),h.add(f),f.position=-1,r.sectionCollection=new u.a(r),r.documentPageCollection=new l.a(r),f.pages=r.sectionCollection,r}return m(e,t),Object.defineProperty(e,"defaultFont",{get:function(){return null==this.defaultStandardFont&&(this.defaultStandardFont=new g.a(p.b.Helvetica,8)),this.defaultStandardFont},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sections",{get:function(){return this.sectionCollection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSettings",{get:function(){return null==this.settings&&(this.settings=new h.a(this.defaultMargin)),this.settings},set:function(t){this.settings=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pages",{get:function(){return this.documentPageCollection},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cache",{get:function(){return void 0===e.cacheCollection||null==e.cacheCollection?new c.a:e.cacheCollection},set:function(t){this.cacheCollection=t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"enableCache",{get:function(){return this.isCacheEnabled},set:function(t){this.isCacheEnabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.pdfColorSpace===d.i.Rgb||this.pdfColorSpace===d.i.Cmyk||this.pdfColorSpace===d.i.GrayScale?this.pdfColorSpace:d.i.Rgb},set:function(t){t===d.i.Rgb||t===d.i.Cmyk||t===d.i.GrayScale?this.pdfColorSpace=t:this.pdfColorSpace=d.i.Rgb},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new f.a),this.pageTemplate},set:function(t){this.pageTemplate=t},enumerable:!0,configurable:!0}),e.prototype.docSave=function(t,e,i){if(this.checkPagesPresence(),null===t)throw new Error("ArgumentNullException : stream");this.streamWriter=t;var n=new r.a(t);if(n.document=this,"boolean"==typeof e&&void 0===i)return this.crossTable.save(n);this.crossTable.save(n,e)},e.prototype.checkPagesPresence=function(){0===this.pages.count&&this.pages.add()},e.prototype.destroy=function(){this.catalog=void 0,this.colorSpace=void 0,this.currentSavingObj=void 0,this.documentPageCollection=void 0,this.isStreamCopied=void 0,this.pageSettings=void 0,this.pageTemplate=void 0,this.pdfColorSpace=void 0,this.sectionCollection=void 0,e.cache.destroy(),this.crossTable.pdfObjects.destroy(),e.cache=void 0,this.streamWriter.destroy()},e.defaultStandardFont=null,e.isCacheEnabled=!0,e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return o});var r;!function(t){t[t.Paginate=0]="Paginate",t[t.OnePage=1]="OnePage"}(r||(r={}));var n;!function(t){t[t.FitPage=0]="FitPage",t[t.FitElement=1]="FitElement",t[t.FitColumnsToPage=2]="FitColumnsToPage"}(n||(n={}));var o;!function(t){t[t.Start=0]="Start",t[t.Line=1]="Line",t[t.Bezier3=3]="Bezier3",t[t.Bezier=3]="Bezier",t[t.PathTypeMask=7]="PathTypeMask",t[t.DashMode=16]="DashMode",t[t.PathMarker=32]="PathMarker",t[t.CloseSubpath=128]="CloseSubpath"}(o||(o={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(7),n=i(0),o=i(23),s=i(14),a=i(28),h=function(){function t(t,e){this.fontStyle=r.a.Regular,"number"==typeof t&&void 0===e?this.fontSize=t:(this.fontSize=t,this.setStyle(e))}return Object.defineProperty(t.prototype,"name",{get:function(){return this.metrics.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.fontSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.metrics.getHeight(null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.fontStyle},set:function(t){this.fontStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return(this.style&r.a.Bold)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return(this.style&r.a.Italic)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strikeout",{get:function(){return(this.style&r.a.Strikeout)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return(this.style&r.a.Underline)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"metrics",{get:function(){return this.fontMetrics},set:function(t){this.fontMetrics=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pdfFontInternals},enumerable:!0,configurable:!0}),t.prototype.measureString=function(t,e,i,r,a){if("string"==typeof t&&void 0===e)return this.measureString(t,null);if("string"==typeof t&&(e instanceof o.a||null==e)&&void 0===i&&void 0===r){var h=e;return this.measureString(t,h,0,0)}if("string"==typeof t&&(e instanceof o.a||null==e)&&"number"==typeof i&&"number"==typeof r){var h=e;return this.measureString(t,0,h,i,r)}if("string"==typeof t&&"number"==typeof e&&(i instanceof o.a||null==i)&&"number"==typeof r&&"number"==typeof a){var u=new n.b(e,0),l=i;return this.measureString(t,u,l,r,a)}if(null==t)throw Error('ArgumentNullException("text")');var h=e,l=i,c=new s.a,d=c.layout(t,this,l,h,!1,new n.b(0,0));return r=t.length,a=d.empty?0:d.lines.length,d.actualSize},t.prototype.equalsTo=function(t){return this.equalsToFont(t)},t.prototype.getInternals=function(){return this.pdfFontInternals},t.prototype.setInternals=function(t){if(null==t)throw new Error("ArgumentNullException:internals");this.pdfFontInternals=t},t.prototype.setStyle=function(t){this.fontStyle=t},t.prototype.applyFormatSettings=function(t,e,i){var r=i;if(null!=e&&i>0&&(0!==e.characterSpacing&&(r+=(t.length-1)*e.characterSpacing),0!==e.wordSpacing)){var n=a.a.spaces;r+=a.a.getCharsCount(t,n)*e.wordSpacing}return r},t.charSizeMultiplier=.001,t.syncObject=new Object,t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(2),n=i(7),o=function(){function t(t,e){this.scalingFactor=100,this.wordWrapType=n.d.Word,this.internalLineLimit=!0,this.wordWrapType=n.d.Word,void 0!==t&&"string"!=typeof t&&(this.textAlignment=t),void 0!==e&&(this.verticalAlignment=e)}return Object.defineProperty(t.prototype,"alignment",{get:function(){return this.textAlignment},set:function(t){this.textAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textDirection",{get:function(){return this.direction},set:function(t){this.direction=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineAlignment",{get:function(){return void 0===this.verticalAlignment||null==this.verticalAlignment?r.b.Top:this.verticalAlignment},set:function(t){this.verticalAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightToLeft",{get:function(){return void 0!==this.isRightToLeft&&null!=this.isRightToLeft&&this.isRightToLeft},set:function(t){this.isRightToLeft=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"characterSpacing",{get:function(){return void 0===this.internalCharacterSpacing||null==this.internalCharacterSpacing?0:this.internalCharacterSpacing},set:function(t){this.internalCharacterSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordSpacing",{get:function(){return void 0===this.internalWordSpacing||null==this.internalWordSpacing?0:this.internalWordSpacing},set:function(t){this.internalWordSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineSpacing",{get:function(){return void 0===this.leading||null==this.leading?0:this.leading},set:function(t){this.leading=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clipPath",{get:function(){return void 0!==this.clip&&null!=this.clip&&this.clip},set:function(t){this.clip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subSuperScript",{get:function(){return void 0===this.pdfSubSuperScript||null==this.pdfSubSuperScript?n.e.None:this.pdfSubSuperScript},set:function(t){this.pdfSubSuperScript=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paragraphIndent",{get:function(){return void 0===this.internalParagraphIndent||null==this.internalParagraphIndent?0:this.internalParagraphIndent},set:function(t){this.internalParagraphIndent=t,this.firstLineIndent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineLimit",{get:function(){return this.internalLineLimit},set:function(t){this.internalLineLimit=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"measureTrailingSpaces",{get:function(){return void 0!==this.trailingSpaces&&null!=this.trailingSpaces&&this.trailingSpaces},set:function(t){this.trailingSpaces=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noClip",{get:function(){return void 0!==this.isNoClip&&null!=this.isNoClip&&this.isNoClip},set:function(t){this.isNoClip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordWrap",{get:function(){return this.wordWrapType},set:function(t){this.wordWrapType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScalingFactor",{get:function(){return this.scalingFactor},set:function(t){if(t<=0)throw new Error("ArgumentOutOfRangeException:The scaling factor cant be less of equal to zero, ScalingFactor");this.scalingFactor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstLineIndent",{get:function(){return void 0===this.initialLineIndent||null==this.initialLineIndent?0:this.initialLineIndent},set:function(t){this.initialLineIndent=t},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return j}),i.d(e,"b",function(){return V}),i.d(e,"c",function(){return k});var r=i(2),n=i(7),o=i(86),s=i(15),a=i(11),h=i(18),u=i(22),l=i(83),c=i(0),d=i(76),f=i(17),p=i(23),g=i(32),m=i(49),y=i(14),b=i(1),w=i(28),v=i(115),S=i(97),P=i(16),C=i(102),B=i(47),O=i(21),x=i(26),L=i(46),j=function(){function t(t,e,i){this.currentColorSpace=r.i.Rgb,this.previousTextRenderingMode=r.d.Fill,this.previousCharacterSpacing=0,this.previousWordSpacing=0,this.previousTextScaling=100,this.procedureSets=new d.a,this.isNormalRender=!0,this.isUseFontSize=!1,this.isItalic=!1,this.isEmfTextScaled=!1,this.isEmf=!1,this.isEmfPlus=!1,this.isBaselineFormat=!0,this.emfScalingFactor=new c.b(0,0),this.colorSpaceChanged=!1,this.dictionaryProperties=new b.a,this.isOverloadWithPosition=!1,this.isPointOverload=!1,this.currentColorSpaces=["RGB","CMYK","GrayScale","Indexed"],this.isImageOptimized=!1,this.graphicsState=[],this.istransparencySet=!1,this.internalAutomaticFields=null,this.startCutIndex=-1,this.getResources=e,this.canvasSize=t,i instanceof o.a?this.pdfStreamWriter=i:this.pdfStreamWriter=new o.a(i),this.initialize()}return Object.defineProperty(t.prototype,"stringLayoutResult",{get:function(){return this.pdfStringLayoutResult},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.canvasSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mediaBoxUpperRightBound",{get:function(){return void 0===this.internalMediaBoxUpperRightBound&&(this.internalMediaBoxUpperRightBound=0),this.internalMediaBoxUpperRightBound},set:function(t){this.internalMediaBoxUpperRightBound=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientSize",{get:function(){return new c.b(this.clipBounds.width,this.clipBounds.height)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.currentColorSpace},set:function(t){this.currentColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"streamWriter",{get:function(){return this.pdfStreamWriter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrix",{get:function(){return null==this.transformationMatrix&&(this.transformationMatrix=new l.a),this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layer",{get:function(){return this.pageLayer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pageLayer.page},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"automaticFields",{get:function(){return null!=this.internalAutomaticFields&&void 0!==this.internalAutomaticFields||(this.internalAutomaticFields=new v.a),this.internalAutomaticFields},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.bStateSaved=!1,this.currentPen=null,this.currentBrush=null,this.currentFont=null,this.currentColorSpace=r.i.Rgb,this.bCSInitialized=!1,this.transformationMatrix=null,this.previousTextRenderingMode=-1,this.previousCharacterSpacing=-1,this.previousWordSpacing=-1,this.previousTextScaling=-100,this.currentStringFormat=null,this.clipBounds=new c.c(new c.a(0,0),this.size),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)},t.prototype.drawPdfTemplate=function(t,e,i){if(void 0===i){if(null==t)throw Error("ArgumentNullException-template");this.drawPdfTemplate(t,e,t.size)}else{if(null==t)throw Error("ArgumentNullException-template");var r=t.width>0?i.width/t.width:1,n=t.height>0?i.height/t.height:1,o=!(1===r&&1===n),s=this.save(),a=new l.a;null!=this.pageLayer&&this.getTranslateTransform(e.x,e.y+i.height,a),o&&this.getScaleTransform(r,n,a),this.pdfStreamWriter.modifyCtm(a);var h=this.getResources.getResources(),u=h.getName(t);this.pdfStreamWriter.executeObject(u),this.restore(s);var d=t.graphics;if(null!=d)for(var f=0;f<d.automaticFields.automaticFields.length;f++){var p=d.automaticFields.automaticFields[f],g=new c.a(p.location.x+e.x,p.location.y+e.y),m=0==t.size.width?0:i.width/t.size.width,y=0==t.size.height?0:i.height/t.size.height;this.automaticFields.add(new S.a(p.field,g,m,y)),this.page.dictionary.modify()}this.getResources.getResources().requireProcedureSet(this.procedureSets.imageB),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageC),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageI),this.getResources.getResources().requireProcedureSet(this.procedureSets.text)}},t.prototype.drawString=function(t,e,i,r,n,o,h,l,d){if("string"==typeof t&&e instanceof u.a&&(i instanceof s.a||null===i)&&(r instanceof a.a||null===r)&&"number"==typeof n&&"number"==typeof o&&(h instanceof p.a||null===h)&&void 0===l)this.isOverloadWithPosition=!0,this.drawString(t,e,i,r,n,o,this.clientSize.width-n,0,h);else{var f=i,g=r,m=n,b=o,w=h,v=l,S=d,P=new y.a,C=P.layout(t,e,S,new c.b(w,v),this.isOverloadWithPosition,this.clientSize);if(!C.empty){var B=this.checkCorrectLayoutRectangle(C.actualSize,m,b,S);w<=0&&(m=B.x,w=B.width),v<=0&&(b=B.y,v=B.height),this.drawStringLayoutResult(C,e,f,g,new c.c(m,b,w,v),S),this.isEmfTextScaled=!1,this.emfScalingFactor=new c.b(0,0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),this.isNormalRender=!0,this.pdfStringLayoutResult=C,this.isUseFontSize=!1}},t.prototype.drawLine=function(t,e,i,r,n){if(e instanceof c.a){var o=e,s=i;this.drawLine(t,o.x,o.y,s.x,s.y)}else{var o=e,s=i,a=r,h=n;this.stateControl(t,null,null);var u=this.streamWriter;u.beginPath(o,s),u.appendLineSegment(a,h),u.strokePath(),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)}},t.prototype.drawRectangle=function(t,e,i,r,n,o){if(t instanceof s.a&&"number"==typeof e){var u=i;this.drawRectangle(t,null,e,u,r,n)}else if(t instanceof a.a&&"number"==typeof e){var u=i;this.drawRectangle(null,t,e,u,r,n)}else{var u=i,l=r,d=n,f=o;if(e instanceof L.a){this.bCSInitialized=!1;var p=this.matrix.matrix.offsetX+u,g=void 0;g=null!=this.layer&&null!=this.layer.page?this.layer.page.size.height-this.matrix.matrix.offsetY+l:this.clientSize.height-this.matrix.matrix.offsetY+l,e.location=new c.a(p,g),e.graphics.colorSpace=this.colorSpace}else e instanceof x.a&&(e.colorSpace=this.colorSpace);e instanceof h.a&&e.color.isEmpty&&(e=null);var m=t,y=e;this.stateControl(m,y,null),this.streamWriter.appendRectangle(u,l,d,f),this.drawPathHelper(m,y,!1)}},t.prototype.drawRoundedRectangle=function(t,e,i,n,o,s,a){if(null===t)throw new Error("pen");if(null===e)throw new Error("brush");if(0===a)this.drawRectangle(t,e,i,n,o,s);else{var h=[i,n,o,s],u=2*a,l=[u,u],c=[h[0],h[1],l[0],l[1]];this._pathPoints=[],this._pathTypes=[];var d=!0;d=this._addArc(c[0],c[1],c[2],c[3],180,90,d),c[0]=h[0]+h[2]-u,d=this._addArc(c[0],c[1],c[2],c[3],270,90,d),c[1]=h[1]+h[3]-u,d=this._addArc(c[0],c[1],c[2],c[3],0,90,d),c[0]=h[0],d=this._addArc(c[0],c[1],c[2],c[3],90,90,d);var f=this._pathPoints.length-1,p=this._pathTypes[f];p|=O.c.CloseSubpath,this._pathTypes[f]=p,this._drawPath(t,e,this._pathPoints,this._pathTypes,r.h.Alternate),this._pathPoints=[],this._pathTypes=[]}},t.prototype._addArc=function(t,e,i,r,n,o,s){for(var a=this._getBezierArcPoints(t,e,t+i,e+r,n,o),h=0;h<a.length;h+=8){var u=[a[h],a[h+1],a[h+2],a[h+3],a[h+4],a[h+5],a[h+6],a[h+7]];s=this._addArcPoints(u,O.c.Bezier3,s)}return s},t.prototype._addArcPoints=function(t,e,i){for(var r=0;r<t.length;r++){var n=new c.a(t[r],t[r+1]);0===r?0===this._pathPoints.length||i?(this._addPoint(n,O.c.Start),i=!1):n.x===this._getLastPoint().x&&n.y===this._getLastPoint().y||this._addPoint(n,O.c.Line):this._addPoint(n,e),r++}return i},t.prototype._getLastPoint=function(){var t=new c.a(0,0),e=this._pathPoints.length;return e>0&&(t.x=this._pathPoints[e-1].x,t.y=this._pathPoints[e-1].y),t},t.prototype._addPoint=function(t,e){this._pathPoints.push(t),this._pathTypes.push(e)},t.prototype._getBezierArcPoints=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){var s=void 0;s=e,e=r,r=s}var a,h;Math.abs(o)<=90?(a=o,h=1):(h=Math.ceil(Math.abs(o)/90),a=o/h);for(var u=(t+i)/2,l=(e+r)/2,c=(i-t)/2,d=(r-e)/2,f=a*(Math.PI/360),p=Math.abs(4/3*(1-Math.cos(f))/Math.sin(f)),g=[],m=0;m<h;m++){var y=(n+m*a)*(Math.PI/180),b=(n+(m+1)*a)*(Math.PI/180),w=Math.cos(y),v=Math.cos(b),S=Math.sin(y),P=Math.sin(b);a>0?g.push(u+c*w,l-d*S,u+c*(w-p*S),l-d*(S+p*w),u+c*(v+p*P),l-d*(P-p*v),u+c*v,l-d*P):g.push(u+c*w,l-d*S,u+c*(w+p*S),l-d*(S-p*w),u+c*(v-p*P),l-d*(P+p*v),u+c*v,l-d*P)}return g},t.prototype.drawPathHelper=function(t,e,i,n){if("boolean"==typeof i){var o=i;this.drawPathHelper(t,e,r.h.Winding,o)}else{var o=i,s=null!=t,a=null!=e,h=o===r.h.Alternate;s&&a?this.streamWriter.fillStrokePath(h):s||a?s?this.streamWriter.strokePath():this.streamWriter.fillPath(h):this.streamWriter.endPath()}},t.prototype.drawImage=function(t,e,i,r,n){if("number"==typeof e&&"number"==typeof i&&void 0===r){var o=t.physicalDimension;this.drawImage(t,e,i,o.width,o.height)}else{var s=e,a=i,h=n;t.save();var u=new l.a;this.getTranslateTransform(s,a+h,u),this.getScaleTransform(r,n,u),this.pdfStreamWriter.write("q"),this.pdfStreamWriter.modifyCtm(u);var c=this.getResources.getResources();void 0!==this.pageLayer&&null!=this.page&&(c.document=this.page.document);var d=c.getName(t);void 0!==this.pageLayer&&this.page.setResources(c),this.pdfStreamWriter.executeObject(d),this.pdfStreamWriter.write(P.a.restoreState),this.pdfStreamWriter.write(P.a.newLine);var f=this.getResources.getResources();f.requireProcedureSet(this.procedureSets.imageB),f.requireProcedureSet(this.procedureSets.imageC),f.requireProcedureSet(this.procedureSets.imageI),f.requireProcedureSet(this.procedureSets.text)}},t.prototype.getLineBounds=function(t,e,i,r,n){var o;if(!e.empty&&t<e.lineCount&&t>=0){var s=e.lines[t],a=this.getTextVerticalAlignShift(e.actualSize.height,r.height,n),h=a+r.y+e.lineHeight*t,u=s.width,l=this.getHorizontalAlignShift(u,r.width,n),d=this.getLineIndent(s,n,r,0===t);l+=this.rightToLeft(n)?0:d;var f=r.x+l,p=this.shouldJustify(s,r.width,n)?r.width-d:u-d,g=e.lineHeight;o=new c.c(f,h,p,g)}else o=new c.c(0,0,0,0);return o},t.prototype.checkCorrectLayoutRectangle=function(t,e,i,n){var o=new c.c(e,i,t.width,t.width);if(null!=n){switch(n.alignment){case r.c.Center:o.x-=o.width/2;break;case r.c.Right:o.x-=o.width}switch(n.lineAlignment){case r.b.Middle:o.y-=o.height/2;break;case r.b.Bottom:o.y-=o.height}}return o},t.prototype.setLayer=function(t){this.pageLayer=t;var e=t.page;null!=e&&void 0!==e&&(e.beginSave=this.pageSave)},t.prototype.pageSave=function(t){if(null!=t.graphics.automaticFields)for(var e=0;e<t.graphics.automaticFields.automaticFields.length;e++){var i=t.graphics.automaticFields.automaticFields[e];i.field.performDraw(t.graphics,i.location,i.scalingX,i.scalingY)}},t.prototype.drawStringLayoutResult=function(t,e,i,r,o,s){if(t.empty)throw new Error("ArgumentNullException:result");this.applyStringSettings(e,i,r,s,o);var a=null!=s?s.horizontalScalingFactor:100;a===this.previousTextScaling||this.isEmfTextScaled||(this.pdfStreamWriter.setTextScaling(a),this.previousTextScaling=a);var h=null==s||0===s.lineSpacing?e.height:s.lineSpacing+e.height,u=null!=s&&s.subSuperScript===n.e.SubScript,l=0;l=u?h-(e.height+e.metrics.getDescent(s)):h-e.metrics.getAscent(s),this.shift=l,this.pdfStreamWriter.startNextLine(o.x,o.y-l),this.pdfStreamWriter.setLeading(+h);for(var d=0,f="",p=0;p<t.lines.length;p++)if(d+=t.lineHeight,o.y+d>this.clientSize.height){this.startCutIndex=p;break}for(var g=this.startCutIndex;g<t.lines.length&&g>=0;g++)f+=t.lines[g].text;var m=new c.c(o.x,o.y,o.width,o.height);if(this.drawLayoutResult(t,e,s,o),this.underlineStrikeoutText(i,r,t,e,m,s),this.isEmfPlus=!1,this.isUseFontSize=!1,-1!==this.startCutIndex){this.getNextPage().graphics.drawString(f,e,i,r,o.x,0,o.width,0,s)}},t.prototype.getNextPage=function(){var t=this.currentPage.section,e=t.indexOf(this.currentPage);return e===t.count-1?t.add():t.getPages()[e+1]},t.prototype.setClip=function(t,e){void 0===e?this.setClip(t,r.h.Winding):(this.pdfStreamWriter.appendRectangle(t),this.pdfStreamWriter.clipPath(e===r.h.Alternate))},t.prototype.applyStringSettings=function(t,e,i,r,n){i instanceof L.a?(this.bCSInitialized=!1,i.graphics.colorSpace=this.colorSpace):i instanceof x.a&&(this.bCSInitialized=!1,i.colorSpace=this.colorSpace);var o=this.getTextRenderingMode(e,i,r);this.stateControl(e,i,t,r),this.pdfStreamWriter.beginText(),o!==this.previousTextRenderingMode&&(this.pdfStreamWriter.setTextRenderingMode(o),this.previousTextRenderingMode=o);var s=null!=r?r.characterSpacing:0;s===this.previousCharacterSpacing||this.isEmfTextScaled||(this.pdfStreamWriter.setCharacterSpacing(s),this.previousCharacterSpacing=s);var a=null!=r?r.wordSpacing:0;a!==this.previousWordSpacing&&(this.pdfStreamWriter.setWordSpacing(a),this.previousWordSpacing=a)},t.prototype.getTextVerticalAlignShift=function(t,e,i){var n=0;if(e>=0&&null!=i&&i.lineAlignment!==r.b.Top)switch(i.lineAlignment){case r.b.Middle:n=(e-t)/2;break;case r.b.Bottom:n=e-t}return n},t.prototype.drawLayoutResult=function(t,e,i,r){var n=this.getTextVerticalAlignShift(t.actualSize.height,r.height,i);0!==n&&this.pdfStreamWriter.startNextLine(0,n);for(var o=e,s=null!=o&&o.isUnicode,a=(null!=o&&o.isEmbedFont,t.lines),h=0,u=a.length;h<u&&h!==this.startCutIndex;h++){var l=a[h],c=(l.text,l.width),d=this.getHorizontalAlignShift(c,r.width,i),f=this.getLineIndent(l,i,r,0===h);d+=this.rightToLeft(i)?0:f,0===d||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(d,0),s?this.drawUnicodeLine(l,r,e,i):this.drawAsciiLine(l,r,e,i),0===d||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(-d,0),this.isOverloadWithPosition&&a.length>1&&(this.pdfStreamWriter.startNextLine(-r.x,0),r.x=0,r.width=this.clientSize.width,this.isOverloadWithPosition=!1,this.isPointOverload=!0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),0!==n&&this.pdfStreamWriter.startNextLine(0,-(n-t.lineHeight)),this.pdfStreamWriter.endText()},t.prototype.drawAsciiLine=function(t,e,i,r){this.justifyLine(t,e.width,r);var n="";if(-1!==t.text.indexOf("(")||-1!==t.text.indexOf(")"))for(var o=0;o<t.text.length;o++)"("===t.text[o]?n+="\\(":")"===t.text[o]?n+="\\)":n+=t.text[o];""===n&&(n=t.text);var s="("+n+")";this.pdfStreamWriter.showNextLineText(new f.b(s))},t.prototype.drawUnicodeLine=function(t,e,i,n){var o=t.text,s=(t.width,null!==n&&void 0!==n&&n.rightToLeft),a=null!==n&&void 0!==n&&(0!==n.wordSpacing||n.alignment===r.c.Justify),h=i,u=this.justifyLine(t,e.width,n),l=new B.a;if(s||null!==n&&void 0!==n&&n.textDirection!==r.m.None){var c=null,d=null!==n&&void 0!==n&&n.alignment===r.c.Right;c=null!==n&&void 0!==n&&n.textDirection!==r.m.None?l.layout(o,h,n.textDirection===r.m.RightToLeft,a,n):l.layout(o,h,d,a,n);var f=null;f=c.length>1?null!==n&&void 0!==n&&n.textDirection!==r.m.None?l.splitLayout(o,h,n.textDirection===r.m.RightToLeft,a,n):l.splitLayout(o,h,d,a,n):[o],this.drawUnicodeBlocks(c,f,h,n,u)}else if(a){var p=this.breakUnicodeLine(o,h,null),c=p.tokens,f=p.words;this.drawUnicodeBlocks(c,f,h,n,u)}else{var g=this.convertToUnicode(o,h),m=this.getUnicodeString(g);this.streamWriter.showNextLineText(m)}},t.prototype.drawUnicodeBlocks=function(t,e,i,r,n){if(null==t)throw new Error("Argument Null Exception : blocks");if(null==e)throw new Error("Argument Null Exception : words");if(null==i)throw new Error("Argument Null Exception : font");this.streamWriter.startNextLine();var o=0,s=0,a=0,h=0;try{null!==r&&void 0!==r&&(a=r.firstLineIndent,h=r.paragraphIndent,r.firstLineIndent=0,r.paragraphIndent=0);var u=i.getCharWidth(w.a.whiteSpace,r)+n,l=null!=r?r.characterSpacing:0;u+=l+(null!==r&&void 0!==r&&0===n?r.wordSpacing:0);for(var c=0;c<t.length;c++){var d=t[c],f=e[c],p=0;if(0!==o&&this.streamWriter.startNextLine(o,0),f.length>0){p+=i.measureString(f,r).width,p+=l;var g=this.getUnicodeString(d);this.streamWriter.showText(g)}c!==t.length-1&&(o=p+u,s+=o)}s>0&&this.streamWriter.startNextLine(-s,0)}finally{null!==r&&void 0!==r&&(r.firstLineIndent=a,r.paragraphIndent=h)}},t.prototype.breakUnicodeLine=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : line");i=t.split(null);for(var r=[],n=0;n<i.length;n++){var o=i[n],s=this.convertToUnicode(o,e);r[n]=s}return{tokens:r,words:i}},t.prototype.getUnicodeString=function(t){if(null===t)throw new Error("Argument Null Exception : token");var e=new f.b(t);return e.converted=!0,e.encode=f.a.ForceEncoding.Ascii,e},t.prototype.convertToUnicode=function(t,e){var i=null;if(null==t)throw new Error("Argument Null Exception : text");if(null==e)throw new Error("Argument Null Exception : ttfFont");if(e.fontInternal instanceof C.a){var r=e.fontInternal.ttfReader;e.setSymbols(t),i=r.convertString(t);var n=f.b.toUnicodeArray(i,!1);i=f.b.byteToString(n)}return i},t.prototype.justifyLine=function(t,e,i){var r=t.text,n=t.width,o=this.shouldJustify(t,e,i),s=null!=i&&0!==i.wordSpacing,a=w.a.spaces,h=w.a.getCharsCount(r,a),u=0;if(o){s&&(n-=h*i.wordSpacing);u=(e-n)/h,this.pdfStreamWriter.setWordSpacing(u)}else s?this.pdfStreamWriter.setWordSpacing(i.wordSpacing):this.pdfStreamWriter.setWordSpacing(0);return u},t.prototype.reset=function(t){this.canvasSize=t,this.streamWriter.clear(),this.initialize(),this.initializeCoordinates()},t.prototype.shouldJustify=function(t,e,i){var n=t.text,o=t.width,s=null!=i&&i.alignment===r.c.Justify,a=e>=0&&o<e,h=w.a.spaces,u=w.a.getCharsCount(n,h),l=u>0&&n[0]!==w.a.whiteSpace,c=(t.lineType&y.d.LayoutBreak)>0;return s&&a&&l&&(c||i.alignment===r.c.Justify)},t.prototype.underlineStrikeoutText=function(t,e,i,r,n,o){if(r.underline||r.strikeout){var s=this.createUnderlineStikeoutPen(t,e,r,o);if(null!=s){var a=this.getTextVerticalAlignShift(i.actualSize.height,n.height,o),h=0;h=n.y+a+r.metrics.getAscent(o)+1.5*s.width;for(var u=n.y+a+r.metrics.getHeight(o)/2+1.5*s.width,l=i.lines,c=0,d=i.lineCount;c<d;c++){var f=l[c],p=(f.text,f.width),g=this.getHorizontalAlignShift(p,n.width,o),m=this.getLineIndent(f,o,n,0===c);g+=this.rightToLeft(o)?0:m;var y=n.x+g,b=this.shouldJustify(f,n.width,o)?y+n.width-m:y+p-m;if(r.underline){var w=h;this.drawLine(s,y,w,b,w),h+=i.lineHeight}if(r.strikeout){var w=u;this.drawLine(s,y,w,b,w),u+=i.lineHeight}this.isPointOverload&&l.length>1&&(n.x=0,n.width=this.clientSize.width)}this.isPointOverload=!1}}},t.prototype.createUnderlineStikeoutPen=function(t,e,i,r){var n=i.metrics.getSize(r)/20,o=null;return null!=t?o=new s.a(t.color,n):null!=e&&(o=new s.a(e,n)),o},t.prototype.getTextRenderingMode=function(t,e,i){var n=r.d.None;return n=null!=t&&null!=e?r.d.FillStroke:null!=t?r.d.Stroke:r.d.Fill,null!=i&&i.clipPath&&(n|=r.d.ClipFlag),n},t.prototype.getLineIndent=function(t,e,i,r){var n=0,o=(t.lineType&y.d.FirstParagraphLine)>0;return null!=e&&o&&(n=r?e.firstLineIndent:e.paragraphIndent,n=i.width>0?Math.min(i.width,n):n),n},t.prototype.getHorizontalAlignShift=function(t,e,i){var n=0;if(e>=0&&null!=i&&i.alignment!==r.c.Left)switch(i.alignment){case r.c.Center:n=(e-t)/2;break;case r.c.Right:n=e-t}return n},t.prototype.rightToLeft=function(t){var e=null!==t&&void 0!==t&&t.rightToLeft;return null!==t&&void 0!==t&&t.textDirection!==r.m.None&&void 0!==t.textDirection&&(e=!0),e},t.prototype.stateControl=function(t,e,i,r){if(void 0===r)this.stateControl(t,e,i,null);else{e instanceof x.a&&(this.bCSInitialized=!1,e.colorSpace=this.colorSpace),e instanceof L.a&&(this.bCSInitialized=!1,e.graphics.colorSpace=this.colorSpace);if(null!==e){void 0!==this.pageLayer&&null!=this.pageLayer&&!1===this.colorSpaceChanged&&(this.lastDocumentCS=this.pageLayer.page.document.colorSpace,this.lastGraphicsCS=this.pageLayer.page.graphics.colorSpace,this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace,this.colorSpaceChanged=!0),this.initCurrentColorSpace(this.currentColorSpace)}else if(null!=t){void 0!==this.pageLayer&&null!=this.pageLayer&&(this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace),this.initCurrentColorSpace(this.currentColorSpace)}this.penControl(t,!1),this.brushControl(e,!1),this.fontControl(i,r,!1)}},t.prototype.initCurrentColorSpace=function(t){this.getResources.getResources();this.bCSInitialized||(this.currentColorSpace!=r.i.GrayScale?(this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!0),this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!1),this.bCSInitialized=!0):(this.pdfStreamWriter.setColorSpace("DeviceGray",!0),this.pdfStreamWriter.setColorSpace("DeviceGray",!1),this.bCSInitialized=!0))},t.prototype.penControl=function(t,e){null!=t&&(this.currentPen=t,t.monitorChanges(this.currentPen,this.pdfStreamWriter,this.getResources,e,this.colorSpace,this.matrix.clone()),this.currentPen=t.clone())},t.prototype.brushControl=function(t,e){if(null!=t&&void 0!==t){var i=t.clone(),r=i;if(!(null===r||void 0===r||t instanceof h.a||t instanceof L.a)){var n=r.matrix,o=this.matrix.clone();null!=n&&(n.multiply(o),o=n),r.matrix=o}this.currentBrush=r;i.monitorChanges(this.currentBrush,this.pdfStreamWriter,this.getResources,e,this.colorSpace),this.currentBrush=t,t=null}},t.prototype.fontControl=function(t,e,i){if(null!=t){var r=null!=e?e.subSuperScript:n.e.None,o=null!=this.currentStringFormat?this.currentStringFormat.subSuperScript:n.e.None;if(i||t!==this.currentFont||r!==o){var s=this.getResources.getResources();this.currentFont=t,this.currentStringFormat=e;var a=t.metrics.getSize(e);this.isEmfTextScaled=!1;var h=s.getName(t);this.pdfStreamWriter.setFont(t,h,a)}}},t.prototype.setTransparency=function(t,e,i){if(void 0===e)this.istransparencySet=!0,this.setTransparency(t,t,r.j.Normal);else if("number"==typeof e&&void 0===i)this.setTransparency(t,e,r.j.Normal);else{null==this.trasparencies&&(this.trasparencies=new g.a);var n=null,o=new T(t,e,i);this.trasparencies.containsKey(o)&&(n=this.trasparencies.getValue(o)),null==n&&(n=new m.a(t,e,i),this.trasparencies.setValue(o,n));var s=this.getResources.getResources(),a=s.getName(n),h=this.streamWriter;h.setGraphicsState(a)}},t.prototype.clipTranslateMargins=function(t,e,i,r,n,o){if(t instanceof c.c&&void 0===e)this.clipBounds=t,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(t),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(t.x,t.y);else if("number"==typeof t){var s=new c.c(i,r,this.size.width-i-n,this.size.height-r-o);this.clipBounds=s,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(s),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(t,e)}},t.prototype.updateY=function(t){return-t},t.prototype.translateTransform=function(t,e){var i=new l.a;this.getTranslateTransform(t,e,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},t.prototype.getTranslateTransform=function(t,e,i){return i.translate(t,this.updateY(e)),i},t.prototype.scaleTransform=function(t,e){var i=new l.a;this.getScaleTransform(t,e,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},t.prototype.getScaleTransform=function(t,e,i){return null==i&&(i=new l.a),i.scale(t,e),i},t.prototype.rotateTransform=function(t){var e=new l.a;this.getRotateTransform(t,e),this.pdfStreamWriter.modifyCtm(e),this.matrix.multiply(e)},t.prototype.initializeCoordinates=function(){this.pdfStreamWriter.writeComment("Change co-ordinate system to left/top."),this.mediaBoxUpperRightBound!==-this.size.height&&null==this.cropBox&&(this.mediaBoxUpperRightBound===this.size.height||0===this.mediaBoxUpperRightBound?this.translateTransform(0,this.updateY(this.size.height)):this.translateTransform(0,this.updateY(this.mediaBoxUpperRightBound)))},t.prototype.getRotateTransform=function(t,e){return null!=e&&void 0!==e||(e=new l.a),e.rotate(this.updateY(t)),e},t.prototype.save=function(){var t=new k(this,this.matrix.clone());return t.brush=this.currentBrush,t.pen=this.currentPen,t.font=this.currentFont,t.colorSpace=this.currentColorSpace,t.characterSpacing=this.previousCharacterSpacing,t.wordSpacing=this.previousWordSpacing,t.textScaling=this.previousTextScaling,t.textRenderingMode=this.previousTextRenderingMode,this.graphicsState.push(t),this.pdfStreamWriter.saveGraphicsState(),t},t.prototype.restore=function(t){if(void 0===t)this.graphicsState.length>0&&this.doRestoreState();else if(-1!==this.graphicsState.indexOf(t))for(;0!==this.graphicsState.length;){var e=this.doRestoreState();if(e===t)break}},t.prototype.doRestoreState=function(){var t=this.graphicsState.pop();return this.transformationMatrix=t.matrix,this.currentBrush=t.brush,this.currentPen=t.pen,this.currentFont=t.font,this.currentColorSpace=t.colorSpace,this.previousCharacterSpacing=t.characterSpacing,this.previousWordSpacing=t.wordSpacing,this.previousTextScaling=t.textScaling,this.previousTextRenderingMode=t.textRenderingMode,this.pdfStreamWriter.restoreGraphicsState(),t},t.prototype.drawPath=function(t,e,i){this._drawPath(t,e,i.pathPoints,i.pathTypes,i.fillMode)},t.prototype._drawPath=function(t,e,i,r,n){e instanceof L.a?(this.bCSInitialized=!1,e.graphics.colorSpace=this.colorSpace):e instanceof x.a&&(this.bCSInitialized=!1,e.colorSpace=this.colorSpace),this.stateControl(t,e,null),this.buildUpPath(i,r),this.drawPathHelper(t,e,n,!1)},t.prototype.drawArc=function(t,e,i,r,n,o,s){e instanceof c.c?this.drawArc(t,e.x,e.y,e.width,e.height,i,r):0!==s&&(this.stateControl(t,null,null),this.constructArcPath(e,i,e+r,i+n,o,s),this.drawPathHelper(t,null,!1))},t.prototype.buildUpPath=function(e,i){for(var r=e.length,n=0;n<r;++n){var o=0,s=e[n];switch(i[n]&t.pathTypesValuesMask){case O.c.Start:this.pdfStreamWriter.beginPath(s.x,s.y);break;case O.c.Bezier3:var a=new c.a(0,0),h=new c.a(0,0),u=this.getBezierPoints(e,i,n,a,h);this.pdfStreamWriter.appendBezierSegment(s,u.p2,u.p3),n=u.i;break;case O.c.Line:this.pdfStreamWriter.appendLineSegment(s);break;default:throw new Error("ArithmeticException - Incorrect path formation.")}o=i[n],this.checkFlags(o)}},t.prototype.getBezierPoints=function(e,i,r,n,o){if(++r,(i[r]&t.pathTypesValuesMask)!==O.c.Bezier3)throw new Error("ArgumentException : errorMsg");if(n=e[r],++r,(i[r]&t.pathTypesValuesMask)!==O.c.Bezier3)throw new Error("ArgumentException : errorMsg");return o=e[r],{i:r,p2:n,p3:o}},t.prototype.checkFlags=function(t){(t&O.c.CloseSubpath)===O.c.CloseSubpath&&this.pdfStreamWriter.closePath()},t.prototype.constructArcPath=function(t,e,i,r,n,o){var s=this.getBezierArc(t,e,i,r,n,o);if(0!==s.length){var a=[s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7]];this.pdfStreamWriter.beginPath(a[0],a[1]);var h=0;for(h=0;h<s.length;h+=8)a=[s[h],s[h+1],s[h+2],s[h+3],s[h+4],s[h+5],s[h+6],s[h+7]],this.pdfStreamWriter.appendBezierSegment(a[2],a[3],a[4],a[5],a[6],a[7])}},t.prototype.getBezierArc=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){var s=void 0;s=e,e=r,r=s}var a,h;Math.abs(o)<=90?(a=o,h=1):(h=Math.ceil(Math.abs(o)/90),a=o/h);for(var u=(t+i)/2,l=(e+r)/2,c=(i-t)/2,d=(r-e)/2,f=a*(Math.PI/360),p=Math.abs(4/3*(1-Math.cos(f))/Math.sin(f)),g=[],m=0;m<h;m++){var y=(n+m*a)*(Math.PI/180),b=(n+(m+1)*a)*(Math.PI/180),w=Math.cos(y),v=Math.cos(b),S=Math.sin(y),P=Math.sin(b);a>0?g.push(u+c*w,l-d*S,u+c*(w-p*S),l-d*(S+p*w),u+c*(v+p*P),l-d*(P-p*v),u+c*v,l-d*P):g.push(u+c*w,l-d*S,u+c*(w+p*S),l-d*(S-p*w),u+c*(v-p*P),l-d*(P+p*v),u+c*v,l-d*P)}return g},t.pathTypesValuesMask=15,t.transparencyObject=!1,t}(),V=function(){function t(t){this.sender=t}return t.prototype.getResources=function(){return this.sender.getResources()},t}(),k=function(){function t(t,e){if(this.internalTextRenderingMode=r.d.Fill,this.internalCharacterSpacing=0,this.internalWordSpacing=0,this.internalTextScaling=100,this.pdfColorSpace=r.i.Rgb,void 0!==t){this.pdfGraphics=t;var i=[];t.matrix.matrix.elements.forEach(function(t){i.push(t)}),this.transformationMatrix=new l.a,this.transformationMatrix.matrix=new l.b(i)}}return Object.defineProperty(t.prototype,"graphics",{get:function(){return this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"characterSpacing",{get:function(){return this.internalCharacterSpacing},set:function(t){this.internalCharacterSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordSpacing",{get:function(){return this.internalWordSpacing},set:function(t){this.internalWordSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textScaling",{get:function(){return this.internalTextScaling},set:function(t){this.internalTextScaling=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pen",{get:function(){return this.pdfPen},set:function(t){this.pdfPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this.pdfBrush},set:function(t){this.pdfBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.pdfFont},set:function(t){this.pdfFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(t){this.pdfColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textRenderingMode",{get:function(){return this.internalTextRenderingMode},set:function(t){this.internalTextRenderingMode=t},enumerable:!0,configurable:!0}),t}(),T=function(){function t(t,e,i){this.alphaPen=t,this.alphaBrush=e,this.blendMode=i}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return c});var r=i(52),n=i(4),o=i(3),s=i(8),a=i(0),h=i(64),u=i(54),l=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),c=function(t){function e(){var e=t.call(this,new n.a)||this;return e.annotationCollection=null,e.beginSave=null,e.initialize(),e}return l(e,t),Object.defineProperty(e.prototype,"document",{get:function(){return null!==this.section&&null!==this.section.parent?this.section.parent.document:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){var t=this.defaultLayer.graphics;return t.currentPage=this,t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"crossTable",{get:function(){if(null===this.section)throw new Error("PdfDocumentException : Page is not created");return null===this.section.parent?this.section.parentDocument.crossTable:this.section.parent.document.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.section.pageSettings.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"origin",{get:function(){return this.section.pageSettings.origin},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"annotations",{get:function(){return null==this.annotationCollection&&(this.annotationCollection=new h.a(this),this.dictionary.items.setValue(this.dictionaryProperties.annots,this.annotationCollection.element),this.annotationCollection.annotations=this.dictionary.items.getValue(this.dictionaryProperties.annots)),this.annotationCollection},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){this.dictionary.items.setValue(this.dictionaryProperties.type,new o.a("Page")),this.dictionary.pageBeginDrawTemplate=new n.g(this)},e.prototype.setSection=function(t){this.section=t,this.dictionary.items.setValue(this.dictionaryProperties.parent,new s.b(t))},e.prototype.resetProgress=function(){this.isProgressOn=!1},e.prototype.getClientSize=function(){var t=this.section.getActualBounds(this,!0);return new a.b(t.width,t.height)},e.prototype.pageBeginSave=function(){var t=this.document;void 0!==typeof t&&null!=t&&this.drawPageTemplates(t),null!=this.beginSave&&void 0!==this.beginSave&&this.beginSave(this)},e.prototype.drawPageTemplates=function(t){if(this.section.containsTemplates(t,this,!1)){var e=new u.a(this,!1);if(this.layers.insert(0,e),this.section.drawTemplates(this,e,t,!1),null!==e.graphics&&void 0!==e.graphics)for(var i=0;i<e.graphics.automaticFields.automaticFields.length;i++){var r=e.graphics.automaticFields.automaticFields[i];r.field.performDraw(e.graphics,r.location,r.scalingX,r.scalingY)}}if(this.section.containsTemplates(t,this,!0)){var n=new u.a(this,!1);this.layers.add(n),this.section.drawTemplates(this,n,t,!0)}},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return p});var r=i(2),n=i(9),o=i(11),s=i(4),a=i(1),h=i(33),u=i(6),l=i(3),c=i(5),d=i(8),f=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),p=function(t){function e(e){var i=t.call(this)||this;return i.mbackground=new n.a(255,255,255),i.mbStroking=!1,i.mfunction=null,i.dictionaryProperties=new a.a,i.mpatternDictionary=new s.a,i.mpatternDictionary.items.setValue(i.dictionaryProperties.type,new l.a(i.dictionaryProperties.pattern)),i.mpatternDictionary.items.setValue(i.dictionaryProperties.patternType,new c.a(2)),i.shading=e,i.colorSpace=r.i.Rgb,i}return f(e,t),Object.defineProperty(e.prototype,"background",{get:function(){return this.mbackground},set:function(t){this.mbackground=t;var e=this.shading;t.isEmpty?e.remove(this.dictionaryProperties.background):e.items.setValue(this.dictionaryProperties.background,t.toArray(this.colorSpace))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"antiAlias",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.antiAlias).value},set:function(t){var e=this.shading,i=e.items.getValue(this.dictionaryProperties.antiAlias);null==i&&void 0===i?(i=new h.a(t),e.items.setValue(this.dictionaryProperties.antiAlias,i)):i.value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"function",{get:function(){return this.mfunction},set:function(t){this.mfunction=t,null!=t&&void 0!==t?this.shading.items.setValue(this.dictionaryProperties.function,new d.b(this.mfunction)):this.shading.remove(this.dictionaryProperties.function)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bBox",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.bBox)},set:function(t){var e=this.shading;null==t&&void 0===t?e.remove(this.dictionaryProperties.bBox):e.items.setValue(this.dictionaryProperties.bBox,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.mcolorSpace},set:function(t){var e=this.shading.items.getValue(this.dictionaryProperties.colorSpace);if(t!==this.mcolorSpace||null==e){this.mcolorSpace=t;var i=this.colorSpaceToDeviceName(t);this.shading.items.setValue(this.dictionaryProperties.colorSpace,new l.a(i))}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroking",{get:function(){return this.mbStroking},set:function(t){this.mbStroking=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patternDictionary",{get:function(){return null==this.mpatternDictionary&&(this.mpatternDictionary=new s.a),this.mpatternDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shading",{get:function(){return this.mshading},set:function(t){if(null==t)throw new Error("ArgumentNullException : Shading");t!==this.mshading&&(this.mshading=t,this.patternDictionary.items.setValue(this.dictionaryProperties.shading,new d.b(this.mshading)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matrix",{get:function(){return this.mmatrix},set:function(t){if(null==t)throw new Error("ArgumentNullException : Matrix");if(t!==this.mmatrix){this.mmatrix=t.clone();var e=new u.a(this.mmatrix.matrix.elements);this.mpatternDictionary.items.setValue(this.dictionaryProperties.matrix,e)}},enumerable:!0,configurable:!0}),e.prototype.monitorChanges=function(t,i,r,n,o){var s=!1;if(t instanceof e){this.colorSpace!==o&&(this.colorSpace=o,this.resetFunction()),i.setColorSpace("Pattern",this.mbStroking);var a=r.getResources(),h=a.getName(this);i.setColourWithPattern(null,h,this.mbStroking),s=!0}return s},e.prototype.resetChanges=function(t){},e.prototype.colorSpaceToDeviceName=function(t){var e;switch(t){case r.i.Rgb:e="DeviceRGB"}return e},e.prototype.resetPatternDictionary=function(t){this.mpatternDictionary=t},e.prototype.cloneAntiAliasingValue=function(t){if(null==t)throw new Error("ArgumentNullException : brush");var e=this.shading,i=e.items.getValue(this.dictionaryProperties.antiAlias);null!=i&&t.shading.items.setValue(this.dictionaryProperties.antiAlias,new h.a(i.value))},e.prototype.cloneBackgroundValue=function(t){var e=this.background;e.isEmpty||(t.background=e)},Object.defineProperty(e.prototype,"element",{get:function(){return this.patternDictionary},enumerable:!0,configurable:!0}),e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return l});var r=i(13),n=i(1),o=i(6),s=i(24),a=i(40),h=i(3),u=i(0),l=function(){function t(t,e){if(this.dictionaryProperties=new n.a,this.writeTransformation=!0,void 0===t);else if(t instanceof u.b&&void 0===e){this.content=new r.a;var i=new u.b(t.width,t.height);this.setSize(i),this.initialize()}else this.content=new r.a,this.setSize(new u.b(t,e)),this.initialize()}return Object.defineProperty(t.prototype,"size",{get:function(){return this.templateSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.size.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.size.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){if(null==this.pdfGraphics||void 0===this.pdfGraphics){var t=new s.b(this),e=new s.a(this.size,t,this.content);this.pdfGraphics=e,this.pdfGraphics.initializeCoordinates()}return this.pdfGraphics},enumerable:!0,configurable:!0}),t.prototype.getResources=function(){return null==this.resources&&(this.resources=new a.a,this.content.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},t.prototype.initialize=function(){this.addType(),this.addSubType()},t.prototype.addType=function(){var t=new h.a(this.dictionaryProperties.xObject);this.content.items.setValue(this.dictionaryProperties.type,t)},t.prototype.addSubType=function(){var t=new h.a(this.dictionaryProperties.form);this.content.items.setValue(this.dictionaryProperties.subtype,t)},t.prototype.reset=function(t){void 0===t?(null!=this.resources&&(this.resources=null,this.content.remove(this.dictionaryProperties.resources)),null!=this.graphics&&this.graphics.reset(this.size)):(this.setSize(t),this.reset())},t.prototype.setSize=function(t){var e=new u.c(new u.a(0,0),t),i=o.a.fromRectangle(e);this.content.items.setValue(this.dictionaryProperties.bBox,i),this.templateSize=t},Object.defineProperty(t.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){if(this.currentPosition=0,null==t)throw new Error("ArgumentNullException:text");this.text=t}return Object.defineProperty(t.prototype,"length",{get:function(){return this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.currentPosition===this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.currentPosition},set:function(t){this.currentPosition=t},enumerable:!0,configurable:!0}),t.getCharsCount=function(t,e){if("string"==typeof e){if(null==t)throw new Error("ArgumentNullException:wholeText");for(var i=0,r=0;-1!==(r=t.indexOf(e,r));)i++,r++;return i}if(null==t)throw new Error("ArgumentNullException:text");if(null==e)throw new Error("ArgumentNullException:symbols");for(var n=0,o=0,s=t.length;o<s;o++){var a=t[o];this.contains(e,a)&&n++}return n},t.prototype.readLine=function(){for(var t=this.currentPosition;t<this.length;){var e=this.text[t];switch(e){case"\r":case"\n":var i=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t+1,"\r"===e&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i}t++}if(t>this.currentPosition){var r=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,r}return null},t.prototype.peekLine=function(){var t=this.currentPosition,e=this.readLine();return this.currentPosition=t,e},t.prototype.readWord=function(){for(var t=this.currentPosition;t<this.length;){var e=this.text[t];switch(e){case"\r":case"\n":var i=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t+1,"\r"===e&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i;case" ":case"\t":t===this.currentPosition&&t++;var r=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,r}t++}if(t>this.currentPosition){var n=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,n}return null},t.prototype.peekWord=function(){var t=this.currentPosition,e=this.readWord();return this.currentPosition=t,e},t.prototype.read=function(t){if(void 0===t){var e="0";return this.end||(e=this.text[this.currentPosition],this.currentPosition++),e}for(var i=0,r="";!this.end&&i<t;){var e=this.read();r+=e,i++}return r},t.prototype.peek=function(){var t="0";return this.end||(t=this.text[this.currentPosition]),t},t.prototype.close=function(){this.text=null},t.prototype.readToEnd=function(){var t;return t=0===this.currentPosition?this.text:this.text.substr(this.currentPosition,this.length-this.currentPosition),this.currentPosition=this.length,t},t.contains=function(t,e){for(var i=!1,r=0;r<t.length;r++)if(t[r]===e){i=!0;break}return i},t.whiteSpace=" ",t.tab="\t",t.spaces=[t.whiteSpace,t.tab],t.whiteSpacePattern="^[ \t]+$",t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return s});var r=i(0),n=i(2),o=i(142),s=function(){function t(){}return Object.defineProperty(t.prototype,"width",{get:function(){return this.imageWidth},set:function(t){this.imageWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.imageHeight},set:function(t){this.imageHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{set:function(t){this.width=t.width,this.height=t.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"physicalDimension",{get:function(){return this.imagePhysicalDimension=this.getPointSize(this.width,this.height,this.horizontalResolution,this.verticalResolution),new r.b(this.width,this.height)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.imageStream},enumerable:!0,configurable:!0}),t.prototype.getPointSize=function(t,e,i,s){if(void 0===i){var a=o.a.horizontalResolution,h=o.a.verticalResolution,u=this.getPointSize(t,e,a,h);return u}var l=new o.a(i),c=new o.a(s),d=l.convertUnits(t,n.k.Pixel,n.k.Point),f=c.convertUnits(e,n.k.Pixel,n.k.Point),u=new r.b(d,f);return u},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return s}),i.d(e,"b",function(){return a});var r=i(15),n=i(2),o=i(9),s=function(){function t(){var t=new r.a(new o.a(0,0,0));t.dashStyle=n.g.Solid;var e=new r.a(new o.a(0,0,0));e.dashStyle=n.g.Solid;var i=new r.a(new o.a(0,0,0));i.dashStyle=n.g.Solid;var s=new r.a(new o.a(0,0,0));s.dashStyle=n.g.Solid,this.leftPen=t,this.rightPen=e,this.topPen=i,this.bottomPen=s}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftPen},set:function(t){this.leftPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightPen},set:function(t){this.rightPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topPen},set:function(t){this.topPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomPen},set:function(t){this.bottomPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"all",{set:function(t){this.leftPen=this.rightPen=this.topPen=this.bottomPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAll",{get:function(){return this.leftPen===this.rightPen&&this.leftPen===this.topPen&&this.leftPen===this.bottomPen},enumerable:!0,configurable:!0}),Object.defineProperty(t,"default",{get:function(){return new t},enumerable:!0,configurable:!0}),t}(),a=function(){function t(t,e,i,r){this.hasLeftPad=!1,this.hasRightPad=!1,this.hasTopPad=!1,this.hasBottomPad=!1,void 0===t?(this.leftPad=this.rightPad=5.76,this.bottomPad=this.topPad=.5):(this.leftPad=t,this.rightPad=e,this.topPad=i,this.bottomPad=r,this.hasLeftPad=!0,this.hasRightPad=!0,this.hasTopPad=!0,this.hasBottomPad=!0)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftPad},set:function(t){this.leftPad=t,this.hasLeftPad=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightPad},set:function(t){this.rightPad=t,this.hasRightPad=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topPad},set:function(t){this.topPad=t,this.hasTopPad=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomPad},set:function(t){this.bottomPad=t,this.hasBottomPad=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"all",{set:function(t){this.leftPad=this.rightPad=this.topPad=this.bottomPad=t,this.hasLeftPad=!0,this.hasRightPad=!0,this.hasTopPad=!0,this.hasBottomPad=!0},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return h}),i.d(e,"c",function(){return u}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return r});var r,n=i(30),o=i(58),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(){function t(){}return Object.defineProperty(t.prototype,"backgroundBrush",{get:function(){return this.gridBackgroundBrush},set:function(t){this.gridBackgroundBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textBrush",{get:function(){return this.gridTextBrush},set:function(t){this.gridTextBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textPen",{get:function(){return this.gridTextPen},set:function(t){this.gridTextPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.gridFont},set:function(t){this.gridFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.gridBackgroundImage},set:function(t){this.gridBackgroundImage=t},enumerable:!0,configurable:!0}),t}(),h=function(t){function e(){var e=t.call(this)||this;return e.gridBorderOverlapStyle=o.a.Overlap,e.bAllowHorizontalOverflow=!1,e.gridHorizontalOverflowType=r.LastPage,e}return s(e,t),Object.defineProperty(e.prototype,"cellSpacing",{get:function(){return void 0===this.gridCellSpacing&&(this.gridCellSpacing=0),this.gridCellSpacing},set:function(t){this.gridCellSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalOverflowType",{get:function(){return this.gridHorizontalOverflowType},set:function(t){this.gridHorizontalOverflowType=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowHorizontalOverflow",{get:function(){return this.bAllowHorizontalOverflow},set:function(t){this.bAllowHorizontalOverflow=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellPadding",{get:function(){return void 0===this.gridCellPadding&&(this.gridCellPadding=new n.b),this.gridCellPadding},set:function(t){void 0===this.gridCellPadding?(this.gridCellPadding=new n.b,this.gridCellPadding=t):this.gridCellPadding=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderOverlapStyle",{get:function(){return this.gridBorderOverlapStyle},set:function(t){this.gridBorderOverlapStyle=t},enumerable:!0,configurable:!0}),e}(a),u=function(t){function e(){var e=t.call(this)||this;return e.gridCellBorders=n.a.default,e}return s(e,t),Object.defineProperty(e.prototype,"stringFormat",{get:function(){return this.format},set:function(t){this.format=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borders",{get:function(){return this.gridCellBorders},set:function(t){this.gridCellBorders=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellPadding",{get:function(){return this.gridCellPadding},set:function(t){null!=this.gridCellPadding&&void 0!==this.gridCellPadding||(this.gridCellPadding=new n.b),this.gridCellPadding=t},enumerable:!0,configurable:!0}),e}(a),l=function(){function t(){}return Object.defineProperty(t.prototype,"backgroundBrush",{get:function(){return this.gridRowBackgroundBrush},enumerable:!0,configurable:!0}),t.prototype.setBackgroundBrush=function(t){if(this.gridRowBackgroundBrush=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.backgroundBrush=t},Object.defineProperty(t.prototype,"textBrush",{get:function(){return this.gridRowTextBrush},enumerable:!0,configurable:!0}),t.prototype.setTextBrush=function(t){if(this.gridRowTextBrush=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.textBrush=t},Object.defineProperty(t.prototype,"textPen",{get:function(){return this.gridRowTextPen},enumerable:!0,configurable:!0}),t.prototype.setTextPen=function(t){if(this.gridRowTextPen=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.textPen=t},Object.defineProperty(t.prototype,"font",{get:function(){return this.gridRowFont},enumerable:!0,configurable:!0}),t.prototype.setFont=function(t){if(this.gridRowFont=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.font=t},Object.defineProperty(t.prototype,"border",{get:function(){return void 0===this.gridRowBorder&&this.setBorder(new n.a),this.gridRowBorder},enumerable:!0,configurable:!0}),t.prototype.setBorder=function(t){if(this.gridRowBorder=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.borders=t},t.prototype.setParent=function(t){this.parent=t},Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.gridRowBackgroundImage},enumerable:!0,configurable:!0}),t.prototype.setBackgroundImage=function(t){this.gridRowBackgroundImage=t},t}();!function(t){t[t.NextPage=0]="NextPage",t[t.LastPage=1]="LastPage"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){this.mKeys=[],this.mValues=[]}return t.prototype.size=function(){return this.mKeys.length},t.prototype.add=function(t,e){if(void 0===t||null===t||void 0===e||null===e)throw new ReferenceError("Provided key or value is not valid.");if(this.mKeys.indexOf(t)<0)return this.mKeys.push(t),this.mValues.push(e),1;throw new RangeError("An item with the same key has already been added.")},t.prototype.keys=function(){return this.mKeys},t.prototype.values=function(){return this.mValues},t.prototype.getValue=function(t){if(void 0===t||null===t)throw new ReferenceError("Provided key is not valid.");var e=this.mKeys.indexOf(t);if(e<0)throw new RangeError("No item with the specified key has been added.");return this.mValues[e]},t.prototype.setValue=function(t,e){if(void 0===t||null===t)throw new ReferenceError("Provided key is not valid.");var i=this.mKeys.indexOf(t);i<0?(this.mKeys.push(t),this.mValues.push(e)):this.mValues[i]=e},t.prototype.remove=function(t){if(void 0===t||null===t)throw new ReferenceError("Provided key is not valid.");var e=this.mKeys.indexOf(t);if(e<0)throw new RangeError("No item with the specified key has been added.");return this.mKeys.splice(e,1),this.mValues.splice(e,1),!0},t.prototype.containsKey=function(t){if(void 0===t||null===t)throw new ReferenceError("Provided key is not valid.");return!(this.mKeys.indexOf(t)<0)},t.prototype.clear=function(){this.mKeys=[],this.mValues=[]},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.currentPosition=-1,this.value=t}return Object.defineProperty(t.prototype,"status",{get:function(){return this.objectStatus},set:function(t){this.objectStatus=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.saving},set:function(t){this.saving=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index},set:function(t){this.index=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.currentPosition},set:function(t){this.currentPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.boolToStr(this.value))},t.prototype.clone=function(e){return new t(this.value)},t.prototype.boolToStr=function(t){return t?"true":"false"},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(2),n=i(72),o=i(75),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e){var i=t.call(this)||this;return"number"==typeof e&&(i=t.call(this,e)||this),i}return s(e,t),Object.defineProperty(e.prototype,"colors",{get:function(){return this.mcolors},set:function(t){if(null==t)throw new Error("ArgumentNullException : Colors");this.mcolors=t},enumerable:!0,configurable:!0}),e.prototype.getFunction=function(t){var e=[0,1],i=this.getColorComponentsCount(t),r=this.getMaxComponentValue(t),o=this.setRange(i,r),s=null;if(null==this.mbrush&&void 0===this.mbrush){var a=[1],h=void 0,u=1;if(2===this.positions.length)h=2;else{var l=this.positions,c=this.getIntervals(l),d=this.gcd(c);u=d,h=1/d+1}a[0]=h;var f=this.getSamplesValues(t,h,r,u);return s=new n.a(e,o,a,f)}return s},e.prototype.cloneColorBlend=function(){var t=this;return null!=this.mcolors&&void 0!==this.mcolors&&(t.colors=this.mcolors),null!=this.positions&&void 0!==this.positions&&(t.positions=this.positions),t},e.prototype.setRange=function(t,e){for(var i=[2*t],r=0;r<t;++r)i[2*r]=0,i[2*r+1]=1;return i},e.prototype.getColorComponentsCount=function(t){var e=0;switch(t){case r.i.Rgb:e=3;break;case r.i.Cmyk:e=4;break;case r.i.GrayScale:e=1;break;default:throw new Error("ArgumentException - Unsupported color space: "+t+" colorSpace")}return e},e.prototype.getSamplesValues=function(t,e,i,n){var o;switch(t){case r.i.GrayScale:o=this.getGrayscaleSamples(e,i,n);break;case r.i.Cmyk:o=this.getCmykSamples(e,i,n);break;case r.i.Rgb:o=this.getRgbSamples(e,i,n);break;default:throw new Error("ArgumentException - Unsupported color space: "+t+" colorSpace")}return o},e.prototype.getGrayscaleSamples=function(t,e,i){for(var n=[2*t],o=0;o<t;++o){this.getNextColor(o,i,r.i.GrayScale)}return n},e.prototype.getRgbSamples=function(t,e,i){for(var n=[3*t],o=0;o<t;++o){var s=this.getNextColor(o,i,r.i.Rgb),a=3*o;n[a]=s.r,n[a+1]=s.g,n[a+2]=s.b}return n},e.prototype.getCmykSamples=function(t,e,i){for(var n=[4*t],o=0;o<t;o++){var s=this.getNextColor(o,i,r.i.Cmyk),a=4*o;n[a]=s.c*e,n[a+1]=s.m*e,n[a+2]=s.y*e,n[a+3]=s.k*e}return n},e.prototype.getNextColor=function(t,e,i){var r,n,o=e*t,s=this.getIndices(o,n,r);n=s.indexLow,r=s.indexHi;var a;if(n===r)a=this.mcolors[n];else{var h=this.positions[n],u=this.positions[r],l=this.mcolors[n],c=this.mcolors[r],d=(o-h)/(u-h);a=this.interpolate(d,l,c,i)}return a},e.prototype.getIndices=function(t,e,i){var r=this.positions;e=0,i=0;for(var n=0;n<this.mcolors.length;++n){var o=r[n];if(o===t){i=n,e=n;break}if(o>t){i=n;break}e=n,i=n}return{indexLow:e,indexHi:i}},e.prototype.getMaxComponentValue=function(t){var e=0;switch(t){case r.i.Cmyk:case r.i.Rgb:e=255;break;case r.i.GrayScale:e=65535;break;default:throw new Error("ArgumentException - Unsupported color space: "+t+"colorSpace")}return e},e.prototype.getIntervals=function(t){for(var e=t.length,i=[e-1],r=t[0],n=1;n<e;++n){var o=t[n];i[n-1]=o-r,r=o}return i},e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return s});var r=i(0),n=i(12),o=i(30),s=function(){function t(){}return Object.defineProperty(t.prototype,"raiseBeginPageLayout",{get:function(){return void 0!==this.beginPageLayout},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"raiseEndPageLayout",{get:function(){return void 0!==this.endPageLayout},enumerable:!0,configurable:!0}),t.prototype.onBeginPageLayout=function(t){this.beginPageLayout&&this.beginPageLayout(this,t)},t.prototype.onEndPageLayout=function(t){this.endPageLayout&&this.endPageLayout(this,t)},t.prototype.drawHelper=function(t,e,i,s){if(e instanceof r.a&&void 0===e.width&&void 0===i)return this.drawHelper(t,e.x,e.y);if("number"==typeof e&&"number"==typeof i&&void 0===s)return this.drawHelper(t,e,i,null);if(e instanceof r.c&&void 0!==e.width&&void 0===i)return this.drawHelper(t,e,null);if(e instanceof r.a&&void 0===e.width&&i instanceof n.b)return this.drawHelper(t,e.x,e.y,i);if("number"==typeof e&&"number"==typeof i&&(s instanceof n.b||null==s)){var a=t.graphics.clientSize.width-e,h=new r.c(e,i,a,0);return this.drawHelper(t,h,s)}if(e instanceof r.c&&void 0!==e.width&&"boolean"==typeof i)return this.bEmbedFonts=i,this.drawHelper(t,e,null);var u=new n.c,l=e,c=i;if(u.page=t,u.bounds=l,null!=u){var d=u.bounds.x,f=u.bounds.y;0===u.bounds.x&&(d=o.a.default.right.width/2),0===u.bounds.y&&(f=o.a.default.top.width/2);var p=new r.c(d,f,u.bounds.width,u.bounds.height);u.bounds=p}return u.format=null!=c?c:new n.b,this.layout(u)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return h}),i.d(e,"c",function(){return u});var r=i(22),n=i(7),o=i(6),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(){function t(){this.lineGap=0}return t.prototype.getAscent=function(t){return this.ascent*r.a.charSizeMultiplier*this.getSize(t)},t.prototype.getDescent=function(t){return this.descent*r.a.charSizeMultiplier*this.getSize(t)},t.prototype.getLineGap=function(t){return this.lineGap*r.a.charSizeMultiplier*this.getSize(t)},t.prototype.getHeight=function(t){for(var e=["cambria","candara","constantia","corbel","cariadings"],i=[],r=0;r<e.length;r++){var n=e[r];i.push(n)}return this.getDescent(t)<0?this.getAscent(t)-this.getDescent(t)+this.getLineGap(t):this.getAscent(t)+this.getDescent(t)+this.getLineGap(t)},t.prototype.getSize=function(t){var e=this.size;if(null!=t)switch(t.subSuperScript){case n.e.SubScript:e/=this.subScriptSizeFactor;break;case n.e.SuperScript:e/=this.superscriptSizeFactor}return e},t.prototype.clone=function(){var t=this;return t.widthTable=h.clone(),t},Object.defineProperty(t.prototype,"widthTable",{get:function(){return this.internalWidthTable},set:function(t){this.internalWidthTable=t},enumerable:!0,configurable:!0}),t}(),h=function(){function t(){}return t.clone=function(){return null},t}(),u=function(t){function e(e){var i=t.call(this)||this;if(null==e)throw new Error("ArgumentNullException:widths");return i.widths=e,i}return s(e,t),e.prototype.items=function(t){if(t<0||t>=this.widths.length)throw new Error("ArgumentOutOfRangeException:index, The character is not supported by the font.");return this.widths[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.widths.length},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var t=this;return t.widths=this.widths,t},e.prototype.toArray=function(){return new o.a(this.widths)},e}(h)},function(t,e,i){"use strict";i.d(e,"a",function(){return c});var r=i(7),n=i(22),o=i(20),s=i(79),a=i(4),h=i(1),u=i(3),l=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),c=function(t){function e(i,n,o){var s=t.call(this,n,void 0===o?i instanceof e?i.style:r.a.Regular:o)||this;return s.dictionaryProperties=new h.a,s.encodings=["Unknown","StandardEncoding","MacRomanEncoding","MacExpertEncoding","WinAnsiEncoding","PDFDocEncoding","IdentityH"],s.pdfFontFamily=void 0===i?r.b.Helvetica:i instanceof e?i.fontFamily:i,s.checkStyle(),s.initializeInternals(),s}return l(e,t),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.pdfFontFamily},enumerable:!0,configurable:!0}),e.prototype.checkStyle=function(){if(this.fontFamily===r.b.Symbol||this.fontFamily===r.b.ZapfDingbats){var t=this.style;t&=~(r.a.Bold|r.a.Italic),this.setStyle(t)}},e.prototype.getLineWidth=function(t,i){if(null==t)throw new Error("ArgumentNullException:line");var r=0;this.name;t=e.convert(t);for(var o=0,s=t.length;o<s;o++){var a=t[o];r+=this.getCharWidthInternal(a,i)}var h=this.metrics.getSize(i);return r*=n.a.charSizeMultiplier*h,r=this.applyFormatSettings(t,i,r)},e.prototype.equalsToFont=function(t){var e=!1,i=t;if(null!=i){var n=this.fontFamily===i.fontFamily,o=~(r.a.Underline|r.a.Strikeout),s=(this.style&o)==(i.style&o);e=n&&s}return e},e.prototype.initializeInternals=function(){o.a.cache.search(this);var t=null,e=s.a.getMetrics(this.pdfFontFamily,this.style,this.size);this.metrics=e,t=this.createInternals(),this.setInternals(t)},e.prototype.createInternals=function(){var t=new a.a;if(t.items.setValue(this.dictionaryProperties.type,new u.a(this.dictionaryProperties.font)),t.items.setValue(this.dictionaryProperties.subtype,new u.a(this.dictionaryProperties.type1)),t.items.setValue(this.dictionaryProperties.baseFont,new u.a(this.metrics.postScriptName)),this.fontFamily!==r.b.Symbol&&this.fontFamily!==r.b.ZapfDingbats){var e=this.encodings[r.f.WinAnsiEncoding];t.items.setValue(this.dictionaryProperties.encoding,new u.a(e))}return t},e.prototype.getCharWidthInternal=function(t,i){var r=0;return r=t.charCodeAt(0),"0"!==this.name&&"1"!==this.name&&"2"!==this.name&&"3"!==this.name&&"4"!==this.name||(r-=e.charOffset),r=r>=0&&128!==r?r:0,this.metrics.widthTable.items(r)},e.convert=function(t){return t},e.charOffset=32,e}(n.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.mPosition=0,this.buffer=new Uint8Array(t),this.dataView=new DataView(this.buffer.buffer)}return Object.defineProperty(t.prototype,"position",{get:function(){return this.mPosition},set:function(t){this.mPosition=t},enumerable:!0,configurable:!0}),t.prototype.read=function(t,e,i){for(var r=e;r<i;r++){var n=this.position;t.buffer[r]=this.readByte(n),this.position++}},t.prototype.getBuffer=function(t){return this.buffer[t]},t.prototype.writeFromBase64String=function(t){var e=this.encodedString(t);this.buffer=e},t.prototype.encodedString=function(t){var e,i,r,n,o,s,a,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,l=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");var c=3*t.length/4;t.charAt(t.length-1)===h.charAt(64)&&c--;for(var d=new Uint8Array(0|c);u<t.length;)n=h.indexOf(t.charAt(u++)),o=h.indexOf(t.charAt(u++)),s=h.indexOf(t.charAt(u++)),a=h.indexOf(t.charAt(u++)),e=n<<2|o>>4,i=(15&o)<<4|s>>2,r=(3&s)<<6|a,d[l++]=e,d[l++]=i,d[l++]=r;return d},t.prototype.readByte=function(t){return this.buffer[t]},Object.defineProperty(t.prototype,"internalBuffer",{get:function(){return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.buffer.byteLength},enumerable:!0,configurable:!0}),t.prototype.readNextTwoBytes=function(t){var e=t.readByte(this.position);return this.position++,e<<=8,e|=t.readByte(this.position),this.position++,e},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(48),n=i(38),o=i(1),s=i(29),a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e){var i=t.call(this)||this;return i.imageStatus=!0,i.dictionaryProperties=new o.a,i.loadImage(e),i}return a(e,t),e.prototype.loadImage=function(t){this.initializeAsync(t)},e.prototype.initializeAsync=function(t){var e=new n.a(t.length);e.writeFromBase64String(t),this.decoder=new r.b(e),this.height=this.decoder.height,this.width=this.decoder.width,this.bitsPerComponent=this.decoder.bitsPerComponent},e.prototype.save=function(){this.imageStatus=!0,this.imageStream=this.decoder.getImageDictionary()},e}(s.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return b}),i.d(e,"b",function(){return w});var r=i(4),n=i(32),o=i(3),s=i(6),a=i(8),h=i(51),u=i(22),l=i(27),c=i(11),d=i(49),f=i(39),p=i(29),g=i(26),m=i(46),y=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),b=function(t){function e(e){var i=t.call(this,e)||this;return i.properties=new r.a,i}return y(e,t),Object.defineProperty(e.prototype,"names",{get:function(){return this.getNames()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t},enumerable:!0,configurable:!0}),e.prototype.getName=function(t){var e=t.element,i=null;if(this.names.containsKey(e)&&(i=this.names.getValue(e)),null==i){var r=this.generateName();i=new o.a(r),this.names.setValue(e,i),t instanceof u.a?this.add(t,i):t instanceof l.a?this.add(t,i):t instanceof g.a||t instanceof m.a?this.add(t,i):t instanceof d.a?this.add(t,i):(t instanceof p.a||t instanceof f.a)&&this.add(t,i)}return i},e.prototype.getNames=function(){null==this.pdfNames&&(this.pdfNames=new n.a);var t=this.items.getValue(this.dictionaryProperties.font);if(null!=t){h.a.dereference(t)}return this.pdfNames},e.prototype.requireProcedureSet=function(t){if(null==t)throw new Error("ArgumentNullException:procedureSetName");var e=this.items.getValue(this.dictionaryProperties.procset);null==e&&(e=new s.a,this.items.setValue(this.dictionaryProperties.procset,e));var i=new o.a(t);e.contains(i)||e.add(i)},e.prototype.removeFont=function(t){for(var e=null,i=this.pdfNames.keys(),r=0;r<this.pdfNames.size();r++)if(this.pdfNames.getValue(i[r])===new o.a(t)){e=i[r];break}null!=e&&this.pdfNames.remove(e)},e.prototype.generateName=function(){return w.getNewGuidString()},e.prototype.add=function(t,e){if(t instanceof u.a){var i=null,n=this.items.getValue(this.dictionaryProperties.font);if(null!=n){var o=n;i=n,i=n}else i=new r.a,this.items.setValue(this.dictionaryProperties.font,i);i.items.setValue(e.value,new a.b(t.element))}else if(t instanceof l.a){var s=void 0;s=this.items.getValue(this.dictionaryProperties.xObject),null==s&&(s=new r.a,this.items.setValue(this.dictionaryProperties.xObject,s)),s.items.setValue(e.value,new a.b(t.element))}else if(t instanceof c.a){if(t instanceof g.a||t instanceof m.a){var h=t.element;if(null!=h){var f=this.items.getValue(this.dictionaryProperties.pattern);null==f&&(f=new r.a,this.items.setValue(this.dictionaryProperties.pattern,f)),f.items.setValue(e.value,new a.b(h))}}}else if(t instanceof d.a){var h=t.element,p=null;p=this.items.getValue(this.dictionaryProperties.extGState),null==p&&(p=new r.a,this.items.setValue(this.dictionaryProperties.extGState,p)),p.items.setValue(e.value,new a.b(h))}else{var s=this.Dictionary.items.getValue(this.dictionaryProperties.xObject),y=void 0;void 0!==this.pdfDocument&&(y=this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.getValue(this.dictionaryProperties.xObject));var b=(this.Dictionary.items.values(),!1),w=void 0;if(void 0===this.pdfDocument||void 0!==typeof y&&null!=y){if(void 0!==this.pdfDocument)for(var v=y.items.values(),S=0;S<v.length;S++)void 0!==v[S]&&void 0!==v[S].element&&v[S].element.data[0]===t.element.data[0]&&(w=v[S],b=!0)}else y=new r.a,this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.setValue(this.dictionaryProperties.xObject,y);if(null==s&&(s=new r.a,this.Dictionary.items.setValue(this.dictionaryProperties.xObject,s)),b&&void 0!==w)s.items.setValue(e.value,w);else{var o=new a.b(t.element);s.items.setValue(e.value,o),void 0!==this.pdfDocument&&y.items.setValue(e.value,o)}}},e}(r.a),w=function(){function t(){}return t.getNewGuidString=function(){return"aaaaaaaa-aaaa-4aaa-baaa-aaaaaaaaaaaa".replace(/[ab]/g,function(t){var e=16*Math.random()|0;return("a"===t?e:3&e|8).toString(16)})},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return p}),i.d(e,"b",function(){return g}),i.d(e,"c",function(){return m}),i.d(e,"d",function(){return y}),i.d(e,"e",function(){return b}),i.d(e,"f",function(){return w}),i.d(e,"g",function(){return v}),i.d(e,"h",function(){return S}),i.d(e,"i",function(){return P}),i.d(e,"j",function(){return C}),i.d(e,"k",function(){return B}),i.d(e,"l",function(){return O});var r=i(57),n=i(23),o=i(0),s=i(30),a=i(21),h=i(12),u=i(31),l=i(32),c=i(14),d=i(20),f=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),p=function(t){function e(e){var i=t.call(this,e)||this;return i.gridInitialWidth=0,i.gridSize=new o.b(0,0),i.parentCellIndex=0,i.tempWidth=0,i.childheight=0,i.isChildGrid=!1,i.hasRowSpanSpan=!1,i.isRearranged=!1,i.pageBounds=new o.c,i.listOfNavigatePages=[],i.flag=!0,i.columnRanges=[],i.currentLocation=new o.a(0,0),i.breakRow=!0,i.slr=null,i.remainderText=null,i.isPaginate=!1,i.isOverloadWithPosition=!1,i}return f(e,t),Object.defineProperty(e.prototype,"Grid",{get:function(){return this.elements},enumerable:!0,configurable:!0}),e.prototype.getFormat=function(t){return t},e.prototype.layoutInternal=function(t){var e=this.getFormat(t.format);if(this.gridLayoutFormat=this.getFormat(t.format),this.currentPage=t.page,null===this.currentPage)throw Error("Can not set page as null");this.currentPage.getClientSize().height,this.currentPage.getClientSize().width;this.currentPageBounds=this.currentPage.getClientSize(),this.currentGraphics=this.currentPage.graphics;var i=0;if(i=this.currentGraphics.page.section.indexOf(this.currentGraphics.page),this.listOfNavigatePages.push(i),null!=e&&e.break===a.b.FitColumnsToPage?this.currentBounds=new o.c(new o.a(t.bounds.x,t.bounds.y),new o.b(this.Grid.columns.width,this.currentGraphics.clientSize.height)):this.currentBounds=new o.c(new o.a(t.bounds.x,t.bounds.y),this.currentGraphics.clientSize),0!==this.Grid.rows.count)this.currentBounds.width=t.bounds.width>0?t.bounds.width:this.currentBounds.width-this.Grid.rows.getRow(0).cells.getCell(0).style.borders.left.width/2;else{if(0===this.Grid.headers.count)throw Error("Please add row or header into grid");this.currentBounds.width=t.bounds.width}if(this.startLocation=new o.a(t.bounds.x,t.bounds.y),t.bounds.height>0&&!this.Grid.isChildGrid&&(this.currentBounds.height=t.bounds.height),this.Grid.isChildGrid||(this.hType=this.Grid.style.horizontalOverflowType),this.Grid.style.allowHorizontalOverflow?(this.Grid.measureColumnsWidth(),this.determineColumnDrawRanges()):(this.columnRanges=[],void 0===this.Grid.isChildGrid||(this.Grid.isChildGrid,0)?this.Grid.measureColumnsWidth(new o.c(this.currentBounds.x,this.currentBounds.y,this.currentBounds.x+this.currentBounds.width,this.currentBounds.height)):this.Grid.measureColumnsWidth(this.currentBounds),this.columnRanges.push([0,this.Grid.columns.count-1])),this.Grid.hasRowSpanSpan)for(var r=0;r<this.Grid.rows.count;r++)-1===this.Grid.rows.getRow(r).height||this.Grid.rows.getRow(r).isRowHeightSet||(this.Grid.rows.getRow(r).isRowHeightSet=!0);return this.layoutOnPage(t)},e.prototype.determineColumnDrawRanges=function(){for(var t=0,e=0,i=0,r=this.currentGraphics.clientSize.width-this.currentBounds.x,n=0;n<this.Grid.columns.count;n++)if((i+=this.Grid.columns.getColumn(n).width)>=r){for(var o=0,s=t;s<=n&&!((o+=this.Grid.columns.getColumn(s).width)>r);s++)e=s;this.columnRanges.push([t,e]),t=e+1,e=t,i=e<=n?this.Grid.columns.getColumn(n).width:0}this.columnRanges.push([t,this.Grid.columns.count-1])},e.prototype.layoutOnPage=function(t){this.pageBounds.x=t.bounds.x,this.pageBounds.y=t.bounds.y,this.pageBounds.height=t.bounds.height;for(var i=this.getFormat(t.format),n=null,h=null,c=new l.a,d=t.page,f=[],p=0;p<this.columnRanges.length;p++){var g=this.columnRanges[p];this.cellStartIndex=g[0],this.cellEndIndex=g[1];var m=this.raiseBeforePageLayout(this.currentPage,this.currentBounds,this.currentRowIndex);this.currentBounds=m.currentBounds,this.currentRowIndex=m.currentRowIndex;for(var y=void 0,b=0;b<this.Grid.headers.count;b++){var w=this.Grid.headers.getHeader(b),v=this.currentBounds.y;if(this.isHeader=!0,d!=this.currentPage)for(var S=this.cellStartIndex;S<=this.cellEndIndex;S++)w.cells.getCell(S).isCellMergeContinue&&(w.cells.getCell(S).isCellMergeContinue=!1,w.cells.getCell(S).value="");var P=this.drawRow(w);v===this.currentBounds.y?(y=!0,-1===e.repeatRowIndex&&(e.repeatRowIndex=b)):y=!1,!P.isFinish&&null!==d&&i.layout!==a.a.OnePage&&y&&(this.startLocation.x=this.currentBounds.x,this.currentPage=this.getNextPageformat(i),this.startLocation.y=this.currentBounds.y,void 0!==i.paginateBounds&&0===i.paginateBounds.x&&0===i.paginateBounds.y&&0===i.paginateBounds.width&&0===i.paginateBounds.height&&(this.currentBounds.x+=this.startLocation.x),this.drawRow(w)),this.isHeader=!1}var C=0,B=(this.Grid.rows.count,void 0),O=!0;f=[];for(var x=0;x<this.Grid.rows.count;x++){var w=this.Grid.rows.getRow(x);C++,this.currentRowIndex=C-1;var L=this.currentBounds.y;d=this.currentPage,e.repeatRowIndex=-1,O&&w.grid.isChildGrid&&(L,O=!1);var j=null;if(-1==this.Grid.splitChildRowIndex)j=this.drawRow(w),w.isrowFinish=!0;else{if(!(w.grid.ParentCell.row.grid.isGridSplit&&this.Grid.splitChildRowIndex<=w.rowIndex)){if(w.isrowFinish)continue;break}j=this.drawRow(w),w.isrowFinish=!0}for(f.push(j.bounds.width),L===this.currentBounds.y?(B=!0,e.repeatRowIndex=this.Grid.rows.rowCollection.indexOf(w)):(B=!1,e.repeatRowIndex=-1);!j.isFinish&&null!=d;){var V=this.getLayoutResult();if(n=this.raisePageLayouted(V),n.cancel||B)break;if(this.Grid.allowRowBreakAcrossPages){this.currentPage=this.getNextPageformat(i),L=this.currentBounds.y;var k=new o.a(s.a.default.right.width/2,s.a.default.top.width/2);if(0===i.paginateBounds.x&&0===i.paginateBounds.y&&0===i.paginateBounds.width&&0===i.paginateBounds.height&&this.startLocation.x===k.x&&this.startLocation.y===k.y&&(this.currentBounds.x+=this.startLocation.x,this.currentBounds.y+=this.startLocation.y),this.isPaginate&&(this.startLocation.y=this.currentBounds.y,this.isPaginate=!1),this.Grid.isChildGrid&&null!=w.grid.ParentCell&&null!=this.Grid.ParentCell.row.grid.style.cellPadding&&w.rowBreakHeight+this.Grid.ParentCell.row.grid.style.cellPadding.top<this.currentBounds.height&&(this.currentBounds.y=this.Grid.ParentCell.row.grid.style.cellPadding.top),null!=w.grid.ParentCell){w.grid.ParentCell.row.isRowBreaksNextPage=!0,w.grid.ParentCell.row.rowBreakHeightValue=w.rowBreakHeight+this.Grid.ParentCell.row.grid.style.cellPadding.top+this.Grid.ParentCell.row.grid.style.cellPadding.bottom;for(var T=w.rowIndex+1;T<w.grid.rows.count;T++)w.grid.ParentCell.row.rowBreakHeightValue+=w.grid.rows.getRow(T).height}if(w.grid.isChildGrid){w.isrowFinish=!1,w.grid.splitChildRowIndex=w.rowIndex,w.grid.ParentCell.row.grid.splitChildRowIndex=w.grid.ParentCell.row.rowIndex,w.grid.ParentCell.row.grid.isGridSplit&&(w.grid.ParentCell.row.noOfPageCount+=1,w.grid.ParentCell.row.grid.isGridSplit=!1);break}if(w.noOfPageCount<1){if(-1!=w.grid.splitChildRowIndex&&(w.grid.isGridSplit=!0),null!=w.style.border&&(null!=w.style.border.left&&1!==w.style.border.left.width||null!=w.style.border.top&&1!==w.style.border.top.width)){var R=w.style.border.left.width/2,M=w.style.border.top.width/2;if(this.currentBounds.x===s.a.default.right.width/2&&this.currentBounds.y===s.a.default.right.width/2){var N=new o.c(R,M,this.currentBounds.width,this.currentBounds.height);this.currentBounds=N}}if(this.Grid.repeatHeader)for(var I=0;I<this.Grid.headers.count;I++){var A=this.Grid.headers.getHeader(I);this.drawRow(A)}if(j=this.drawRow(w),w.noOfPageCount>=1)for(var D=(w.rowBreakHeightValue,0);D<w.noOfPageCount;D++){var E=this.getLayoutResult();if(n=this.raisePageLayouted(E),this.currentPage=this.getNextPageformat(i),L=this.currentBounds.y,-1!=w.grid.splitChildRowIndex&&(w.grid.isGridSplit=!0),this.currentBounds.y=.5,this.Grid.repeatHeader)for(var F=0;F<this.Grid.headers.count;F++){var G=this.Grid.headers.getHeader(F);this.drawRow(G)}this.drawRow(w)}w.grid.splitChildRowIndex=-1,w.grid.isGridSplit=!1,j.isFinish=this.checkIsFisished(w);for(var _=0;_<w.cells.count;_++)w.cells.getCell(_).value instanceof r.a&&(w.cells.getCell(_).value.splitChildRowIndex=-1)}}}if(!j.isFinish&&null!==d&&i.layout!==a.a.OnePage&&B){this.startLocation.x=this.currentBounds.x;if(this.currentPage=this.getNextPageformat(i),this.raiseBeforePageLayout(this.currentPage,this.currentBounds,this.currentRowIndex).returnValue)break;if(null!==t.format&&!t.format.usePaginateBounds&&null!==t.bounds&&t.bounds.height>0&&!this.Grid.isChildGrid&&(this.currentBounds.height=t.bounds.height),void 0===t.format||null==t.format||void 0===t.format.usePaginateBounds||t.format.usePaginateBounds||0===t.format.paginateBounds.x&&0===t.format.paginateBounds.y&&0===t.format.paginateBounds.width&&0===t.format.paginateBounds.height||0!==t.format.paginateBounds.y?(this.currentBounds.y=null==i?0:i.paginateBounds.y,null==i||0===i.paginateBounds.x&&0===i.paginateBounds.y&&0===i.paginateBounds.height&&0===i.paginateBounds.width||(this.currentBounds.x=i.paginateBounds.x,this.currentBounds.width=i.paginateBounds.width,this.currentBounds.height=i.paginateBounds.height)):this.currentBounds.y=s.a.default.top.width/2,void 0!==t.format&&null!==t.format&&void 0!==t.format.usePaginateBounds&&!t.format.usePaginateBounds&&null!==t.bounds&&t.bounds.y>0&&!this.Grid.isChildGrid&&(this.currentBounds.y=t.bounds.y),this.startLocation.y=this.currentBounds.y,i.paginateBounds.x===i.paginateBounds.y&&i.paginateBounds.y===i.paginateBounds.height&&i.paginateBounds.height===i.paginateBounds.width&&0===i.paginateBounds.width&&(this.currentBounds.x+=this.startLocation.x),this.currentBounds.x===s.a.default.left.width/2&&(this.currentBounds.y+=this.startLocation.x),this.Grid.repeatHeader)for(var z=0;z<this.Grid.headers.count;z++){var G=this.Grid.headers.getHeader(z);this.drawRow(G)}this.drawRow(w),null===this.currentPage||c.containsKey(this.currentPage)||c.add(this.currentPage,g)}if(null!=w.NestedGridLayoutResult){this.currentPage=w.NestedGridLayoutResult.page,this.currentGraphics=this.currentPage.graphics,this.startLocation=new o.a(w.NestedGridLayoutResult.bounds.x,w.NestedGridLayoutResult.bounds.y);var W=this.ReCalculateHeight(w,w.NestedGridLayoutResult.bounds.height);if(this.currentBounds.y=W,d!=this.currentPage){for(var H=this.currentPage.section,U=H.indexOf(d)+1,K=H.indexOf(this.currentPage),q=U;q<K+1;q++){var Y=this.currentPage.graphics,X=new o.a(i.paginateBounds.x,i.paginateBounds.y),J=q==K?w.NestedGridLayoutResult.bounds.height-t.bounds.y:this.currentBounds.height-X.y;J<=Y.clientSize.height&&(J+=t.bounds.y),X.y=null==i?.5:i.paginateBounds.y;for(var Z=0;Z<w.cells.count;Z++){var $=w.cells.getCell(Z),Q=0,tt=0;if($.value instanceof r.a)for(var et=0;et<$.value.columns.count;et++)tt+=$.value.columns.getColumn(et).columnWidth;else tt=$.width;Q=Math.max(tt,w.grid.columns.getColumn(Z).width),$.drawCellBorders(Y,new o.c(X,new o.b(Q,J))),X.x+=Q,Z+=$.columnSpan-1}}d=this.currentPage}}}var it=!1,rt=0;f.length>0&&(rt=f[0]);for(var nt=[[1,2]],Z=0;Z<this.Grid.rows.count;Z++)if(-1!=this.cellEndIndex&&this.Grid.rows.getRow(Z).cells.getCell(this.cellEndIndex).value instanceof r.a){var ot=this.Grid.rows.getRow(Z).cells.getCell(this.cellEndIndex).value;this.rowLayoutBoundsWidth=ot.rowLayoutBoundsWidth,it=!0}if(!it&&f.length>0){for(var Z=0;Z<C-1;Z++)rt<f[Z]&&(rt=f[Z]);this.rowLayoutBoundsWidth=rt}else this.rowLayoutBoundsWidth=nt[0][1];if(this.columnRanges.indexOf(g)<this.columnRanges.length-1&&null!=d&&i.layout!=a.a.OnePage)if(this.Grid.isChildGrid,0!=nt[0][0]){var st=this.currentPage.section;st.indexOf(this.currentPage);this.currentGraphics=this.currentPage.graphics,this.currentBounds=new o.c(new o.a(0,0),this.currentPage.getClientSize());this.currentGraphics.page.section.indexOf(this.currentGraphics.page)}else this.currentPage=this.getNextPageformat(i);this.columnRanges.length-1!==p&&this.columnRanges.length>1&&i.layout!==a.a.OnePage&&(this.currentPage=this.getNextPageformat(i),i.paginateBounds.x===i.paginateBounds.y&&i.paginateBounds.y===i.paginateBounds.height&&i.paginateBounds.height===i.paginateBounds.width&&0===i.paginateBounds.width&&(this.currentBounds.x+=this.startLocation.x,this.currentBounds.y+=this.startLocation.y))}return h=this.getLayoutResult(),this.Grid.style.allowHorizontalOverflow&&this.Grid.style.horizontalOverflowType==u.e.NextPage&&this.reArrangePages(c),this.raisePageLayouted(h),h},e.prototype.checkIsFisished=function(t){for(var e=!0,i=0;i<t.cells.count;i++)t.cells.getCell(i).FinishedDrawingCell||(e=!1);return e},e.prototype.getNextPageformat=function(t){var e=this.currentPage.section,i=null,r=e.indexOf(this.currentPage);this.flag=!1,i=r===e.count-1?e.add():e.getPages()[r+1],this.currentGraphics=i.graphics;var n=this.currentGraphics.page.section.indexOf(this.currentGraphics.page);return-1===this.listOfNavigatePages.indexOf(n)&&this.listOfNavigatePages.push(n),this.currentBounds=new o.c(new o.a(0,0),i.getClientSize()),void 0!==t&&null!=t&&t.usePaginateBounds&&void 0!==t.paginateBounds&&null!=t.paginateBounds&&t.paginateBounds.x!==t.paginateBounds.y&&t.paginateBounds.y!==t.paginateBounds.height&&t.paginateBounds.height!==t.paginateBounds.width&&0!==t.paginateBounds.width&&(this.currentBounds.x=t.paginateBounds.x,this.currentBounds.y=t.paginateBounds.y,this.currentBounds.height=t.paginateBounds.height),i},e.prototype.CheckIfDefaultFormat=function(t){var e=new n.a;return t.alignment===e.alignment&&t.characterSpacing===e.characterSpacing&&t.clipPath===e.clipPath&&t.firstLineIndent===e.firstLineIndent&&t.horizontalScalingFactor===e.horizontalScalingFactor&&t.lineAlignment===e.lineAlignment&&t.lineLimit===e.lineLimit&&t.lineSpacing===e.lineSpacing&&t.measureTrailingSpaces===e.measureTrailingSpaces&&t.noClip===e.noClip&&t.paragraphIndent===e.paragraphIndent&&t.rightToLeft===e.rightToLeft&&t.subSuperScript===e.subSuperScript&&t.wordSpacing===e.wordSpacing&&t.wordWrap===e.wordWrap},e.prototype.RaiseBeforeCellDraw=function(t,e,i,r,n,o){var s=null;return this.Grid.raiseBeginCellDraw&&(s=new b(t,e,i,r,n,o),this.Grid.onBeginCellDraw(s),o=s.style),o},e.prototype.raiseAfterCellDraw=function(t,e,i,r,n,o){var s=null;this.Grid.raiseEndCellDraw&&(s=new w(t,e,i,r,n,o),this.Grid.onEndCellDraw(s))},e.prototype.reArrangePages=function(t){for(var e=this.currentPage.document,i=[],r=t.keys(),n=(t.values(),0);n<r.length;n++){var o=r[n];o.section=null,i.push(o),e.pages.remove(o)}for(var n=0;n<t.size();n++)for(var s=n,a=t.size()/this.columnRanges.length;s<t.size();s+=a){var o=i[s];void 0!==o&&-1===e.pages.indexOf(o)&&e.pages.add(o)}},e.prototype.getLayoutResult=function(){if(this.Grid.isChildGrid&&this.Grid.allowRowBreakAcrossPages)for(var t=0;t<this.Grid.rows.count;t++){var e=this.Grid.rows.getRow(t);e.rowBreakHeight>0&&e.repeatFlag&&(this.startLocation.y=this.currentPage.origin.y)}var i;return this.isChanged||(i=new o.c(this.startLocation,new o.b(this.currentBounds.width,this.currentBounds.y-this.startLocation.y))),new g(this.currentPage,i)},e.prototype.ReCalculateHeight=function(t,e){for(var i=0,r=this.cellStartIndex;r<=this.cellEndIndex;r++)null!==t.cells.getCell(r).remainingString&&""!==t.cells.getCell(r).remainingString&&void 0!==t.cells.getCell(r).remainingString&&(i=Math.max(i,t.cells.getCell(r).measureHeight()));return Math.max(e,i)},e.prototype.raiseBeforePageLayout=function(t,e,i){var r=!1;if(this.Grid.raiseBeginPageLayout){var n=new C(e,t,i);this.Grid.onBeginPageLayout(n),r=void 0!==n.cancel&&n.cancel,e=n.bounds,i=n.startRowIndex}return{returnValue:r,currentBounds:e,currentRowIndex:i}},e.prototype.raisePageLayouted=function(t){var e=new B(t);return this.Grid.raiseEndPageLayout&&this.Grid.onEndPageLayout(e),e},e.prototype.drawRow=function(t,i,n){if(void 0===i){var s=new O,h=0,u=(new o.a(0,0),new o.b(0,0)),l=!1;if(t.rowSpanExists){var c=0,d=this.Grid.rows.rowCollection.indexOf(t);-1===d&&-1!==(d=this.Grid.headers.indexOf(t))&&(l=!0);for(var f=0;f<t.cells.count;f++){var p=t.cells.getCell(f);c=Math.max(c,p.rowSpan)}for(var f=d;f<d+c;f++)h+=l?this.Grid.headers.getHeader(f).height:this.Grid.rows.getRow(f).height}var g=t.rowBreakHeight>0?t.rowBreakHeight:t.height;if(void 0!==this.Grid.isChildGrid&&this.Grid.isChildGrid&&void 0!==this.Grid.ParentCell&&null!=this.Grid.ParentCell)this.currentBounds.y+this.Grid.ParentCell.row.grid.style.cellPadding.bottom+g>this.currentPageBounds.height||this.currentBounds.y+this.Grid.ParentCell.row.grid.style.cellPadding.bottom+g>this.currentBounds.height||this.currentBounds.y+this.Grid.ParentCell.row.grid.style.cellPadding.bottom+h>this.currentPageBounds.height?(void 0!==this.Grid.ParentCell.row.grid.LayoutFormat&&this.Grid.ParentCell.row.grid.LayoutFormat.break===a.b.FitPage&&(e.repeatRowIndex=this.Grid.rows.rowCollection.indexOf(t),this.Grid.splitChildRowIndex=this.Grid.rows.rowCollection.indexOf(t)),e.repeatRowIndex>-1&&e.repeatRowIndex===t.rowIndex&&this.Grid.allowRowBreakAcrossPages&&(s.isFinish=!0,s.bounds=this.currentBounds,this.drawRowWithBreak(s,t,g),t.repeatFlag=!0,t.repeatRowNumber=e.repeatRowIndex)):(s.isFinish=!0,t.grid.ParentCell.row.rowBreakHeightValue>0?t.repeatFlag=!0:(t.repeatFlag=!1,g=t.height),this.Grid.isChildGrid&&t.rowBreakHeight>0&&null!=this.Grid.ParentCell.row.grid.style.cellPadding&&(g+=this.Grid.ParentCell.row.grid.style.cellPadding.bottom),this.drawRow(t,s,g));else if(g>this.currentPageBounds.height)this.Grid.allowRowBreakAcrossPages&&(s.isFinish=!0,this.drawRowWithBreak(s,t,g),t.isrowFinish=!0,t.repeatFlag=!0,-1!==t.grid.splitChildRowIndex&&(s.isFinish=!1));else if(this.currentBounds.y+g>this.currentPageBounds.height||this.currentBounds.y+g>this.currentBounds.height+this.startLocation.y||this.currentBounds.y+h>this.currentPageBounds.height){var m=!1;!this.Grid.allowRowBreakAcrossPages||this.Grid.repeatHeader||t.isRowHeightSet||t.rowMergeComplete?this.Grid.allowRowBreakAcrossPages&&null!=this.Grid.LayoutFormat&&this.Grid.LayoutFormat.layout==a.a.Paginate&&this.Grid.LayoutFormat.break!=a.b.FitElement&&t.isRowHeightSet&&this.currentBounds.y+n>this.currentPageBounds.height&&(m=this.isFitToCell(this.currentPageBounds.height-this.currentBounds.y,this.Grid,t),m||(m=!(null!==this.slr&&0==this.slr.actualSize.height&&null!=this.slr.remainder&&this.slr.remainder.length>0&&this.remainderText==this.slr.remainder)),m&&null!=this.slr&&this.slr.lineCount>1&&(m=!1),this.remainderText=null):(m=null!==this.Grid.LayoutFormat&&this.Grid.LayoutFormat.paginateBounds.height>0?this.isFitToCell(this.currentBounds.height+this.startLocation.y-this.currentBounds.y,this.Grid,t):this.isFitToCell(this.currentPageBounds.height-this.currentBounds.y,this.Grid,t))&&(this.isPaginate=!0),e.repeatRowIndex>-1&&e.repeatRowIndex===t.rowIndex||m?this.Grid.allowRowBreakAcrossPages?(s.isFinish=!0,this.drawRowWithBreak(s,t,g),t.repeatFlag=!0,t.repeatRowNumber=e.repeatRowIndex,-1!==t.grid.splitChildRowIndex&&(s.isFinish=!1)):(s.isFinish=!1,this.drawRow(t,s,g)):s.isFinish=!1}else s.isFinish=!0,this.drawRow(t,s,g),t.repeatFlag=!1;return s}var y=new o.a(this.currentBounds.x,this.currentBounds.y);i.bounds=new o.c(y,new o.b(0,0)),n=this.ReCalculateHeight(t,n);for(var f=this.cellStartIndex;f<=this.cellEndIndex;f++){var b=f>this.cellEndIndex+1&&t.cells.getCell(f).columnSpan>1;if(!b)for(var w=1;w<t.cells.getCell(f).columnSpan;w++)t.cells.getCell(f+w).isCellMergeContinue=!0;var u=new o.b(this.Grid.columns.getColumn(f).width,n);!this.CheckIfDefaultFormat(this.Grid.columns.getColumn(f).format)&&this.CheckIfDefaultFormat(t.cells.getCell(f).stringFormat)&&(t.cells.getCell(f).stringFormat=this.Grid.columns.getColumn(f).format);var v=t.cells.getCell(f).style,S="string"==typeof t.cells.getCell(f).value&&null!==t.cells.getCell(f).value?t.cells.getCell(f).value:"";if(t.cells.getCell(f).style=this.RaiseBeforeCellDraw(this.currentGraphics,this.currentRowIndex,f,new o.c(y,u),S,v),t.cells.getCell(f).value instanceof r.a){var P=t.cells.getCell(f).value;P.parentCellIndex=f}var C=t.cells.getCell(f).draw(this.currentGraphics,new o.c(y,u),b);if(t.grid.style.allowHorizontalOverflow&&(t.cells.getCell(f).columnSpan>this.cellEndIndex||f+t.cells.getCell(f).columnSpan>this.cellEndIndex+1)&&this.cellEndIndex<t.cells.count-1&&(t.rowOverflowIndex=this.cellEndIndex),t.grid.style.allowHorizontalOverflow&&t.rowOverflowIndex>0&&(t.cells.getCell(f).columnSpan>this.cellEndIndex||f+t.cells.getCell(f).columnSpan>this.cellEndIndex+1)&&t.cells.getCell(f).columnSpan-this.cellEndIndex+f-1>0&&(t.cells.getCell(t.rowOverflowIndex+1).value=null!==C&&void 0!==C.remainder?C.remainder:"",t.cells.getCell(t.rowOverflowIndex+1).stringFormat=t.cells.getCell(f).stringFormat,t.cells.getCell(t.rowOverflowIndex+1).style=t.cells.getCell(f).style,t.cells.getCell(t.rowOverflowIndex+1).columnSpan=t.cells.getCell(f).columnSpan-this.cellEndIndex+f-1),S="string"==typeof t.cells.getCell(f).value&&null!==t.cells.getCell(f).value?t.cells.getCell(f).value:"",b||this.raiseAfterCellDraw(this.currentGraphics,this.currentRowIndex,f,new o.c(y,u),S,t.cells.getCell(f).style),t.cells.getCell(f).value instanceof r.a){var P=t.cells.getCell(f).value;this.Grid.columns.getColumn(f).width>=this.currentGraphics.clientSize.width?(y.x=P.rowLayoutBoundsWidth,y.x+=P.style.cellSpacing):y.x+=this.Grid.columns.getColumn(f).width}else y.x+=this.Grid.columns.getColumn(f).width}t.rowMergeComplete&&!t.isRowHeightSet||(this.currentBounds.y+=n),i.bounds=new o.c(new o.a(i.bounds.x,i.bounds.y),new o.b(y.x,y.y))},e.prototype.isFitToCell=function(t,e,i){for(var r=!1,n=new c.a,s=0;s<i.cells.count;s++){var a=i.cells.getCell(s);if(void 0!==a.value&&null!==a.value&&"string"==typeof a.value){var h=null;h=void 0!==a.style.font&&null!=a.style.font?a.style.font:void 0!==a.row.style.font&&null!=a.row.style.font?a.row.style.font:void 0!==a.row.grid.style.font&&null!=a.row.grid.style.font?a.row.grid.style.font:d.a.defaultFont,this.remainderText=a.value;var u=a.width,l=e.columns.getColumn(s);l.isCustomWidth&&a.width>l.width&&(u=l.width),this.slr=n.layout(a.value,h,a.stringFormat,new o.b(u,t),!1,this.currentPageBounds);var f=this.slr.actualSize.height;if(""!==a.value&&0===f){r=!1;break}if(null!==a.style&&null!==a.style.borders&&null!==a.style.borders.top&&null!==a.style.borders.bottom&&(f+=2*(a.style.borders.top.width+a.style.borders.bottom.width)),this.slr.lineCount>1&&null!=a.stringFormat&&0!=a.stringFormat.lineSpacing&&(f+=(this.slr.lineCount-1)*a.style.stringFormat.lineSpacing),a.style.cellPadding,f+=e.style.cellPadding.top+e.style.cellPadding.bottom,f+=e.style.cellSpacing,t>f||void 0!==this.slr.remainder&&null!==this.slr.remainder){r=!0;break}}}return r},e.prototype.drawRowWithBreak=function(t,e,i){var n=new o.a(this.currentBounds.x,this.currentBounds.y);e.grid.isChildGrid&&e.grid.allowRowBreakAcrossPages&&this.startLocation.x!==this.currentBounds.x&&(n.x=this.startLocation.x),t.bounds=new o.c(n,new o.b(0,0)),this.gridHeight=e.rowBreakHeight>0?this.currentPageBounds.height:0,e.grid.style.cellPadding.top+this.currentBounds.y+e.grid.style.cellPadding.bottom<this.currentPageBounds.height&&(e.rowBreakHeight=this.currentBounds.y+i-this.currentPageBounds.height);for(var s=0;s<e.cells.count;s++){var a=e.cells.getCell(s);a.measureHeight()===i&&a.value instanceof r.a&&(e.rowBreakHeight=0)}for(var s=this.cellStartIndex;s<=this.cellEndIndex;s++){var h=e.cells.getCell(s).columnSpan+s>this.cellEndIndex+1&&e.cells.getCell(s).columnSpan>1,u=new o.b(this.Grid.columns.getColumn(s).width,this.gridHeight>0?this.gridHeight:this.currentPageBounds.height),l=e.cells.getCell(s).style;e.cells.getCell(s).style=l;var c=null;if(e.cells.getCell(s)._rowHeight=e.height,c=e.cells.getCell(s).draw(this.currentGraphics,new o.c(n,u),h),e.rowBreakHeight>0&&null!=c&&void 0!==c.remainder&&(e.cells.getCell(s).FinishedDrawingCell=!1,e.cells.getCell(s).remainingString=null==c.remainder?" ":c.remainder,e.rowBreakHeight=i-c.actualSize.height),t.isFinish=t.isFinish?e.cells.getCell(s).FinishedDrawingCell:t.isFinish,e.cells.getCell(s).value instanceof r.a){var d=e.cells.getCell(s).value;this.rowBreakPageHeightCellIndex=s,this.Grid.columns.getColumn(s).width>=this.currentGraphics.clientSize.width?(n.x=this.rowLayoutBoundsWidth,n.x+=d.style.cellSpacing):n.x+=this.Grid.columns.getColumn(s).width}else n.x+=this.Grid.columns.getColumn(s).width}this.currentBounds.y+=this.gridHeight>0?this.gridHeight:i,t.bounds=new o.c(new o.a(t.bounds.x,t.bounds.y),new o.b(n.x,n.y))},e.repeatRowIndex=-1,e}(h.a),g=function(t){function e(e,i){return t.call(this,e,i)||this}return f(e,t),e}(h.d),m=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e}(h.b),y=function(){function t(t,e,i,r,n){this.gridRowIndex=e,this.gridCellIndex=i,this.internalValue=n,this.gridBounds=r,this.pdfGraphics=t}return Object.defineProperty(t.prototype,"rowIndex",{get:function(){return this.gridRowIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellIndex",{get:function(){return this.gridCellIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.internalValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.gridBounds},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){return this.pdfGraphics},enumerable:!0,configurable:!0}),t}(),b=function(t){function e(e,i,r,n,o,s){var a=t.call(this,e,i,r,n,o)||this;return a.style=s,a}return f(e,t),Object.defineProperty(e.prototype,"skip",{get:function(){return this.bSkip},set:function(t){this.bSkip=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.cellStyle},set:function(t){this.cellStyle=t},enumerable:!0,configurable:!0}),e}(y),w=function(t){function e(e,i,r,n,o,s){var a=t.call(this,e,i,r,n,o)||this;return a.cellStyle=s,a}return f(e,t),Object.defineProperty(e.prototype,"style",{get:function(){return this.cellStyle},enumerable:!0,configurable:!0}),e}(y),v=function(){function t(){}return Object.defineProperty(t.prototype,"cancel",{get:function(){return this.isCancel},set:function(t){this.isCancel=t},enumerable:!0,configurable:!0}),t}(),S=function(t){function e(e,i){var r=t.call(this)||this;return r.bounds=e,r.pdfPage=i,r}return f(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.cellBounds},set:function(t){this.cellBounds=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),e}(v),P=function(t){function e(e){var i=t.call(this)||this;return i.layoutResult=e,i}return f(e,t),Object.defineProperty(e.prototype,"result",{get:function(){return this.layoutResult},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextPage",{get:function(){return this.nextPdfPage},set:function(t){this.nextPdfPage=t},enumerable:!0,configurable:!0}),e}(v),C=function(t){function e(e,i,r){var n=t.call(this,e,i)||this;return n.startRow=r,n}return f(e,t),Object.defineProperty(e.prototype,"startRowIndex",{get:function(){return this.startRow},enumerable:!0,configurable:!0}),e}(S),B=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e}(P),O=function(){function t(){this.layoutedBounds=new o.c(0,0,0,0)}return Object.defineProperty(t.prototype,"isFinish",{get:function(){return this.bIsFinished},set:function(t){this.bIsFinished=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.layoutedBounds},set:function(t){this.layoutedBounds=t},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return s});var r=i(65),n=i(3),o=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),s=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.dictionary.items.setValue(this.dictionaryProperties.subtype,new n.a(this.dictionaryProperties.link))},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return f});var r=i(25),n=i(0),o=i(78),s=i(66),a=i(14),h=i(7),u=i(2),l=i(6),c=i(5),d=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f=function(t){function e(){var e=t.call(this)||this;e.uniformResourceLocator="",e.uriAnnotation=null,e.recalculateBounds=!1,e.defaultBorder=new l.a;for(var i=0;i<3;i++)e.defaultBorder.add(new c.a(0));return e}return d(e,t),Object.defineProperty(e.prototype,"url",{get:function(){return this.uniformResourceLocator},set:function(t){if(0===t.length)throw new Error("ArgumentException : Url - string can not be empty");this.uniformResourceLocator=t},enumerable:!0,configurable:!0}),e.prototype.draw=function(t,e){if(t instanceof r.a){var i=new a.a,o=this.font.style;if(e instanceof n.a){this.recalculateBounds=!0,this.font.style=h.a.Underline;var u=i.layout(this.value,this.font,this.stringFormat,new n.b(t.graphics.clientSize.width-e.x,0),!0,t.graphics.clientSize);if(1===u.lines.length){var l=this.font.measureString(this.value),c=new n.c(e,l);c=this.calculateBounds(c,l.width,t.graphics.clientSize.width,e.x),this.uriAnnotation=new s.a(c,this.url),this.uriAnnotation.dictionary.items.setValue("Border",this.defaultBorder),t.annotations.add(this.uriAnnotation);var d=this.drawText(t,e);return this.font.style=o,d}var d=this.drawMultipleLineWithPoint(u,t,e);return this.font.style=o,d}var u=i.layout(this.value,this.font,this.stringFormat,new n.b(e.width,0),!1,new n.b(0,0));if(this.font.style=h.a.Underline,1===u.lines.length){var l=this.font.measureString(this.value),c=new n.c(new n.a(e.x,e.y),l);c=this.calculateBounds(c,l.width,e.width,e.x),this.uriAnnotation=new s.a(c,this.url),this.uriAnnotation.dictionary.items.setValue("Border",this.defaultBorder),t.annotations.add(this.uriAnnotation);var f=this.drawText(t,e);return this.font.style=o,f}var f=this.drawMultipleLineWithBounds(u,t,e);return this.font.style=o,f}var p=new r.a;return p=t.page,this.draw(p,e)},e.prototype.drawMultipleLineWithPoint=function(t,e,i){for(var r,o=0;o<t.layoutLines.length;o++){var a=this.font.measureString(t.lines[o].text),h=new n.c(i,a);if(0!==o&&(h.x=0),this.text=t.lines[o].text,h.y+a.height>e.graphics.clientSize.height){if(0===o)break;e=e.graphics.getNextPage(),h=new n.c(0,0,e.graphics.clientSize.width,a.height),i.y=0}h=this.calculateBounds(h,a.width,e.graphics.clientSize.width,h.x),this.uriAnnotation=new s.a(h,this.url),this.uriAnnotation.dictionary.items.setValue("Border",this.defaultBorder),e.annotations.add(this.uriAnnotation),r=0!==o?this.drawText(e,new n.a(0,h.y)):this.drawText(e,h.x,h.y),i.y+=a.height}return r},e.prototype.drawMultipleLineWithBounds=function(t,e,i){for(var r,o=0;o<t.layoutLines.length;o++){var a=this.font.measureString(t.lines[o].text),h=new n.c(new n.a(i.x,i.y),a);if(h=this.calculateBounds(h,a.width,i.width,i.x),this.text=t.lines[o].text,i.y+a.height>e.graphics.clientSize.height){if(0===o)break;e=e.graphics.getNextPage(),i=new n.c(i.x,0,i.width,a.height),h.y=0}this.uriAnnotation=new s.a(h,this.url),this.uriAnnotation.dictionary.items.setValue("Border",this.defaultBorder),e.annotations.add(this.uriAnnotation),r=this.drawText(e,i),i.y+=a.height}return r},e.prototype.calculateBounds=function(t,e,i,r){return null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===u.c.Center?(t.x=r+(i-e)/2,t.width=e):null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===u.c.Right?(t.x=r+(i-e),t.width=e):null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===u.c.Justify?(t.x=r,t.width=i):(t.width=r,t.width=e),t},e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var r=i(4),n=i(1),o=i(3),s=i(8),a=i(69),h=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=function(t){function e(){var e=t.call(this)||this;return e.sections=null,e.tempDictionaryProperties=new n.a,e.items.setValue((new n.a).type,new o.a("Catalog")),e}return h(e,t),Object.defineProperty(e.prototype,"pages",{get:function(){return this.sections},set:function(t){t.element;this.sections=t,this.items.setValue(this.tempDictionaryProperties.pages,new s.b(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewerPreferences",{get:function(){return null!==this._viewerPreferences&&void 0!==this._viewerPreferences||(this._viewerPreferences=new a.a(this),this.items.setValue(this.tempDictionaryProperties.viewerPreferences,new s.b(this._viewerPreferences.element))),this._viewerPreferences},enumerable:!0,configurable:!0}),e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(19),n=function(){function t(){}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftTemplate},set:function(t){this.leftTemplate=this.checkElement(t,r.f.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topTemplate},set:function(t){this.topTemplate=this.checkElement(t,r.f.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightTemplate},set:function(t){this.rightTemplate=this.checkElement(t,r.f.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomTemplate},set:function(t){this.bottomTemplate=this.checkElement(t,r.f.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenLeft",{get:function(){return this.evenLeft},set:function(t){this.evenLeft=this.checkElement(t,r.f.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenTop",{get:function(){return this.evenTop},set:function(t){this.evenTop=this.checkElement(t,r.f.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenRight",{get:function(){return this.evenRight},set:function(t){this.evenRight=this.checkElement(t,r.f.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenBottom",{get:function(){return this.evenBottom},set:function(t){this.evenBottom=this.checkElement(t,r.f.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddLeft",{get:function(){return this.oddLeft},set:function(t){this.oddLeft=this.checkElement(t,r.f.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddTop",{get:function(){return this.oddTop},set:function(t){this.oddTop=this.checkElement(t,r.f.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddRight",{get:function(){return this.oddRight},set:function(t){this.oddRight=this.checkElement(t,r.f.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddBottom",{get:function(){return this.oddBottom},set:function(t){this.oddBottom=this.checkElement(t,r.f.Bottom)},enumerable:!0,configurable:!0}),t.prototype.getLeft=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenLeft?this.EvenLeft:this.left:null!=this.OddLeft?this.OddLeft:this.left},t.prototype.getTop=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenTop?this.EvenTop:this.top:null!=this.OddTop?this.OddTop:this.top},t.prototype.getRight=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenRight?this.EvenRight:this.right:null!=this.OddRight?this.OddRight:this.right},t.prototype.getBottom=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenBottom?this.EvenBottom:this.bottom:null!=this.OddBottom?this.OddBottom:this.bottom},t.prototype.isEven=function(t){var e=t.section.document.pages;return(e.pageCollectionIndex.containsKey(t)?e.pageCollectionIndex.getValue(t)+1:e.indexOf(t)+1)%2==0},t.prototype.checkElement=function(t,e){if(null!=t){if(void 0!==t.type&&t.type!==r.f.None)throw new Error("NotSupportedException:Can not reassign the template element. Please, create new one.");t.type=e}return t},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return f});var r=i(24),n=i(11),o=i(0),s=i(1),a=i(6),h=i(5),u=i(40),l=i(13),c=i(25),d=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f=function(t){function e(e,i){var r=t.call(this)||this;r.mStroking=!1,r.mLocation=new o.a(0,0),r.mDictionaryProperties=new s.a;var n=null;return e instanceof o.d?n=e:e instanceof o.b&&(n=new o.d(0,0,e.width,e.height)),null!==i&&i instanceof c.a&&(r.mPage=i),r.brushStream=new l.a,r.mResources=new u.a,r.brushStream.items.setValue(r.mDictionaryProperties.resources,r.mResources),r.setBox(n),r.setObligatoryFields(),null!==i&&i instanceof c.a&&(r.mPage=i,r.graphics.colorSpace=i.document.colorSpace),r}return d(e,t),e.prototype.initialize=function(t,e,i,r){this.mPage=e,this.mLocation=i,this.mTransformationMatrix=r,this.tempBrushStream=this.brushStream,this.brushStream=new l.a;var n=new u.a;return this.brushStream.items.setValue(this.mDictionaryProperties.resources,n),this.setBox(t),this.setObligatoryFields(),this},Object.defineProperty(e.prototype,"location",{get:function(){return this.mLocation},set:function(t){this.mLocation=t},enumerable:!0,configurable:!0}),e.prototype.setObligatoryFields=function(){if(this.brushStream.items.setValue(this.mDictionaryProperties.patternType,new h.a(1)),this.brushStream.items.setValue(this.mDictionaryProperties.paintType,new h.a(1)),this.brushStream.items.setValue(this.mDictionaryProperties.tilingType,new h.a(1)),this.brushStream.items.setValue(this.mDictionaryProperties.xStep,new h.a(this.mBox.right-this.mBox.left)),this.brushStream.items.setValue(this.mDictionaryProperties.yStep,new h.a(this.mBox.bottom-this.mBox.top)),null!=this.mPage&&null!=this.mLocation)if(null==this.mTransformationMatrix&&void 0===this.mTransformationMatrix){var t=this.mPage.size.height%this.rectangle.size.height-this.mLocation.y;this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new a.a([1,0,0,1,this.mLocation.x,t]))}else{var t=0,e=this.mTransformationMatrix.matrix.elements;t=this.mPage.size.height>this.rectangle.size.height?this.mTransformationMatrix.matrix.offsetY-this.mPage.size.height%this.rectangle.size.height:this.mPage.size.height%this.rectangle.size.height+this.mTransformationMatrix.matrix.offsetY,this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new a.a([e[0],e[1],e[2],e[3],e[4],t]))}},e.prototype.setBox=function(t){this.mBox=t;var e=new o.c(this.mBox.left,this.mBox.top,this.mBox.right,this.mBox.bottom);this.brushStream.items.setValue(this.mDictionaryProperties.bBox,a.a.fromRectangle(e))},Object.defineProperty(e.prototype,"rectangle",{get:function(){return this.mBox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.mBox.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){if(null==this.mGraphics&&void 0===this.mGraphics){var t=new r.b(this),e=new r.a(this.size,t,this.brushStream);this.mGraphics=e,this.mResources=this.getResources(),this.mGraphics.initializeCoordinates()}return this.mGraphics},enumerable:!0,configurable:!0}),e.prototype.getResources=function(){return this.mResources},Object.defineProperty(e.prototype,"stroking",{get:function(){return this.mStroking},set:function(t){this.mStroking=t},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var t=this.initialize(this.rectangle,this.mPage,this.location,this.mTransformationMatrix);return null!=this.mTransformationMatrix&&null!=this.mTransformationMatrix.matrix&&t.brushStream.items.setValue(this.mDictionaryProperties.matrix,new a.a(this.mTransformationMatrix.matrix.elements)),t.brushStream.data=this.tempBrushStream.data,t.mResources=new u.a(this.mResources),t.brushStream.items.setValue(this.mDictionaryProperties.resources,t.mResources),t},e.prototype.monitorChanges=function(t,i,r,n,o){var s=!1;if(t!==this){i.setColorSpace("Pattern",this.mStroking);var a=r.getResources(),h=a.getName(this);i.setColourWithPattern(null,h,this.mStroking),s=!0}else if(t instanceof e){i.setColorSpace("Pattern",this.mStroking);var u=r.getResources(),l=u.getName(this);i.setColourWithPattern(null,l,this.mStroking),s=!0}return s},e.prototype.resetChanges=function(t){},Object.defineProperty(e.prototype,"element",{get:function(){return this.brushStream},enumerable:!0,configurable:!0}),e}(n.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(17),n=i(81),o=i(2),s=i(80),a=function(){function t(){this.openBracket="(",this.closeBracket=")"}return t.prototype.layout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");var o=[];return e.Unicode?o=this.customLayout(t,i,n,e,r):(o=[],o[0]=t),o},t.prototype.splitLayout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");return this.customSplitLayout(t,e,i,r,n)},t.prototype.getGlyphIndex=function(t,e,i,r,o){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");if(r=null,0===t.length)return{success:!1,glyphs:r};var s=new n.a,a=s.shape(t,0),h=e.fontInternal,u=h.ttfReader;r=new Uint16Array(a.length);for(var l=0,c=0,d=a.length;c<d;c++){var f=a[c],p=u.getGlyph(f);null!==p&&void 0!==p&&(r[l++]=p.index)}return{success:!0,glyphs:r}},t.prototype.customLayout=function(t,e,i,r,a){if(null===a||void 0===a){if(null==t)throw new Error("ArgumentNullException : line");var h=null;if(null!==i&&void 0!==i&&i.textDirection!==o.m.None){h=(new s.a).getLogicalToVisualString(t,e)}return h}if(null==t)throw new Error("ArgumentNullException : line");if(null==r)throw new Error("ArgumentNullException : font");var u=null;if(null!==i&&void 0!==i&&i.textDirection!==o.m.None){var l=new n.a,c=l.shape(t,0);u=this.customLayout(c,e,i)}var h=[];if(a){for(var d=u.split(""),f=d.length,p=0;p<f;p++)d[p]=this.addChars(r,d[p]);h=d}else h=[],h[0]=this.addChars(r,u);return h},t.prototype.addChars=function(t,e){var i=e;if(null==t)throw new Error("ArgumentNullException : font");if(null==i)throw new Error("ArgumentNullException : line");var n=i,o=t.fontInternal,s=o.ttfReader;t.setSymbols(n),n=s.convertString(n);var a=r.b.toUnicodeArray(n,!1);return n=r.b.byteToString(a)},t.prototype.customSplitLayout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");return this.customLayout(t,i,n).split("")},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return c});var r,n=i(38),o=i(13),s=i(1),a=i(3),h=i(5),u=i(33),l=i(4);!function(t){t[t.Unknown=0]="Unknown",t[t.Bmp=1]="Bmp",t[t.Emf=2]="Emf",t[t.Gif=3]="Gif",t[t.Jpeg=4]="Jpeg",t[t.Png=5]="Png",t[t.Wmf=6]="Wmf",t[t.Icon=7]="Icon"}(r||(r={}));var c=function(){function t(t){this.sof1Marker=193,this.sof2Marker=194,this.sof3Marker=195,this.sof5Marker=197,this.sof6Marker=198,this.sof7Marker=199,this.sof9Marker=201,this.sof10Marker=202,this.sof11Marker=203,this.sof13Marker=205,this.sof14Marker=206,this.sof15Marker=207,this.mFormat=r.Unknown,this.mbitsPerComponent=8,this.dictionaryProperties=new s.a,this.mStream=t,this.initialize()}return Object.defineProperty(t.prototype,"height",{get:function(){return this.mHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.mWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bitsPerComponent",{get:function(){return this.mbitsPerComponent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.mImageData.count},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageData",{get:function(){return this.mImageData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageDataAsNumberArray",{get:function(){return this.mImageData.internalBuffer.buffer},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){if(this.mFormat!==r.Unknown||!this.checkIfJpeg())throw new TypeError("Only the JPEG format is supported");this.mFormat=r.Jpeg,this.parseJpegImage(),this.reset(),this.mImageData=new n.a(this.mStream.count),this.mStream.read(this.mImageData,0,this.mImageData.count)},t.prototype.reset=function(){this.mStream.position=0},t.prototype.parseJpegImage=function(){this.reset();var t=new n.a(this.mStream.count);this.mStream.read(t,0,t.count);for(var e=4,i=!1,r=256*t.getBuffer(e)+t.getBuffer(e+1);e<t.count;){if(!((e+=r)<t.count)){i=!0;break}if(192===t.getBuffer(e+1))return this.mHeight=256*t.getBuffer(e+5)+t.getBuffer(e+6),void(this.mWidth=256*t.getBuffer(e+7)+t.getBuffer(e+8));e+=2,r=256*t.getBuffer(e)+t.getBuffer(e+1)}i&&(this.mStream.position=0,this.skip(this.mStream,2),this.readExceededJPGImage(this.mStream))},Object.defineProperty(t.prototype,"format",{get:function(){return this.mFormat},enumerable:!0,configurable:!0}),t.prototype.checkIfJpeg=function(){this.reset();for(var e=0;e<t.mJpegHeader.length;e++){if(t.mJpegHeader[e]!==this.mStream.readByte(e))return!1;this.mStream.position++}return!0},t.prototype.getImageDictionary=function(){if(this.mFormat===r.Jpeg){this.imageData.internalBuffer.length;this.imageStream=new o.a,this.imageStream.isResource=!0;for(var t="",e="",i=0;i<this.imageDataAsNumberArray.byteLength;i++)t+=String.fromCharCode(null,this.mStream.readByte(i));for(var i=0;i<t.length;i++)i%2!=0&&(e+=t[i]);return this.imageStream.data=[e],this.imageStream.compress=!1,this.imageStream.items.setValue(this.dictionaryProperties.type,new a.a(this.dictionaryProperties.xObject)),this.imageStream.items.setValue(this.dictionaryProperties.subtype,new a.a(this.dictionaryProperties.image)),this.imageStream.items.setValue(this.dictionaryProperties.width,new h.a(this.width)),this.imageStream.items.setValue(this.dictionaryProperties.height,new h.a(this.height)),this.imageStream.items.setValue(this.dictionaryProperties.bitsPerComponent,new h.a(this.bitsPerComponent)),this.imageStream.items.setValue(this.dictionaryProperties.filter,new a.a(this.dictionaryProperties.dctdecode)),this.imageStream.items.setValue(this.dictionaryProperties.colorSpace,new a.a(this.getColorSpace())),this.imageStream.items.setValue(this.dictionaryProperties.decodeParms,this.getDecodeParams()),this.imageStream}return this.imageStream},t.prototype.getColorSpace=function(){return this.dictionaryProperties.deviceRgb},t.prototype.getDecodeParams=function(){var t=new l.a;return t.items.setValue(this.dictionaryProperties.columns,new h.a(this.width)),t.items.setValue(this.dictionaryProperties.blackIs1,new u.a(!0)),t.items.setValue(this.dictionaryProperties.k,new h.a(-1)),t.items.setValue(this.dictionaryProperties.predictor,new h.a(15)),t.items.setValue(this.dictionaryProperties.bitsPerComponent,new h.a(this.bitsPerComponent)),t},t.prototype.readExceededJPGImage=function(t){this.mStream=t;for(var e=!0;e;){switch(this.getMarker(t)){case this.sof1Marker:case this.sof2Marker:case this.sof3Marker:case this.sof5Marker:case this.sof6Marker:case this.sof7Marker:case this.sof9Marker:case this.sof10Marker:case this.sof11Marker:case this.sof13Marker:case this.sof14Marker:case this.sof15Marker:t.position+=3,this.mHeight=this.mStream.readNextTwoBytes(t),this.mWidth=this.mStream.readNextTwoBytes(t),e=!1;break;default:this.skipStream(t)}}},t.prototype.skip=function(t,e){this.mStream=t;var i=new n.a(e);this.mStream.read(i,0,i.count)},t.prototype.getMarker=function(t){var e=0,i=32;for(i=t.readByte(this.mStream.position),t.position++;255!==i;)e++,i=t.readByte(this.mStream.position),t.position++;do{i=t.readByte(this.mStream.position),t.position++}while(255===i);return i},t.prototype.skipStream=function(t){var e=this.mStream.readNextTwoBytes(t)-2;e>0&&(t.position+=e)},t.mPngHeader=[137,80,78,71,13,10,26,10],t.mJpegHeader=[255,216],t.GIF_HEADER="G,I,F,8",t.BMP_HEADER="B,M",t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(4),n=i(5),o=i(3),s=i(1),a=function(){function t(t,e,i){this.dictionary=new r.a,this.dictionaryProperties=new s.a,this.dictionary.items.setValue(this.dictionaryProperties.CA,new n.a(t)),this.dictionary.items.setValue(this.dictionaryProperties.ca,new n.a(e)),this.dictionary.items.setValue(this.dictionaryProperties.BM,new o.a(i.toString()))}return Object.defineProperty(t.prototype,"element",{get:function(){return this.dictionary},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r;!function(t){t[t.None=0]="None",t[t.Registered=1]="Registered"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return f}),i.d(e,"b",function(){return p});var r=i(50),n=i(4),o=i(1),s=i(16),a=i(10),h=i(8),u=i(84),l=i(13),c=i(5),d=i(44),f=function(){function t(){this.objects=new a.a,this.maxGenNumIndex=0,this.objectCount=0,this.dictionaryProperties=new o.a}return Object.defineProperty(t.prototype,"isMerging",{get:function(){return this.merging},set:function(t){this.merging=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailer",{get:function(){return null==this.internalTrailer&&(this.internalTrailer=new l.a),this.internalTrailer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t,this.items=this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pdfObjects",{get:function(){return this.items},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollection",{get:function(){return this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.objectCount},set:function(t){this.objectCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextObjNumber",{get:function(){return this.count=this.count+1,this.count},enumerable:!0,configurable:!0}),t.prototype.save=function(t,e){this.saveHead(t);this.mappedReferences=null,this.objects.clear(),this.markTrailerReferences(),this.saveObjects(t);var i=this.count,r=t.position;this.registerObject(0,new h.a(0,-1),!0);t.write(s.a.xref),t.write(s.a.newLine),this.saveSections(t),this.saveTrailer(t,this.count,0),this.saveTheEndess(t,r),this.count=i;for(var n=0;n<this.objectCollection.count;++n){this.objectCollection.items(n).object.isSaving=!1}if(void 0===e)return t.stream.buffer;t.stream.save(e)},t.prototype.saveTheEndess=function(t,e){t.write(s.a.newLine+s.a.startxref+s.a.newLine),t.write(e.toString()+s.a.newLine),t.write(s.a.eof+s.a.newLine)},t.prototype.saveTrailer=function(t,e,i){t.write(s.a.trailer+s.a.newLine);var r=this.trailer;r.items.setValue(this.dictionaryProperties.size,new c.a(this.objectCount+1)),r=new n.a(r),r.setEncrypt(!1),r.save(t)},t.prototype.saveSections=function(t){var e=0,i=0;do{i=this.prepareSubsection(e),this.saveSubsection(t,e,i),e+=i}while(0!==i)},t.prototype.saveSubsection=function(t,e,i){if(!(i<=0||e>=this.count)){t.write(e+" "+(i+1)+s.a.newLine);for(var r=e;r<=e+i;++r){var n=this.objects.getValue(r),o="";o=n.type===u.a.Free?this.getItem(n.offset,65535,!0):this.getItem(n.offset,n.generation,!1),t.write(o)}}},t.prototype.getItem=function(t,e,i){var r="",n=10-t.toString().length;e<=0&&(e=0);for(var o=5-e.toString().length<=0?0:5-e.toString().length,a=0;a<n;a++)r+="0";r=r+t.toString()+" ";for(var a=0;a<o;a++)r+="0";return r=r+e.toString()+" ",r=r+(i?s.a.f:s.a.n)+s.a.newLine},t.prototype.prepareSubsection=function(t){for(var e,i=0,r=this.count,n=0;n<this.document.pdfObjects.count;n++){var o=this.document.pdfObjects.items(n).reference,s=o.toString();s.split(" ")}if(t>=r)return i;for(e=t;e<r;++e)break;for(t=e;e<r;++e)++i;return i},t.prototype.markTrailerReferences=function(){this.trailer.items.keys(),this.trailer.items.values()},t.prototype.saveHead=function(t){var e=this.generateFileVersion(t.document);t.write("%PDF-"+e),t.write(s.a.newLine)},t.prototype.generateFileVersion=function(t){return"1."+4..toString()},t.prototype.getReference=function(t,e){if(void 0===e){return this.getReference(t,!1)}return this.getSubReference(t,e)},t.prototype.getSubReference=function(t,e){var i,n=!1,o=null;if(this.items.count>0&&t.objectCollectionIndex>0&&this.items.count>t.objectCollectionIndex-1){var s=this.document.pdfObjects.getReference(t,i);o=s.reference,i=s.wasNew}if(i=null==o&&t.status!==r.a.Registered,null==o){var a=this.nextObjNumber;o=new h.a(a,0);if(i){this.document.pdfObjects.add(t),this.document.pdfObjects.trySetReference(t,o,void 0);var u=this.document.pdfObjects.count-1,l=this.document.pdfObjects.objectCollections[u].reference.objNumber,c=this.document.pdfObjects.objectCollections[this.document.pdfObjects.count-1];this.document.pdfObjects.mainObjectCollection.setValue(l,c),t.position=-1}else this.document.pdfObjects.trySetReference(t,o,void 0);t.objectCollectionIndex=o.objNumber,t.status=r.a.None,n=!0}return n||this.bForceNew,o},t.prototype.saveObjects=function(t){for(var e=this.objectCollection,i=0;i<e.count;++i){var r=e.items(i),n=r.object;n.isSaving=!0,this.saveIndirectObject(n,t)}},t.prototype.saveIndirectObject=function(t,e){var i=this.getReference(t);t instanceof d.a&&this.trailer.items.setValue(this.dictionaryProperties.root,i),this.pdfDocument.currentSavingObj=i;var r=!1;r=t.getArchive();t instanceof l.a||!r||d.a;this.registerObject(e.position,i),this.doSaveObject(t,i,e)},t.prototype.doSaveObject=function(t,e,i){i.length;i.write(e.objNumber.toString()),i.write(s.a.whiteSpace),i.write(e.genNumber.toString()),i.write(s.a.whiteSpace),i.write(s.a.obj),i.write(s.a.newLine),t.save(i);i.stream;i.write(s.a.endObj),i.write(s.a.newLine)},t.prototype.registerObject=function(t,e,i){"boolean"==typeof i?(this.objects.setValue(e.objNumber,new p(t,e,i)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,e.genNumber)):void 0===i&&(this.objects.setValue(e.objNumber,new p(t,e)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,e.genNumber))},t.dereference=function(t){var e=t;return null!=e&&(t=e.object),t},t}(),p=function(){function t(t,e,i){var r=t;this.offsetNumber=r;var n=e;this.generation=n.genNumber,this.object=n.objNumber,this.type=void 0===i?u.a.Normal:u.a.Free}return Object.defineProperty(t.prototype,"objectNumber",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offset",{get:function(){return this.offsetNumber},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(6),n=i(53),o=i(1),s=i(40),a=function(){function t(t){this.defLayerIndex=-1,this.modified=!1,this.dictionaryProperties=new o.a,this.pageDictionary=t}return Object.defineProperty(t.prototype,"section",{get:function(){return this.pdfSection},set:function(t){this.pdfSection=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultLayer",{get:function(){var t=this.layers,e=this.defaultLayerIndex;return t.items(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultLayerIndex",{get:function(){if(0===this.layerCollection.count||-1===this.defLayerIndex){var t=this.layerCollection.add();this.defLayerIndex=this.layerCollection.indexOf(t)}return this.defLayerIndex},set:function(t){if(t<0||t>this.layers.count-1)throw new Error("ArgumentOutOfRangeException : value, Index can not be less 0 and greater Layers.Count - 1");this.defLayerIndex=t,this.modified=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layers",{get:function(){return null!=this.layerCollection&&void 0!==this.layerCollection||(this.layerCollection=new n.a(this)),this.layerCollection},enumerable:!0,configurable:!0}),t.prototype.getResources=function(){return null==this.resources&&(this.resources=new s.a,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},Object.defineProperty(t.prototype,"contents",{get:function(){var t=this.pageDictionary.items.getValue(this.dictionaryProperties.contents),e=t;return null==e&&(e=new r.a,this.pageDictionary.items.setValue(this.dictionaryProperties.contents,e)),e},enumerable:!0,configurable:!0}),t.prototype.setResources=function(t){this.resources=t,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources),this.modified=!0},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return l});var r=i(52),n=i(4),o=i(54),s=i(74),a=i(8),h=i(13),u=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=function(t){function e(e){var i=t.call(this)||this;if(i.parentLayerCount=0,i.sublayer=!1,i.optionalContent=new n.a,e instanceof r.a){i.page=e;var o=e;i.parseLayers(o)}return i}return u(e,t),e.prototype.items=function(t,e){if("number"==typeof t&&void 0===e){return this.list[t]}if(null==e)throw new Error("ArgumentNullException: layer");if(e.page!==this.page)throw new Error("ArgumentException: The layer belongs to another page")},e.prototype.add=function(t,e){if(void 0===t){var i=new o.a(this.page);return i.name="",this.add(i),i}if(t instanceof o.a){var r=this.list.push(t);return this.addLayer(r,t),r}return 0},e.prototype.addLayer=function(t,e){var i=new a.b(e);this.page.contents.add(i)},e.prototype.insert=function(t,e){for(var i=[],r=this.list.length,n=t;n<r;n++)i.push(this.list.pop());this.list.push(e);for(var n=0;n<i.length;n++)this.list.push(i[n]);this.insertLayer(t,e)},e.prototype.insertLayer=function(t,e){if(null==e)throw new Error("ArgumentNullException:layer");var i=new a.b(e);this.page.contents.insert(t,i)},e.prototype.parseLayers=function(t){var e=this.page.contents;this.page.getResources();t.crossTable;var i=new h.a,r=new h.a,n=[];n.push("q"),i.data=n,e.insert(0,new a.b(i)),n=[],n.push("Q"),r.data=n,e.insert(e.count,new a.b(r))},e.prototype.indexOf=function(t){if(null==t)throw new Error("ArgumentNullException: layer");return this.list.indexOf(t)},e}(s.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(13),n=i(24),o=i(53),s=i(1),a=i(2),h=function(){function t(t,e){if(this.pdfColorSpace=a.i.Rgb,this.isVisible=!0,this.sublayer=!1,this.contentLength=0,this.dictionaryProperties=new s.a,null===t)throw new Error("ArgumentNullException:page");if(this.pdfPage=t,this.clipPageTemplates=!0,void 0===e)this.content=new r.a;else if(e instanceof r.a||null===e){if(null===e)throw new Error("ArgumentNullException:stream");this.content=e}else this.content=new r.a,this.clipPageTemplates=e}return Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(t){this.pdfColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layerId",{get:function(){return this.layerid},set:function(t){this.layerid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.layerName},set:function(t){this.layerName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.isVisible},set:function(t){this.isVisible=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){return null==this.pdfGraphics&&this.initializeGraphics(this.page),this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layers",{get:function(){return null==this.layer?(this.layer=new o.a(this.page),this.layer.sublayer=!0,this.layer):this.layer},enumerable:!0,configurable:!0}),t.prototype.add=function(){var e=new t(this.pdfPage);return e.name="",e},t.prototype.sign=function(t){return 0===t?0:t>0?1:-1},t.prototype.initializeGraphics=function(t){var e=t,i=new n.b(this.page);if(this.pdfGraphics=new n.a(t.size,i,this.content),this.pdfGraphics.mediaBoxUpperRightBound=0,null!=e){var r=e.section.parent;null!=r&&(this.pdfGraphics.colorSpace=r.document.colorSpace,this.colorSpace=r.document.colorSpace)}var o=this.sign(t.origin.y)===this.sign(t.origin.x);(t.origin.x>=0&&t.origin.y>=0||!o)&&this.pdfGraphics.initializeCoordinates();var s=e.section.getActualBounds(e,!0),a=e.section.pageSettings.margins;this.clipPageTemplates?t.origin.x>=0&&t.origin.y>=0&&this.pdfGraphics.clipTranslateMargins(s):this.graphics.clipTranslateMargins(s.x,s.y,a.left,a.top,a.right,a.bottom),this.pdfGraphics.setLayer(this)},Object.defineProperty(t.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return c});var r=i(5),n=i(3),o=i(6),s=i(4),a=i(8),h=i(0),u=i(94),l=i(1),c=function(){function t(t){this.sections=[],this.dictionaryProperties=new l.a,this.pdfDocument=t.clone(),this.initialize()}return Object.defineProperty(t.prototype,"section",{get:function(){return this.sections},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.sections.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pages},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.sectionCount=new r.a(0),this.sectionCollection=new o.a,this.pages=new s.a,this.pages.beginSave=new s.b(this),this.pages.items.setValue(this.dictionaryProperties.type,new n.a("Pages")),this.pages.items.setValue(this.dictionaryProperties.kids,this.sectionCollection),this.pages.items.setValue(this.dictionaryProperties.count,this.sectionCount),this.pages.items.setValue(this.dictionaryProperties.resources,new s.a),this.setPageSettings(this.pages,this.pdfDocument.pageSettings)},t.prototype.pdfSectionCollection=function(t){if(t<0||t>=this.count)throw new Error("IndexOutOfRangeException()");return this.sections[t]},t.prototype.setPageSettings=function(t,e){var i=new h.c(new h.a,e.size);t.items.setValue(this.dictionaryProperties.mediaBox,o.a.fromRectangle(i))},t.prototype.add=function(t){if(void 0===t){var e=new u.a(this.pdfDocument);return this.add(e),e}var i=this.checkSection(t);return this.sections.push(t),t.parent=this,this.sectionCollection.add(i),this.sections.indexOf(t)},t.prototype.checkSection=function(t){var e=new a.b(t);this.sectionCollection.contains(e);return e},t.prototype.countPages=function(){var t=0;return this.sections.forEach(function(e){return t+=e.count}),t},t.prototype.beginSave=function(){this.sectionCount.intValue=this.countPages()},t.rotateFactor=90,t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return w}),i.d(e,"b",function(){return v});var r=i(57),n=i(31),o=i(14),s=i(20),a=i(23),h=i(0),u=i(2),l=i(58),c=i(18),d=i(9),f=i(29),p=i(39),g=i(43),m=i(21),y=i(41),b=i(12),w=function(){function t(t){this.cellWidth=0,this.cellHeight=0,this.tempval=0,this.fontSpilt=!1,this.finsh=!0,this.rowSpanRemainingHeight=0,this.hasRowSpan=!1,this.hasColSpan=!1,this.isFinish=!0,this.present=!1,this.gridRowSpan=1,this.colSpan=1,void 0!==t&&(this.gridRow=t)}return Object.defineProperty(t.prototype,"isCellMergeContinue",{get:function(){return this.internalIsCellMergeContinue},set:function(t){this.internalIsCellMergeContinue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRowMergeContinue",{get:function(){return this.internalIsRowMergeContinue},set:function(t){this.internalIsRowMergeContinue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCellMergeStart",{get:function(){return this.internalIsCellMergeStart},set:function(t){this.internalIsCellMergeStart=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRowMergeStart",{get:function(){return this.internalIsRowMergeStart},set:function(t){this.internalIsRowMergeStart=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"remainingString",{get:function(){return this.remaining},set:function(t){this.remaining=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"FinishedDrawingCell",{get:function(){return this.isFinish},set:function(t){this.isFinish=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stringFormat",{get:function(){return null==this.format&&(this.format=new a.a),this.format},set:function(t){this.format=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.gridRow},set:function(t){this.gridRow=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.objectValue},set:function(t){if(this.objectValue=t,this.objectValue instanceof r.a){this.row.grid.isSingleGrid=!1;this.objectValue.ParentCell=this,this.objectValue.isChildGrid=!0;for(var e=this.row.grid.rows.count,i=0;i<e;i++)for(var n=this.row.grid.rows.getRow(i),o=n.cells.count,s=0;s<o;s++){var a=n.cells.getCell(s);a.parent=this}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowSpan",{get:function(){return this.gridRowSpan},set:function(t){if(t<1)throw new Error("ArgumentException : Invalid span specified, must be greater than or equal to 1");this.gridRowSpan=t,this.row.rowSpanExists=!0,this.row.grid.hasRowSpanSpan=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return null==this.cellStyle&&(this.cellStyle=new n.c),this.cellStyle},set:function(t){this.cellStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return 0===this.cellHeight&&(this.cellHeight=this.measureHeight()),this.cellHeight},set:function(t){this.cellHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnSpan",{get:function(){return this.colSpan},set:function(t){if(t<1)throw Error("Invalid span specified, must be greater than or equal to 1");this.colSpan=t,this.row.columnSpanExists=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return(0===this.cellWidth||this.row.grid.isComplete)&&(this.cellWidth=this.measureWidth()),Math.round(this.cellWidth)},set:function(t){this.cellWidth=t},enumerable:!0,configurable:!0}),t.prototype.measureWidth=function(){var t=0,e=new o.a;if("string"==typeof this.objectValue){t+=e.layout(this.objectValue,this.getTextFont(),this.stringFormat,new h.b(Number.MAX_VALUE,Number.MAX_VALUE),!1,new h.b(0,0)).actualSize.width,t+=2*(this.style.borders.left.width+this.style.borders.right.width)}else if(this.objectValue instanceof r.a)t=this.objectValue.size.width;else if(this.objectValue instanceof f.a||this.objectValue instanceof p.a)t+=this.objectValue.width;else if(this.objectValue instanceof g.a){var i=this.objectValue,n=e.layout(i.text,i.font,i.stringFormat,new h.b(0,0),!1,new h.b(0,0));t+=n.actualSize.width,t+=2*(this.style.borders.left.width+this.style.borders.right.width)}return this.objectValue instanceof r.a?null!=this.style.cellPadding||void 0!==this.style.cellPadding?(void 0!==this.style.cellPadding.left&&this.style.cellPadding.hasLeftPad&&(t+=this.style.cellPadding.left),void 0!==this.style.cellPadding.right&&this.style.cellPadding.hasRightPad&&(t+=this.style.cellPadding.right)):(void 0!==this.row.grid.style.cellPadding.left&&this.row.grid.style.cellPadding.hasLeftPad&&(t+=this.row.grid.style.cellPadding.left),void 0!==this.row.grid.style.cellPadding.right&&this.row.grid.style.cellPadding.hasRightPad&&(t+=this.row.grid.style.cellPadding.right)):null!=this.style.cellPadding?t+=this.style.cellPadding.left+this.style.cellPadding.right:t+=this.row.grid.style.cellPadding.left+this.row.grid.style.cellPadding.right,t+=this.row.grid.style.cellSpacing},t.prototype.drawCellBackground=function(t,e){var i=this.getBackgroundBrush();if(null!=i&&(t.save(),t.drawRectangle(i,e.x,e.y,e.width,e.height),t.restore()),null!=this.style.backgroundImage){this.getBackgroundImage();t.drawImage(this.style.backgroundImage,e.x,e.y,e.width,e.height)}},t.prototype.adjustContentLayoutArea=function(t){var e=new h.c(t.x,t.y,t.width,t.height);return this.objectValue instanceof r.a?(null==this.style.cellPadding||void 0===this.style.cellPadding?(void 0!==this.gridRow.grid.style.cellPadding.left&&this.gridRow.grid.style.cellPadding.hasLeftPad&&(e.x+=this.gridRow.grid.style.cellPadding.left+this.cellStyle.borders.left.width,e.width-=this.gridRow.grid.style.cellPadding.left),void 0!==this.gridRow.grid.style.cellPadding.top&&this.gridRow.grid.style.cellPadding.hasTopPad&&(e.y+=this.gridRow.grid.style.cellPadding.top+this.cellStyle.borders.top.width,e.height-=this.gridRow.grid.style.cellPadding.top),void 0!==this.gridRow.grid.style.cellPadding.right&&this.gridRow.grid.style.cellPadding.hasRightPad&&(e.width-=this.gridRow.grid.style.cellPadding.right),void 0!==this.gridRow.grid.style.cellPadding.bottom&&this.gridRow.grid.style.cellPadding.hasBottomPad&&(e.height-=this.gridRow.grid.style.cellPadding.bottom)):(void 0!==this.style.cellPadding.left&&this.style.cellPadding.hasLeftPad&&(e.x+=this.style.cellPadding.left+this.cellStyle.borders.left.width,e.width-=this.style.cellPadding.left),void 0!==this.style.cellPadding.top&&this.style.cellPadding.hasTopPad&&(e.y+=this.style.cellPadding.top+this.cellStyle.borders.top.width,e.height-=this.style.cellPadding.top),void 0!==this.style.cellPadding.right&&this.style.cellPadding.hasRightPad&&(e.width-=this.style.cellPadding.right),void 0!==this.style.cellPadding.bottom&&this.style.cellPadding.hasBottomPad&&(e.height-=this.style.cellPadding.bottom)),e.width-=this.cellStyle.borders.left.width+this.cellStyle.borders.right.width,e.height-=this.cellStyle.borders.top.width+this.cellStyle.borders.bottom.width):void 0===this.style.cellPadding||null==this.style.cellPadding?(e.x+=this.gridRow.grid.style.cellPadding.left+this.cellStyle.borders.left.width,e.y+=this.gridRow.grid.style.cellPadding.top+this.cellStyle.borders.top.width,e.width-=this.gridRow.grid.style.cellPadding.right+this.gridRow.grid.style.cellPadding.left,e.height-=this.gridRow.grid.style.cellPadding.bottom+this.gridRow.grid.style.cellPadding.top,e.height-=this.cellStyle.borders.top.width+this.cellStyle.borders.bottom.width):(e.x+=this.style.cellPadding.left+this.cellStyle.borders.left.width,e.y+=this.style.cellPadding.top+this.cellStyle.borders.top.width,e.width-=this.style.cellPadding.right+this.style.cellPadding.left,e.width-=this.cellStyle.borders.left.width+this.cellStyle.borders.right.width,e.height-=this.style.cellPadding.bottom+this.style.cellPadding.top,e.height-=this.cellStyle.borders.top.width+this.cellStyle.borders.bottom.width,1===this.rowSpan&&(e.width-=this.style.borders.left.width)),e},t.prototype.draw=function(t,e,i){var n=null;if(this.internalIsCellMergeContinue||this.internalIsRowMergeContinue){if(!this.internalIsCellMergeContinue||!this.row.grid.style.allowHorizontalOverflow)return n;if(this.row.rowOverflowIndex>0&&this.row.cells.indexOf(this)!=this.row.rowOverflowIndex+1||0==this.row.rowOverflowIndex&&this.internalIsCellMergeContinue)return n}e=this.adjustOuterLayoutArea(e,t),this.drawCellBackground(t,e);var o=this.getTextPen(),s=this.getTextBrush();void 0===o&&void 0===s&&(s=new c.a(new d.a(0,0,0)));var a=this.getTextFont(),u=this.getStringFormat(),l=e;if(l.height>=t.clientSize.height&&this.row.grid.allowRowBreakAcrossPages&&(l.height-=l.y,void 0!==this._rowHeight&&null!==this._rowHeight&&l.height>this._rowHeight&&(l.height=this._rowHeight)),l=this.adjustContentLayoutArea(l),"string"==typeof this.objectValue||"string"==typeof this.remaining){var w=void 0,v=void 0;if(v=l.height<a.height?new h.c(l.x,l.y,l.width,a.height):l,l.height<a.height&&this.row.grid.isChildGrid&&null!=this.row.grid.ParentCell){var S=v.height-this.row.grid.ParentCell.row.grid.style.cellPadding.bottom-this.row.grid.style.cellPadding.bottom;-1!=this.row.grid.splitChildRowIndex&&(this.fontSpilt=!0,this.row.rowFontSplit=!0),S>0&&S<a.height&&(v.height=S)}0!=this.gridRow.grid.style.cellSpacing&&(v.width-=this.gridRow.grid.style.cellSpacing,e.width-=this.gridRow.grid.style.cellSpacing),this.isFinish?(w=""===this.remaining?this.remaining:this.objectValue,t.drawString(w,a,o,s,v.x,v.y,v.width,v.height,u),-1==this.row.grid.splitChildRowIndex||this.row.grid.isChildGrid||void 0!==this.remaining||(this.remaining="")):(void 0!==this.remaining&&null!==this.remaining||(this.remaining=""),this.row.repeatFlag&&t.drawString(this.remaining,a,o,s,v.x,v.y,v.width,v.height,u),this.isFinish=!0),n=t.stringLayoutResult}else if(this.objectValue instanceof r.a){var P=this.objectValue;P.isChildGrid=!0,P.ParentCell=this;var C=void 0;C=l,0!=this.gridRow.grid.style.cellSpacing&&(e.width-=this.gridRow.grid.style.cellSpacing);var B=new y.a(P),O=new y.c;null!=this.row.grid.LayoutFormat?O=this.row.grid.LayoutFormat:O.layout=m.a.Paginate;var x=new b.c;if(null!=t.layer){x.page=t.page,x.bounds=C,x.format=O,P.setSpan(),P.checkSpan();var L=B.Layouter(x);this.value=P,-1!==this.row.grid.splitChildRowIndex&&(this.height=this.row.rowBreakHeightValue),x.page!=L.page&&(L.bounds.height=this.row.rowBreakHeightValue,0==this.row.rowBreakHeight?this.row.NestedGridLayoutResult=L:this.row.rowBreakHeight=this.row.rowBreakHeightValue)}}else if(this.objectValue instanceof f.a||this.objectValue instanceof p.a){var j=void 0;j=this.objectValue.width<=l.width?new h.c(l.x,l.y,this.objectValue.width,l.height):l,t.drawImage(this.objectValue,j.x,j.y,j.width,j.height)}else this.objectValue instanceof g.a?this.objectValue.draw(t.currentPage,l):void 0===this.objectValue&&(this.objectValue="",t.drawString(this.objectValue,a,o,s,l.x,l.y,l.width,l.height,u),null!=this.style.cellPadding&&0==this.style.cellPadding.bottom&&0==this.style.cellPadding.left&&0==this.style.cellPadding.right&&0==this.style.cellPadding.top&&(e.width-=this.style.borders.left.width+this.style.borders.right.width),0!=this.gridRow.grid.style.cellSpacing&&(e.width-=this.gridRow.grid.style.cellSpacing));return null!=this.style.borders&&(this.fontSpilt?-1!=this.row.grid.ParentCell.row.grid.splitChildRowIndex&&(this.row.rowFontSplit=!1,this.drawCellBorders(t,e)):this.drawCellBorders(t,e)),n},t.prototype.drawCellBorders=function(t,e){this.row.grid.style.borderOverlapStyle===l.a.Inside&&(e.x+=this.style.borders.left.width,e.y+=this.style.borders.top.width,e.width-=this.style.borders.right.width,e.height-=this.style.borders.bottom.width);var i=new h.a(e.x,e.y+e.height),r=new h.a(e.x,e.y),n=this.cellStyle.borders.left;this.cellStyle.borders.left.dashStyle===u.g.Solid&&(n.lineCap=u.f.Square),0!==n.width&&t.drawLine(n,i,r),i=new h.a(e.x+e.width,e.y),r=new h.a(e.x+e.width,e.y+e.height),n=this.cellStyle.borders.right,e.x+e.width>t.clientSize.width-n.width/2&&(i=new h.a(t.clientSize.width-n.width/2,e.y),r=new h.a(t.clientSize.width-n.width/2,e.y+e.height)),this.cellStyle.borders.right.dashStyle===u.g.Solid&&(n.lineCap=u.f.Square),0!==n.width&&t.drawLine(n,i,r),i=new h.a(e.x,e.y),r=new h.a(e.x+e.width,e.y),n=this.cellStyle.borders.top,this.cellStyle.borders.top.dashStyle===u.g.Solid&&(n.lineCap=u.f.Square),0!==n.width&&t.drawLine(n,i,r),i=new h.a(e.x+e.width,e.y+e.height),r=new h.a(e.x,e.y+e.height),n=this.cellStyle.borders.bottom,e.y+e.height>t.clientSize.height-n.width/2&&(i=new h.a(e.x+e.width,t.clientSize.height-n.width/2),r=new h.a(e.x,t.clientSize.height-n.width/2)),this.cellStyle.borders.bottom.dashStyle===u.g.Solid&&(n.lineCap=u.f.Square),0!==n.width&&t.drawLine(n,i,r)},t.prototype.adjustOuterLayoutArea=function(t,e){var i=!1,r=this.row.grid.style.cellSpacing;r>0&&(t=new h.c(t.x+r,t.y+r,t.width-r,t.height-r));var n=this.row.cells.indexOf(this);if(this.columnSpan>1||this.row.rowOverflowIndex>0&&n==this.row.rowOverflowIndex+1&&this.isCellMergeContinue){var o=this.columnSpan;if(1==o&&this.isCellMergeContinue)for(var s=n+1;s<this.row.grid.columns.count&&this.row.cells.getCell(s).isCellMergeContinue;s++)o++;for(var a=0,u=n;u<n+o;u++){if(this.row.grid.style.allowHorizontalOverflow){var l=this.row.grid.size.width<e.clientSize.width?this.row.grid.size.width:e.clientSize.width;if((this.row.grid.size.width>e.clientSize.width?t.x+a+this.row.grid.columns.getColumn(u).width:a+this.row.grid.columns.getColumn(u).width)>l)break}a+=this.row.grid.columns.getColumn(u).width}a-=this.row.grid.style.cellSpacing,t.width=a}if(this.rowSpan>1||this.row.rowSpanExists){var o=this.rowSpan,c=this.row.grid.rows.rowCollection.indexOf(this.row);-1==c&&-1!=(c=this.row.grid.headers.indexOf(this.row))&&(i=!0);for(var d=0,u=c;u<c+o;u++){d+=i?this.row.grid.headers.getHeader(u).height:this.row.grid.rows.getRow(u).height;var f=this.row.grid.rows.getRow(u);this.row.grid.rows.rowCollection.indexOf(f)}this.row.cells.indexOf(this);d-=this.row.grid.style.cellSpacing,t.height=d,this.row.rowMergeComplete||(t.height=d)}return t},t.prototype.getTextFont=function(){return void 0!==this.style.font&&null!=this.style.font?this.style.font:void 0!==this.row.style.font&&null!=this.row.style.font?this.row.style.font:void 0!==this.row.grid.style.font&&null!=this.row.grid.style.font?this.row.grid.style.font:s.a.defaultFont},t.prototype.getTextBrush=function(){return void 0!==this.style.textBrush&&null!=this.style.textBrush?this.style.textBrush:void 0!==this.row.style.textBrush&&null!=this.row.style.textBrush?this.row.style.textBrush:this.row.grid.style.textBrush},t.prototype.getTextPen=function(){return void 0!==this.style.textPen&&null!=this.style.textPen?this.style.textPen:void 0!==this.row.style.textPen&&null!=this.row.style.textPen?this.row.style.textPen:this.row.grid.style.textPen},t.prototype.getBackgroundBrush=function(){return void 0!==this.style.backgroundBrush&&null!=this.style.backgroundBrush?this.style.backgroundBrush:void 0!==this.row.style.backgroundBrush&&null!=this.row.style.backgroundBrush?this.row.style.backgroundBrush:this.row.grid.style.backgroundBrush},t.prototype.getBackgroundImage=function(){return void 0!==this.style.backgroundImage&&null!=this.style.backgroundImage?this.style.backgroundImage:void 0!==this.row.style.backgroundImage&&null!=this.row.style.backgroundImage?this.row.style.backgroundImage:this.row.grid.style.backgroundImage},t.prototype.getStringFormat=function(){return void 0!==this.style.stringFormat&&null!=this.style.stringFormat?this.style.stringFormat:this.stringFormat},t.prototype.measureHeight=function(){var t=this.calculateWidth();null==this.style.cellPadding||void 0===this.style.cellPadding?t-=this.gridRow.grid.style.cellPadding.right+this.gridRow.grid.style.cellPadding.left:(t-=this.style.cellPadding.right+this.style.cellPadding.left,t-=this.style.borders.left.width+this.style.borders.right.width);var e=0,i=new o.a;if("string"==typeof this.objectValue||"string"==typeof this.remaining){var n=this.objectValue;this.isFinish||(n=null!==this.remaining&&""!==this.remaining&&void 0!==this.remaining?this.remaining:this.objectValue);var s=null,a=this.row.cells.indexOf(this);0!=this.gridRow.grid.style.cellSpacing&&(t-=2*this.gridRow.grid.style.cellSpacing),this.row.cells.getCell(a).hasColSpan||this.row.cells.getCell(a).hasRowSpan||(this.gridRow.grid.isChildGrid?(t<0?(this.tempval=t,null==this.style.cellPadding||void 0===this.style.cellPadding?this.tempval+=this.gridRow.grid.style.cellPadding.right+this.gridRow.grid.style.cellPadding.left:(this.tempval+=this.style.cellPadding.right+this.style.cellPadding.left,this.tempval+=this.style.borders.left.width+this.style.borders.right.width)):this.tempval=t,s=i.layout(n,this.getTextFont(),this.stringFormat,new h.b(this.tempval,0),!1,new h.b(0,0)),e+=s.actualSize.height):(s=i.layout(n,this.getTextFont(),this.stringFormat,new h.b(t,0),!1,new h.b(0,0)),e+=s.actualSize.height)),e+=2*(this.style.borders.top.width+this.style.borders.bottom.width)}else if(this.objectValue instanceof r.a){var a=this.row.cells.indexOf(this),u=0;null!=this.style.cellPadding||void 0!==this.style.cellPadding?(u=this.calculateWidth(),void 0!==this.style.cellPadding.left&&this.style.cellPadding.hasLeftPad&&(u-=this.style.cellPadding.left),void 0!==this.style.cellPadding.right&&this.style.cellPadding.hasRightPad&&(u-=this.style.cellPadding.right)):null!=this.row.grid.style.cellPadding||void 0!==this.row.grid.style.cellPadding?(u=this.calculateWidth(),void 0!==this.row.grid.style.cellPadding.left&&this.row.grid.style.cellPadding.hasLeftPad&&(u-=this.row.grid.style.cellPadding.left),void 0!==this.row.grid.style.cellPadding.right&&this.row.grid.style.cellPadding.hasRightPad&&(u-=this.row.grid.style.cellPadding.right)):u=this.calculateWidth(),this.objectValue.tempWidth=u,this.row.cells.getCell(a).hasColSpan||this.row.cells.getCell(a).hasRowSpan?e+=2*(this.style.borders.top.width+this.style.borders.bottom.width):e=this.objectValue.size.height,0!==this.gridRow.grid.style.cellSpacing&&(t-=2*this.gridRow.grid.style.cellSpacing),null==this.style.cellPadding&&void 0===this.style.cellPadding||(void 0!==this.row.grid.style.cellPadding.top&&this.row.grid.style.cellPadding.hasTopPad&&(e+=this.row.grid.style.cellPadding.top),this.row.grid.style.cellPadding.hasBottomPad&&void 0!==this.row.grid.style.cellPadding.bottom&&(e+=this.row.grid.style.cellPadding.bottom)),e+=this.objectValue.style.cellSpacing}else if(this.objectValue instanceof f.a||this.objectValue instanceof p.a)e+=this.objectValue.height;else if(this.objectValue instanceof g.a){var l=this.objectValue,s=i.layout(l.text,l.font,l.stringFormat,new h.b(t,0),!1,new h.b(0,0));e+=s.actualSize.height,e+=2*(this.style.borders.top.width+this.style.borders.bottom.width)}else void 0===this.objectValue&&(null==this.style.cellPadding||void 0===this.style.cellPadding?t-=this.gridRow.grid.style.cellPadding.right+this.gridRow.grid.style.cellPadding.left:(t-=this.style.cellPadding.right+this.style.cellPadding.left,t-=this.style.borders.left.width+this.style.borders.right.width),e+=2*(this.style.borders.top.width+this.style.borders.bottom.width));return this.objectValue instanceof r.a?null==this.style.cellPadding||void 0===this.style.cellPadding?(void 0!==this.row.grid.style.cellPadding.top&&this.row.grid.style.cellPadding.hasTopPad&&(e+=this.row.grid.style.cellPadding.top),void 0!==this.row.grid.style.cellPadding.bottom&&this.row.grid.style.cellPadding.hasBottomPad&&(e+=this.row.grid.style.cellPadding.bottom)):(void 0!==this.style.cellPadding.top&&this.style.cellPadding.hasTopPad&&(e+=this.style.cellPadding.top),void 0!==this.style.cellPadding.bottom&&this.style.cellPadding.hasBottomPad&&(e+=this.style.cellPadding.bottom)):null==this.style.cellPadding||void 0===this.style.cellPadding?e+=this.row.grid.style.cellPadding.top+this.row.grid.style.cellPadding.bottom:e+=this.style.cellPadding.top+this.style.cellPadding.bottom,e+=this.row.grid.style.cellSpacing},t.prototype.calculateWidth=function(){var t=this.row.cells.indexOf(this),e=(this.row.grid.rows.rowCollection.indexOf(this.row),this.columnSpan),i=0;if(1===e)for(var r=0;r<e;r++)i+=this.row.grid.columns.getColumn(t+r).width;else if(e>1)for(var r=0;r<e;r++)i+=this.row.grid.columns.getColumn(t+r).width,r+1<e&&(this.row.cells.getCell(t+r+1).hasColSpan=!0);if(null!=this.parent&&this.parent.row.width>0&&this.row.grid.isChildGrid&&null!=this.parent&&this.row.width>this.parent.row.width){i=0;for(var n=0;n<this.parent.columnSpan;n++)i+=this.parent.row.grid.columns.getColumn(n).width;i/=this.row.cells.count}return i},t}(),v=function(){function t(t){this.cells=[],this.gridRow=t}return t.prototype.getCell=function(t){if(t<0||t>=this.count)throw new Error("IndexOutOfRangeException");return this.cells[t]},Object.defineProperty(t.prototype,"count",{get:function(){return this.cells.length},enumerable:!0,configurable:!0}),t.prototype.add=function(t){if(void 0===t){var e=new w;return this.add(e),t}t.row=this.gridRow,this.cells.push(t)},t.prototype.indexOf=function(t){return this.cells.indexOf(t)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return d});var r=i(95),n=i(96),o=i(0),s=i(35),a=i(12),h=i(31),u=i(30),l=i(41),c=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),d=function(t){function e(){var e=t.call(this)||this;return e.gridSize=new o.b(0,0),e.isGridSplit=!1,e.isRearranged=!1,e.pageBounds=new o.c,e.listOfNavigatePages=[],e.parentCellIndex=0,e.tempWidth=0,e.breakRow=!0,e.splitChildRowIndex=-1,e.hasRowSpanSpan=!1,e.hasColumnSpan=!1,e.isSingleGrid=!0,e}return c(e,t),Object.defineProperty(e.prototype,"raiseBeginCellDraw",{get:function(){return void 0!==this.beginCellDraw&&null!==typeof this.beginCellDraw},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"raiseEndCellDraw",{get:function(){return void 0!==this.endCellDraw&&null!==typeof this.endCellDraw},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"repeatHeader",{get:function(){return null!=this.bRepeatHeader&&void 0!==this.bRepeatHeader||(this.bRepeatHeader=!1),this.bRepeatHeader},set:function(t){this.bRepeatHeader=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowRowBreakAcrossPages",{get:function(){return this.breakRow},set:function(t){this.breakRow=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return null!=this.gridColumns&&void 0!==this.gridColumns||(this.gridColumns=new r.b(this)),this.gridColumns},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return null==this.gridRows&&(this.gridRows=new n.b(this)),this.gridRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){return null!=this.gridHeaders&&void 0!==this.gridHeaders||(this.gridHeaders=new n.c(this)),this.gridHeaders},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialWidth",{get:function(){return this.gridInitialWidth},set:function(t){this.gridInitialWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return null==this.gridStyle&&(this.gridStyle=new h.b),this.gridStyle},set:function(t){null==this.gridStyle&&(this.gridStyle=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPageWidth",{get:function(){return this.ispageWidth},set:function(t){this.ispageWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChildGrid",{get:function(){return this.ischildGrid},set:function(t){this.ischildGrid=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return 0!==this.gridSize.width&&void 0!==this.gridSize.width||0!==this.gridSize.height||(this.gridSize=this.measure()),this.gridSize},set:function(t){this.gridSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ParentCell",{get:function(){return this.parentCell},set:function(t){this.parentCell=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"LayoutFormat",{get:function(){return this.layoutFormat},enumerable:!0,configurable:!0}),e.prototype.draw=function(t,e,i,r){if(e instanceof o.a&&void 0===e.width&&void 0===i)return this.drawHelper(t,e.x,e.y);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.drawHelper(t,e,i,null);if(e instanceof o.c&&void 0!==e.width&&void 0===i)return this.drawHelper(t,e,null);if(e instanceof o.a&&void 0===e.width&&i instanceof a.b)return this.drawHelper(t,e.x,e.y,i);if("number"==typeof e&&"number"==typeof i&&(r instanceof a.b||null==r)){var n=t.graphics.clientSize.width-e,s=new o.c(e,i,n,0);return this.drawHelper(t,s,r)}return e instanceof o.c&&void 0!==e.width&&"boolean"==typeof i?this.drawHelper(t,e,null):this.drawHelper(t,e,i)},e.prototype.measure=function(){for(var t=0,e=this.columns.width,i=0;i<this.headers.count;i++){var r=this.headers.getHeader(i);t+=r.height}for(var i=0;i<this.rows.count;i++){var r=this.rows.getRow(i);t+=r.height}return new o.b(e,t)},e.prototype.onBeginCellDraw=function(t){this.raiseBeginCellDraw&&this.beginCellDraw(this,t)},e.prototype.onEndCellDraw=function(t){this.raiseEndCellDraw&&this.endCellDraw(this,t)},e.prototype.layout=function(t){var e=t.bounds.width,i=t.bounds.height,r=!1;if(void 0!==t.bounds.width&&0!==t.bounds.width||(e=t.page.getClientSize().width-t.bounds.x,r=!0),void 0!==t.bounds.height&&0!==t.bounds.height||(i=t.page.getClientSize().height-t.bounds.y,r=!0),r&&(t.bounds=new o.c(t.bounds.x,t.bounds.y,e,i)),0!==this.rows.count){var n=this.rows.getRow(0).cells.getCell(0).style;if(null!=n.borders&&(null!=n.borders.left&&1!==n.borders.left.width||null!=n.borders.top&&1!==n.borders.top.width)){var s=n.borders.left.width/2,a=n.borders.top.width/2;if(t.bounds.x===u.a.default.right.width/2&&t.bounds.y===u.a.default.right.width/2){var h=new o.c(s,a,this.gridSize.width,this.gridSize.height);t.bounds=h}}}return this.setSpan(),this.checkSpan(),this.layoutFormat=t.format,this.gridLocation=t.bounds,new l.a(this).Layouter(t)},e.prototype.setSpan=function(){for(var t=1,e=1,i=0,r=0,n=0,o=this.headers.count,s=0;s<o;s++){var a=this.headers.getHeader(s);n=0;for(var h=a.cells.count,u=0;u<h;u++){var l=a.cells.getCell(u);if(n=Math.max(n,l.rowSpan),!l.isCellMergeContinue&&!l.isRowMergeContinue&&(l.columnSpan>1||l.rowSpan>1)){if(l.columnSpan+u>a.cells.count)throw new Error("Invalid span specified at row "+u.toString()+" column "+s.toString());if(l.rowSpan+s>this.headers.count)throw new Error("Invalid span specified at Header "+u.toString()+" column "+s.toString());if(l.columnSpan>1&&l.rowSpan>1){for(t=l.columnSpan,e=l.rowSpan,i=u,r=s,l.isCellMergeStart=!0,l.isRowMergeStart=!0;t>1;)i++,a.cells.getCell(i).isCellMergeContinue=!0,a.cells.getCell(i).isRowMergeContinue=!0,a.cells.getCell(i).rowSpan=e,t--;for(i=u,t=l.columnSpan;e>1;){for(r++,this.headers.getHeader(r).cells.getCell(u).isRowMergeContinue=!0,this.headers.getHeader(r).cells.getCell(i).isRowMergeContinue=!0,e--;t>1;)i++,this.headers.getHeader(r).cells.getCell(i).isCellMergeContinue=!0,this.headers.getHeader(r).cells.getCell(i).isRowMergeContinue=!0,t--;t=l.columnSpan,i=u}}else if(l.columnSpan>1&&1===l.rowSpan)for(t=l.columnSpan,i=u,l.isCellMergeStart=!0;t>1;)i++,a.cells.getCell(i).isCellMergeContinue=!0,t--;else if(1===l.columnSpan&&l.rowSpan>1)for(e=l.rowSpan,r=s;e>1;)r++,this.headers.getHeader(r).cells.getCell(u).isRowMergeContinue=!0,e--}}a.maximumRowSpan=n}},e.prototype.checkSpan=function(){var t,e,i=1,r=0,n=0;if(t=i=1,e=n=0,this.hasRowSpanSpan||this.hasColumnSpan)for(var o=this.rows.count,s=0;s<o;s++){var a=this.rows.getRow(s);r=0;for(var h=a.cells.count,u=0;u<h;u++){var l=a.cells.getCell(u);if(r=Math.max(r,l.rowSpan),!l.isCellMergeContinue&&!l.isRowMergeContinue&&(l.columnSpan>1||l.rowSpan>1)){if(l.columnSpan+u>a.cells.count)throw new Error("Invalid span specified at row "+u.toString()+" column "+s.toString());if(l.rowSpan+s>this.rows.count)throw new Error("Invalid span specified at row "+u.toString()+" column "+s.toString());if(l.columnSpan>1&&l.rowSpan>1){for(t=l.columnSpan,i=l.rowSpan,e=u,n=s,l.isCellMergeStart=!0,l.isRowMergeStart=!0;t>1;)e++,a.cells.getCell(e).isCellMergeContinue=!0,a.cells.getCell(e).isRowMergeContinue=!0,t--;for(e=u,t=l.columnSpan;i>1;){for(n++,this.rows.getRow(n).cells.getCell(u).isRowMergeContinue=!0,this.rows.getRow(n).cells.getCell(e).isRowMergeContinue=!0,i--;t>1;)e++,this.rows.getRow(n).cells.getCell(e).isCellMergeContinue=!0,this.rows.getRow(n).cells.getCell(e).isRowMergeContinue=!0,t--;t=l.columnSpan,e=u}}else if(l.columnSpan>1&&1===l.rowSpan)for(t=l.columnSpan,e=u,l.isCellMergeStart=!0;t>1;)e++,a.cells.getCell(e).isCellMergeContinue=!0,t--;else if(1===l.columnSpan&&l.rowSpan>1)for(i=l.rowSpan,n=s;i>1;)n++,this.rows.getRow(n).cells.getCell(u).isRowMergeContinue=!0,i--}}a.maximumRowSpan=r}},e.prototype.measureColumnsWidth=function(t){if(void 0!==t){this.isPageWidth=!1;for(var e=this.columns.getDefaultWidths(t.width-t.x),i=0,r=this.columns.count;i<r;i++)this.columns.getColumn(i).columnWidth=e[i],this.tempWidth=e[i];if(null!=this.ParentCell&&0==this.style.allowHorizontalOverflow&&0==this.ParentCell.row.grid.style.allowHorizontalOverflow){var n=0,o=0,s=this.columns.count,a=0;null==this.ParentCell.style.cellPadding&&void 0===this.ParentCell.style.cellPadding||(void 0!==this.ParentCell.style.cellPadding.left&&this.ParentCell.style.cellPadding.hasLeftPad&&(n+=this.ParentCell.style.cellPadding.left),void 0!==this.ParentCell.style.cellPadding.right&&this.ParentCell.style.cellPadding.hasRightPad&&(n+=this.ParentCell.style.cellPadding.right));for(var i=0;i<this.ParentCell.columnSpan;i++)o+=this.ParentCell.row.grid.columns.getColumn(this.parentCellIndex+i).width;for(var h=0;h<this.columns.count;h++)this.gridColumns.getColumn(h).width>0&&this.gridColumns.getColumn(h).isCustomWidth&&(o-=this.gridColumns.getColumn(h).width,s--);if(null==this.ParentCell.row.grid.style.cellPadding&&void 0===this.ParentCell.row.grid.style.cellPadding||(void 0!==this.ParentCell.row.grid.style.cellPadding.top&&this.ParentCell.row.grid.style.cellPadding.hasTopPad&&(n+=this.ParentCell.row.grid.style.cellPadding.top),void 0!==this.ParentCell.row.grid.style.cellPadding.bottom&&this.ParentCell.row.grid.style.cellPadding.hasBottomPad&&(n+=this.ParentCell.row.grid.style.cellPadding.bottom)),0!=this.ParentCell.row.grid.style.cellSpacing&&(o-=2*this.ParentCell.row.grid.style.cellSpacing),o>n&&(a=(o-n)/s,this.tempWidth=a,null!=this.ParentCell))for(var h=0;h<this.columns.count;h++)this.columns.getColumn(h).isCustomWidth||(this.columns.getColumn(h).columnWidth=a)}}else{for(var e=[this.columns.count],u=0;u<this.columns.count;u++)e[u]=0;var l=0;if((void 0===this.isChildGrid&&void 0!==this.gridLocation||null===this.isChildGrid&&void 0!==this.gridLocation)&&(this.initialWidth=this.gridLocation.width),this.headers.count>0)for(var c=this.headers.getHeader(0).cells.count,d=this.headers.count,i=0;i<c;i++){l=0;for(var h=0;h<d;h++){var f=Math.min(this.initialWidth,this.headers.getHeader(h).cells.getCell(i).width);l=Math.max(l,f)}e[i]=l}l=0;for(var i=0,p=this.columns.count;i<p;i++){for(var h=0,d=this.rows.count;h<d;h++)if(1==this.rows.getRow(h).cells.getCell(i).columnSpan&&!this.rows.getRow(h).cells.getCell(i).isCellMergeContinue||null!=this.rows.getRow(h).cells.getCell(i).value){if(null!=this.rows.getRow(h).cells.getCell(i).value&&!this.rows.getRow(h).grid.style.allowHorizontalOverflow){this.rows.getRow(h).grid.style.cellPadding.right,this.rows.getRow(h).grid.style.cellPadding.left,this.rows.getRow(h).cells.getCell(i).style.borders.left.width}var f=0;f=this.initialWidth>0?Math.min(this.initialWidth,this.rows.getRow(h).cells.getCell(i).width):this.rows.getRow(h).cells.getCell(i).width,l=Math.max(e[i],Math.max(l,f)),l=Math.max(this.columns.getColumn(i).width,l)}0!=this.rows.count&&(e[i]=l),l=0}for(var i=0,g=this.rows.count;i<g;i++)for(var h=0,m=this.columns.count;h<m;h++)if(this.rows.getRow(i).cells.getCell(h).columnSpan>1)for(var y=e[h],b=1;b<this.rows.getRow(i).cells.getCell(h).columnSpan;b++)y+=e[h+b];for(var i=0,r=this.columns.count;i<r;i++)this.columns.getColumn(i).width<=0?this.columns.getColumn(i).columnWidth=e[i]:this.columns.getColumn(i).width>0&&!this.columns.getColumn(i).isCustomWidth&&(this.columns.getColumn(i).columnWidth=e[i]);var n=0,w=0,v=this.columns.count,S=0;w=this.tempWidth;for(var h=0;h<this.columns.count;h++)this.gridColumns.getColumn(h).width>0&&this.gridColumns.getColumn(h).isCustomWidth&&(w-=this.gridColumns.getColumn(h).width,v--);if(w>0&&0!=this.ParentCell.row.grid.style.cellSpacing&&(w-=2*this.ParentCell.row.grid.style.cellSpacing),w>n&&(S=w/v,null!=this.ParentCell))for(var h=0;h<this.columns.count;h++)this.columns.getColumn(h).isCustomWidth||(this.columns.getColumn(h).columnWidth=S)}},e}(s.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r;!function(t){t[t.Overlap=0]="Overlap",t[t.Inside=1]="Inside"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return l});var r=i(0),n=i(18),o=i(9),s=i(20),a=i(118),h=i(97),u=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=function(t){function e(){var e=t.call(this)||this;return e.internalBounds=new r.c(0,0,0,0),e.internalTemplateSize=new r.b(0,0),e}return u(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.internalBounds},set:function(t){this.internalBounds=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return new r.b(this.bounds.width,this.bounds.height)},set:function(t){this.bounds.width=t.width,this.bounds.height=t.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return new r.a(this.bounds.x,this.bounds.y)},set:function(t){this.bounds.x=t.x,this.bounds.y=t.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.internalFont},set:function(t){this.internalFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return this.internalBrush},set:function(t){this.internalBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pen",{get:function(){return this.internalPen},set:function(t){this.internalPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stringFormat",{get:function(){return this.internalStringFormat},set:function(t){this.internalStringFormat=t},enumerable:!0,configurable:!0}),e.prototype.performDrawHelper=function(t,e,i,r){if(0===this.bounds.height||0===this.bounds.width){var n=this.getValue(t);this.internalTemplateSize=this.getFont().measureString(n,this.size,this.stringFormat)}},e.prototype.draw=function(t,e,i){if(void 0===e){var n=new r.a(0,0);this.draw(t,n)}else if(e instanceof r.a)this.draw(t,e.x,e.y);else{this.drawHelper(t,e,i);var o=new h.a(this,new r.a(e,i));t.automaticFields.add(o)}},e.prototype.getSize=function(){return 0===this.bounds.height||0===this.bounds.width?this.internalTemplateSize:this.size},e.prototype.drawInternal=function(t){},e.prototype.getBrush=function(){return void 0===this.internalBrush||null==this.internalBrush?new n.a(new o.a(0,0,0)):this.internalBrush},e.prototype.getFont=function(){return void 0===this.internalFont||null==this.internalFont?s.a.defaultFont:this.internalFont},e.prototype.getPageFromGraphics=function(t){if(void 0!==t.page&&null!==t.page){var e=t.page;return e}var e=t.currentPage;return e},e}(a.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"c",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"d",function(){return s});var r;!function(t){t[t.None=0]="None",t[t.Start=1]="Start",t[t.End=2]="End",t[t.Both=3]="Both"}(r||(r={}));var n;!function(t){t[t.BackwardDiagonal=0]="BackwardDiagonal",t[t.ForwardDiagonal=1]="ForwardDiagonal",t[t.Horizontal=2]="Horizontal",t[t.Vertical=3]="Vertical"}(n||(n={}));var o;!function(t){t[t.Function=1]="Function",t[t.Axial=2]="Axial",t[t.Radial=3]="Radial"}(o||(o={}));var s;!function(t){t[t.ActiveBorder=1]="ActiveBorder",t[t.ActiveCaption=2]="ActiveCaption",t[t.ActiveCaptionText=3]="ActiveCaptionText",t[t.AppWorkspace=4]="AppWorkspace",t[t.Control=5]="Control",t[t.ControlDark=6]="ControlDark",t[t.ControlDarkDark=7]="ControlDarkDark",t[t.ControlLight=8]="ControlLight",t[t.ControlLightLight=9]="ControlLightLight",t[t.ControlText=10]="ControlText",t[t.Desktop=11]="Desktop",t[t.GrayText=12]="GrayText",t[t.Highlight=13]="Highlight",t[t.HighlightText=14]="HighlightText",t[t.HotTrack=15]="HotTrack",t[t.InactiveBorder=16]="InactiveBorder",t[t.InactiveCaption=17]="InactiveCaption",t[t.InactiveCaptionText=18]="InactiveCaptionText",t[t.Info=19]="Info",t[t.InfoText=20]="InfoText",t[t.Menu=21]="Menu",t[t.MenuText=22]="MenuText",t[t.ScrollBar=23]="ScrollBar",t[t.Window=24]="Window",t[t.WindowFrame=25]="WindowFrame",t[t.WindowText=26]="WindowText",t[t.Transparent=27]="Transparent",t[t.AliceBlue=28]="AliceBlue",t[t.AntiqueWhite=29]="AntiqueWhite",t[t.Aqua=30]="Aqua",t[t.Aquamarine=31]="Aquamarine",t[t.Azure=32]="Azure",t[t.Beige=33]="Beige",t[t.Bisque=34]="Bisque",t[t.Black=35]="Black",t[t.BlanchedAlmond=36]="BlanchedAlmond",t[t.Blue=37]="Blue",t[t.BlueViolet=38]="BlueViolet",t[t.Brown=39]="Brown",t[t.BurlyWood=40]="BurlyWood",t[t.CadetBlue=41]="CadetBlue",t[t.Chartreuse=42]="Chartreuse",t[t.Chocolate=43]="Chocolate",t[t.Coral=44]="Coral",t[t.CornflowerBlue=45]="CornflowerBlue",t[t.Cornsilk=46]="Cornsilk",t[t.Crimson=47]="Crimson",t[t.Cyan=48]="Cyan",t[t.DarkBlue=49]="DarkBlue",t[t.DarkCyan=50]="DarkCyan",t[t.DarkGoldenrod=51]="DarkGoldenrod",t[t.DarkGray=52]="DarkGray",t[t.DarkGreen=53]="DarkGreen",t[t.DarkKhaki=54]="DarkKhaki",t[t.DarkMagenta=55]="DarkMagenta",t[t.DarkOliveGreen=56]="DarkOliveGreen",t[t.DarkOrange=57]="DarkOrange",t[t.DarkOrchid=58]="DarkOrchid",t[t.DarkRed=59]="DarkRed",t[t.DarkSalmon=60]="DarkSalmon",t[t.DarkSeaGreen=61]="DarkSeaGreen",t[t.DarkSlateBlue=62]="DarkSlateBlue",t[t.DarkSlateGray=63]="DarkSlateGray",t[t.DarkTurquoise=64]="DarkTurquoise",t[t.DarkViolet=65]="DarkViolet",t[t.DeepPink=66]="DeepPink",t[t.DeepSkyBlue=67]="DeepSkyBlue",t[t.DimGray=68]="DimGray",t[t.DodgerBlue=69]="DodgerBlue",t[t.Firebrick=70]="Firebrick",t[t.FloralWhite=71]="FloralWhite",t[t.ForestGreen=72]="ForestGreen",t[t.Fuchsia=73]="Fuchsia",t[t.Gainsboro=74]="Gainsboro",t[t.GhostWhite=75]="GhostWhite",t[t.Gold=76]="Gold",t[t.Goldenrod=77]="Goldenrod",t[t.Gray=78]="Gray",t[t.Green=79]="Green",t[t.GreenYellow=80]="GreenYellow",t[t.Honeydew=81]="Honeydew",t[t.HotPink=82]="HotPink",t[t.IndianRed=83]="IndianRed",t[t.Indigo=84]="Indigo",t[t.Ivory=85]="Ivory",t[t.Khaki=86]="Khaki",t[t.Lavender=87]="Lavender",t[t.LavenderBlush=88]="LavenderBlush",t[t.LawnGreen=89]="LawnGreen",t[t.LemonChiffon=90]="LemonChiffon",t[t.LightBlue=91]="LightBlue",t[t.LightCoral=92]="LightCoral",t[t.LightCyan=93]="LightCyan",t[t.LightGoldenrodYellow=94]="LightGoldenrodYellow",t[t.LightGray=95]="LightGray",t[t.LightGreen=96]="LightGreen",t[t.LightPink=97]="LightPink",t[t.LightSalmon=98]="LightSalmon",t[t.LightSeaGreen=99]="LightSeaGreen",t[t.LightSkyBlue=100]="LightSkyBlue",t[t.LightSlateGray=101]="LightSlateGray",t[t.LightSteelBlue=102]="LightSteelBlue",t[t.LightYellow=103]="LightYellow",t[t.Lime=104]="Lime",t[t.LimeGreen=105]="LimeGreen",t[t.Linen=106]="Linen",t[t.Magenta=107]="Magenta",t[t.Maroon=108]="Maroon",t[t.MediumAquamarine=109]="MediumAquamarine",t[t.MediumBlue=110]="MediumBlue",t[t.MediumOrchid=111]="MediumOrchid",t[t.MediumPurple=112]="MediumPurple",t[t.MediumSeaGreen=113]="MediumSeaGreen",t[t.MediumSlateBlue=114]="MediumSlateBlue",t[t.MediumSpringGreen=115]="MediumSpringGreen",t[t.MediumTurquoise=116]="MediumTurquoise",t[t.MediumVioletRed=117]="MediumVioletRed",t[t.MidnightBlue=118]="MidnightBlue",t[t.MintCream=119]="MintCream",t[t.MistyRose=120]="MistyRose",t[t.Moccasin=121]="Moccasin",t[t.NavajoWhite=122]="NavajoWhite",t[t.Navy=123]="Navy",t[t.OldLace=124]="OldLace",t[t.Olive=125]="Olive",t[t.OliveDrab=126]="OliveDrab",t[t.Orange=127]="Orange",t[t.OrangeRed=128]="OrangeRed",t[t.Orchid=129]="Orchid",t[t.PaleGoldenrod=130]="PaleGoldenrod",t[t.PaleGreen=131]="PaleGreen",t[t.PaleTurquoise=132]="PaleTurquoise",t[t.PaleVioletRed=133]="PaleVioletRed",t[t.PapayaWhip=134]="PapayaWhip",t[t.PeachPuff=135]="PeachPuff",t[t.Peru=136]="Peru",t[t.Pink=137]="Pink",t[t.Plum=138]="Plum",t[t.PowderBlue=139]="PowderBlue",t[t.Purple=140]="Purple",t[t.Red=141]="Red",t[t.RosyBrown=142]="RosyBrown",t[t.RoyalBlue=143]="RoyalBlue",t[t.SaddleBrown=144]="SaddleBrown",t[t.Salmon=145]="Salmon",t[t.SandyBrown=146]="SandyBrown",t[t.SeaGreen=147]="SeaGreen",t[t.SeaShell=148]="SeaShell",t[t.Sienna=149]="Sienna",t[t.Silver=150]="Silver",t[t.SkyBlue=151]="SkyBlue",t[t.SlateBlue=152]="SlateBlue",t[t.SlateGray=153]="SlateGray",t[t.Snow=154]="Snow",t[t.SpringGreen=155]="SpringGreen",t[t.SteelBlue=156]="SteelBlue",t[t.Tan=157]="Tan",t[t.Teal=158]="Teal",t[t.Thistle=159]="Thistle",t[t.Tomato=160]="Tomato",t[t.Turquoise=161]="Turquoise",t[t.Violet=162]="Violet",t[t.Wheat=163]="Wheat",t[t.White=164]="White",t[t.WhiteSmoke=165]="WhiteSmoke",t[t.Yellow=166]="Yellow",t[t.YellowGreen=167]="YellowGreen",t[t.ButtonFace=168]="ButtonFace",t[t.ButtonHighlight=169]="ButtonHighlight",t[t.ButtonShadow=170]="ButtonShadow",t[t.GradientActiveCaption=171]="GradientActiveCaption",t[t.GradientInactiveCaption=172]="GradientInactiveCaption",t[t.MenuBar=173]="MenuBar",t[t.MenuHighlight=174]="MenuHighlight"}(s||(s={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(4),n=i(8),o=i(3),s=i(1),a=function(){function t(){this.action=null,this.dictionaryProperties=new s.a,this.initialize()}return Object.defineProperty(t.prototype,"next",{get:function(){return this.action},set:function(t){this.action=t,this.dictionary.items.setValue(this.dictionaryProperties.next,new n.b(this.action))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return void 0===this.pdfDictionary&&(this.pdfDictionary=new r.a),this.pdfDictionary},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.dictionary.items.setValue(this.dictionaryProperties.type,new o.a(this.dictionaryProperties.action))},Object.defineProperty(t.prototype,"element",{get:function(){return this.dictionary},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(61),n=i(17),o=i(3),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e){var i=t.call(this)||this;return i.uniformResourceIdentifier="",i}return s(e,t),Object.defineProperty(e.prototype,"uri",{get:function(){return this.uniformResourceIdentifier},set:function(t){this.uniformResourceIdentifier=t,this.dictionary.items.setValue(this.dictionaryProperties.uri,new n.b(this.uniformResourceIdentifier))},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.dictionary.items.setValue(this.dictionaryProperties.s,new o.a(this.dictionaryProperties.uri))},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(42),n=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o=function(t){function e(e){var i=t.call(this,e)||this;return i.pdfAction=null,i}return n(e,t),e.prototype.getSetAction=function(t){if(void 0===t)return this.pdfAction;this.pdfAction=t},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var r=i(6),n=i(8),o=i(1),s=i(0),a=i(14),h=i(2),u=function(){function t(t){this.alreadyExistsAnnotationError="This annotatation had been already added to page",this.missingAnnotationException="Annotation is not contained in collection.",this.dictionaryProperties=new o.a,this.internalAnnotations=new r.a,this.lists=[],void 0!==t&&(this.page=t)}return Object.defineProperty(t.prototype,"annotations",{get:function(){return this.internalAnnotations},set:function(t){this.internalAnnotations=t},enumerable:!0,configurable:!0}),t.prototype.add=function(t){this.doAdd(t)},t.prototype.doAdd=function(t){if(void 0===t.destination)return t.setPage(this.page),this.internalAnnotations.add(new n.b(t)),this.lists.push(t);var e=new a.a,i=e.layout(t.text,t.font,t.stringFormat,new s.b(t.bounds.width,0),!1,new s.b(0,0)),r=t.bounds.y;if(1===i.lines.length){var o=t.font.measureString(i.lines[0].text);t.bounds=new s.c(new s.a(t.bounds.x,r),o),t.text=i.lines[0].text,this.page.graphics.drawString(t.text,t.font,null,t.brush,t.bounds.x,t.bounds.y,t.bounds.width,t.bounds.height,null),t.setPage(this.page),this.setColor(t),this.internalAnnotations.add(new n.b(t)),this.lists.push(t)}else for(var h=0;h<i.lines.length;h++){var o=t.font.measureString(i.lines[h].text);if(0===h)t.bounds=new s.c(t.bounds.x,r,o.width,o.height),t.text=i.lines[h].text,this.page.graphics.drawString(t.text,t.font,null,t.brush,t.bounds.x,r,o.width,o.height,null),t.setPage(this.page),this.setColor(t),this.internalAnnotations.add(new n.b(t)),this.lists.push(t),r+=t.bounds.height;else{var u=t.clone();u.bounds=new s.c(new s.a(t.bounds.x,r),o),u.text=i.lines[h].text,this.page.graphics.drawString(u.text,u.font,null,u.brush,u.bounds.x,u.bounds.y,u.bounds.width,u.bounds.height,null),u.setPage(this.page),this.setColor(u),this.internalAnnotations.add(new n.b(u)),this.lists.push(u),r+=u.bounds.height}}},t.prototype.setColor=function(t){var e=h.i.Rgb,i=t.color.toArray(e);t.dictionary.items.setValue(this.dictionaryProperties.c,i)},Object.defineProperty(t.prototype,"element",{get:function(){return this.internalAnnotations},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return y});var r=i(9),n=i(0),o=i(4),s=i(6),a=i(5),h=i(8),u=i(17),l=i(1),c=i(3),d=i(18),f=i(37),p=i(7),g=i(23),m=i(2),y=function(){function t(t){this.dictionaryProperties=new l.a,this.pdfColor=new r.a(255,255,255),this.rectangle=new n.c(0,0,0,0),this.pdfPage=null,this.textBrush=new d.a(new r.a(0,0,0)),this.textFont=new f.a(p.b.TimesRoman,10),this.format=new g.a(m.c.Left),this.content="",this.pdfDictionary=new o.a,this.internalColor=new r.a,this.darkness=1,void 0===t?this.initialize():(this.initialize(),this.bounds=t)}return Object.defineProperty(t.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerColor",{get:function(){return this.internalColor},set:function(t){this.internalColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.rectangle},set:function(t){this.rectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.textFont},set:function(t){this.textFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stringFormat",{get:function(){return this.format},set:function(t){this.format=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this.textBrush},set:function(t){this.textBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.content},set:function(t){this.content=t,this.dictionary.items.setValue(this.dictionaryProperties.contents,new u.b(this.content))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return this.pdfDictionary},set:function(t){this.pdfDictionary=t},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.pdfDictionary.annotationBeginSave=new o.e(this),this.pdfDictionary.items.setValue(this.dictionaryProperties.type,new c.a(this.dictionaryProperties.annot))},t.prototype.setPage=function(t){this.pdfPage=t,this.pdfDictionary.items.setValue(this.dictionaryProperties.p,new h.b(this.pdfPage))},t.prototype.beginSave=function(){this.save()},t.prototype.save=function(){var t=new n.c(this.rectangle.x,this.rectangle.y,this.rectangle.width,this.rectangle.height),e=this.pdfPage.section,i=t.height,r=e.pointToNativePdf(this.page,new n.a(t.x,t.y));t.x=r.x,t.width=r.x+t.width,t.y=r.y-this.page.document.pageSettings.margins.top,t.height=t.y-i,this.pdfDictionary.items.setValue(this.dictionaryProperties.rect,s.a.fromRectangle(t)),this.dictionary.items.setValue(this.dictionaryProperties.ca,new a.a(this.darkness))},Object.defineProperty(t.prototype,"element",{get:function(){return this.pdfDictionary},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(63),n=i(3),o=i(62),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e,i){var r=t.call(this,e)||this;return void 0!==i&&(r.uri=i),r}return s(e,t),Object.defineProperty(e.prototype,"uriAction",{get:function(){return void 0===this.pdfUriAction&&(this.pdfUriAction=new o.a),this.pdfUriAction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this.uriAction.uri},set:function(t){this.uriAction.uri!==t&&(this.uriAction.uri=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"action",{get:function(){return this.getSetAction()},set:function(t){this.getSetAction(t),this.uriAction.next=t},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.dictionary.items.setValue(this.dictionaryProperties.subtype,new n.a(this.dictionaryProperties.link));this.uriAction.element;this.dictionary.items.setValue(this.dictionaryProperties.a,this.uriAction.element)},e}(r.a)},function(t,e,i){"use strict";function r(t){return"[object String]"===Object.prototype.toString.call(t)?"$s"+t:"$o"+t.toString()}e.a=r},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(146),n=(i.n(r),i(20)),o=function(){function t(t){this.isStreamCopied=!1,t instanceof n.a&&(this.document=t)}return Object.defineProperty(t.prototype,"pdfObjects",{get:function(){return this.objects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"crossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentSavingObj",{get:function(){return this.currentSavingObject},set:function(t){this.currentSavingObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"catalog",{get:function(){return this.pdfCatalog},set:function(t){this.pdfCatalog=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewerPreferences",{get:function(){return this.pdfCatalog.viewerPreferences},enumerable:!0,configurable:!0}),t.prototype.setMainObjectCollection=function(t){this.objects=t},t.prototype.setCrossTable=function(t){this.pdfCrossTable=t},t.prototype.setCatalog=function(t){this.pdfCatalog=t},t.prototype.save=function(t){var e=this,i=new r.Encoding(!0),n=new r.StreamWriter(i);if(void 0===t){var o=new r.Encoding(!0),s=new r.StreamWriter(o);return new Promise(function(t,i){var r={};r.blobData=new Blob([e.document.docSave(s,!0)],{type:"application/pdf"}),t(r)})}this.document.docSave(n,t,!0)},t.prototype.clone=function(){return this.document},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return h}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return u}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return c});var r,n=i(1),o=i(4),s=i(33),a=i(3),h=function(){function t(t){this._dictionaryProperties=new n.a,this._centerWindow=!1,this._fitWindow=!1,this._displayTitle=!1,this._splitWindow=!1,this._hideMenuBar=!1,this._hideToolBar=!1,this._hideWindowUI=!1,this._pageMode=r.UseNone,this._pageLayout=u.SinglePage,this._dictionary=new o.a,this._duplex=l.None,this._catalog=t}return Object.defineProperty(t.prototype,"centerWindow",{get:function(){return this._centerWindow},set:function(t){this._centerWindow=t,this._dictionary.items.setValue(this._dictionaryProperties.centerWindow,new s.a(this._centerWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayTitle",{get:function(){return this._displayTitle},set:function(t){this._displayTitle=t,this._dictionary.items.setValue(this._dictionaryProperties.displayTitle,new s.a(this._displayTitle))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fitWindow",{get:function(){return this._fitWindow},set:function(t){this._fitWindow=t,this._dictionary.items.setValue(this._dictionaryProperties.fitWindow,new s.a(this._fitWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideMenuBar",{get:function(){return this._hideMenuBar},set:function(t){this._hideMenuBar=t,this._dictionary.items.setValue(this._dictionaryProperties.hideMenuBar,new s.a(this._hideMenuBar))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideToolBar",{get:function(){return this._hideToolBar},set:function(t){this._hideToolBar=t,this._dictionary.items.setValue(this._dictionaryProperties.hideToolBar,new s.a(this._hideToolBar))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideWindowUI",{get:function(){return this._hideWindowUI},set:function(t){this._hideWindowUI=t,this._dictionary.items.setValue(this._dictionaryProperties.hideWindowUI,new s.a(this._hideWindowUI))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageMode",{get:function(){return this._pageMode},set:function(t){this._pageMode=t,this._catalog.items.setValue(this._dictionaryProperties.pageMode,new a.a(this._mapPageMode(this._pageMode)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duplex",{get:function(){return this._duplex},set:function(t){this._duplex=t,this._catalog.items.setValue(this._dictionaryProperties.duplex,new a.a(this._mapDuplexMode(this._duplex)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageLayout",{get:function(){return this._pageLayout},set:function(t){this._pageLayout=t,this._catalog.items.setValue(this._dictionaryProperties.pageLayout,new a.a(this._mapPageLayout(this._pageLayout)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageScaling",{get:function(){return this._pageScaling},set:function(t){this._pageScaling=t,this._pageScaling===c.AppDefault&&this._dictionary.items.containsKey(this._dictionaryProperties.printScaling)?this._dictionary.items.remove(this._dictionaryProperties.printScaling):this._pageScaling===c.None&&this._dictionary.items.setValue(this._dictionaryProperties.printScaling,new a.a("None"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._dictionary},enumerable:!0,configurable:!0}),t.prototype._mapDuplexMode=function(t){switch(t){case l.Simplex:return"Simplex";case l.DuplexFlipShortEdge:return"DuplexFlipShortEdge";case l.DuplexFlipLongEdge:return"DuplexFlipLongEdge";case l.None:return"None"}},t.prototype._mapPageMode=function(t){switch(t){case r.UseNone:return"UseNone";case r.UseOutlines:return"UseOutlines";case r.UseThumbs:return"UseThumbs";case r.FullScreen:return"FullScreen";case r.UseOC:return"UseOC";case r.UseAttachments:return"UseAttachments"}},t.prototype._mapPageLayout=function(t){switch(t){case u.SinglePage:return"SinglePage";case u.OneColumn:return"OneColumn";case u.TwoColumnLeft:return"TwoColumnLeft";case u.TwoColumnRight:return"TwoColumnRight";case u.TwoPageLeft:return"TwoPageLeft";case u.TwoPageRight:return"TwoPageRight"}},t}();!function(t){t[t.UseNone=0]="UseNone",t[t.UseOutlines=1]="UseOutlines",t[t.UseThumbs=2]="UseThumbs",t[t.FullScreen=3]="FullScreen",t[t.UseOC=4]="UseOC",t[t.UseAttachments=5]="UseAttachments"}(r||(r={}));var u;!function(t){t[t.SinglePage=0]="SinglePage",t[t.OneColumn=1]="OneColumn",t[t.TwoColumnLeft=2]="TwoColumnLeft",t[t.TwoColumnRight=3]="TwoColumnRight",t[t.TwoPageLeft=4]="TwoPageLeft",t[t.TwoPageRight=5]="TwoPageRight"}(u||(u={}));var l;!function(t){t[t.Simplex=0]="Simplex",t[t.DuplexFlipShortEdge=1]="DuplexFlipShortEdge",t[t.DuplexFlipLongEdge=2]="DuplexFlipLongEdge",t[t.None=3]="None"}(l||(l={}));var c;!function(t){t[t.AppDefault=0]="AppDefault",t[t.None=1]="None"}(c||(c={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r;!function(t){t[t.Location=0]="Location",t[t.FitToPage=1]="FitToPage",t[t.FitR=2]="FitR"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(1),n=function(){function t(t){this.mDictionary=null,this.mDictionaryProperties=new r.a,this.mDictionary=t}return Object.defineProperty(t.prototype,"domain",{get:function(){return this.mDictionary.items.getValue(this.mDictionaryProperties.domain)},set:function(t){this.mDictionary.items.setValue(this.mDictionaryProperties.domain,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return this.mDictionary.items.getValue(this.mDictionaryProperties.range)},set:function(t){this.mDictionary.items.setValue(this.mDictionaryProperties.range,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return this.mDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.mDictionary},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(6),n=i(71),o=i(13),s=i(5),a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e,i,r,n){var a=t.call(this,new o.a)||this;return void 0===e?a.dictionary.items.setValue(a.mDictionaryProperties.functionType,new s.a(0)):(a.dictionary.items.setValue(a.mDictionaryProperties.functionType,new s.a(0)),a.checkParams(e,i,r,n),a.setDomainAndRange(e,i),a.setSizeAndValues(r,n)),a}return a(e,t),e.prototype.checkParams=function(t,e,i,r){e.length,t.length,r.length},e.prototype.setDomainAndRange=function(t,e){this.domain=new r.a(t),this.range=new r.a(e)},e.prototype.setSizeAndValues=function(t,e){var i=this.dictionary;i.isResource=!0,this.dictionary.items.setValue(this.mDictionaryProperties.size,new r.a(t)),this.dictionary.items.setValue(this.mDictionaryProperties.bitsPerSample,new s.a(8)),i.writeBytes(e)},e}(n.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(10),n=function(){function t(){this.referenceObjects=[],this.pdfFontCollection=new r.a}return t.prototype.search=function(t){var e=null,i=this.getGroup(t);return null==i?i=this.createNewGroup():i.length>0&&(e=i[0]),i.push(t),e},t.prototype.createNewGroup=function(){var t=[];return this.referenceObjects.push(t),t},t.prototype.getGroup=function(t){var e=null;if(null!==t)for(var i=this.referenceObjects.length,r=0;r<i;r++){if(this.referenceObjects.length>0){var n=this.referenceObjects[r];if(n.length>0){var o=n[0];if(t.equalsTo(o)){e=n;break}}else this.removeGroup(n)}i=this.referenceObjects.length}return e},t.prototype.removeGroup=function(t){if(null!==t){var e=this.referenceObjects.indexOf(t);this.referenceObjects.slice(e,e+1)}},t.prototype.destroy=function(){this.pdfFontCollection=void 0,this.referenceObjects=void 0},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return Object.defineProperty(t.prototype,"count",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"list",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return s});var r=i(2),n=i(9),o=i(34),s=function(){function t(t){this.precision=1e3}return Object.defineProperty(t.prototype,"factors",{get:function(){return this.mFactors},set:function(t){if(null==t)throw new Error("ArgumentNullException : Factors");this.mFactors=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this.mPositions},set:function(t){for(var e=t,i=0;i<e.length;i++)(e[i]<0||e[i]>1)&&(e[i]=0);this.mPositions=e,this.mPositions=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.mCount},enumerable:!0,configurable:!0}),t.prototype.generateColorBlend=function(t,e){if(null==t)throw new Error("ArgumentNullException : colours");null==this.positions&&(this.positions=[0]);var i=new o.a(this.count),r=this.positions,n=null;if(1===r.length)r=[3],r[0]=0,r[1]=this.positions[0],r[2]=1,n=new Array(3),n[0]=t[0],n[1]=t[0],n[2]=t[1];else{var s=t[0],a=t[1];n=new Array(this.count);var h=0,u=this.count;for(h=0;h<u;++h)n[h]=this.interpolate(this.mFactors[h],s,a,e)}return i.positions=r,i.colors=n,i},t.prototype.clonePdfBlend=function(){var t=this;return null!=this.mFactors&&(t.factors=this.mFactors),null!=this.positions&&(t.positions=this.positions),t},t.prototype.gcd=function(t,e){if("number"==typeof t&&"number"==typeof e&&void 0!==e){if(t<0||t>1)throw new Error("ArgumentOutOfRangeException : u");if(e<0||e>1)throw new Error("ArgumentOutOfRangeException : v");var i=Math.max(1,t*this.precision),r=Math.max(1,e*this.precision);return this.gcdInt(i,r)/this.precision}var n=t;if(null==n)throw new Error("ArgumentNullException : values");if(n.length<1)throw new Error("ArgumentException : Not enough values in the array. - values");var o=n[0];if(n.length>1)for(var s=n.length,a=1;a<s&&(o=this.gcd(n[a],o))!==1/this.precision;++a);return o},t.prototype.gcdInt=function(t,e){if(t<=0)throw new Error("ArgumentOutOfRangeException"+t+"The arguments cannot be less or equal to zero.");if(e<=0)throw new Error("ArgumentOutOfRangeException"+e+"The arguments cannot be less or equal to zero.");if(1===t||1===e)return 1;for(var i=0;this.isEven(t,e);)++i,t>>=1,e>>=1;for(;(1&t)<=0;)t>>=1;do{for(;(1&e)<=0;)e>>=1;if(t>e){var r=e;e=t,t=r}e-=t}while(0!==e);return t<<i},t.prototype.isEven=function(t,e){if("number"==typeof e&&void 0!==e){var i=!0;return i=i&&(1&t)<=0,i=i&&(1&e)<=0}return(1&t)<=0},t.prototype.interpolate=function(t,e,i,o){if(e instanceof n.a){var s=new n.a;switch(o){case r.i.Rgb:var a=this.interpolate(t,e.red,i.red),h=this.interpolate(t,e.green,i.green),u=this.interpolate(t,e.blue,i.blue);s=new n.a(a,h,u);break;case r.i.GrayScale:var l=this.interpolate(t,e.gray,i.gray);s=new n.a(l);break;case r.i.Cmyk:var c=this.interpolate(t,e.c,i.c),d=this.interpolate(t,e.m,i.m),f=this.interpolate(t,e.y,i.y),p=this.interpolate(t,e.k,i.k);s=new n.a(c,d,f,p)}return s}return 0===t?e:1===t?i:e+(i-e)/1*(t-0)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){this.pdf="PDF",this.text="Text",this.imageB="ImageB",this.imageC="ImageC",this.imageI="ImageI"}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return l}),i.d(e,"b",function(){return c}),i.d(e,"c",function(){return d});var r=i(12),n=i(0),o=i(14),s=i(21),a=i(9),h=i(43),u=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=function(t){function e(e){return t.call(this,e)||this}return u(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return t.prototype.getElement.call(this)},enumerable:!0,configurable:!0}),e.prototype.layoutInternal=function(t){this.format=null!==this.element.stringFormat&&void 0!==this.element.stringFormat?this.element.stringFormat:null;var e=t.page,i=t.bounds,r=this.element.value,n=null,o=new c;for(o.page=e,o.remainder=r;;){o=this.layoutOnPage(r,e,i,t),n=this.getLayoutResult(o);break}return n},e.prototype.getLayoutResult=function(t){return new d(t.page,t.bounds,t.remainder,t.lastLineBounds)},e.prototype.layoutOnPage=function(t,e,i,r){var u=new c;u.remainder=t,u.page=e,i=this.checkCorrectBounds(e,i);var l=new o.a,d=l.layout(t,this.element.font,this.format,i,e.getClientSize().height,!1,new n.b(0,0)),f=null==d.remainder,p=r.format.break===s.b.FitElement,g=(p||d.empty,e.graphics),m=this.element.getBrush();this.element instanceof h.a&&(m.color=new a.a(0,0,255)),g.drawStringLayoutResult(d,this.element.font,this.element.pen,m,i,this.format);d.lines[d.lineCount-1];return u.lastLineBounds=g.getLineBounds(d.lineCount-1,d,this.element.font,i,this.format),u.bounds=this.getTextPageBounds(e,i,d),u.remainder=d.remainder,u.end=f,u},e.prototype.checkCorrectBounds=function(t,e){var i=t.graphics.clientSize;return e.height=e.height>0?e.height:i.height-e.y,e},e.prototype.getTextPageBounds=function(t,e,i){var r=i.actualSize,o=e.x,s=e.y,a=e.width>0?e.width:r.width,h=r.height;return o=t.graphics.checkCorrectLayoutRectangle(r,e.x,e.y,this.format).x,s+=t.graphics.getTextVerticalAlignShift(r.height,e.height,this.format),new n.c(o,s,a,h)},e}(r.a),c=function(){function t(){}return t}(),d=function(t){function e(e,i,r,n){var o=t.call(this,e,i)||this;return o.remainderText=r,o.lastLineTextBounds=n,o}return u(e,t),Object.defineProperty(e.prototype,"remainder",{get:function(){return this.remainderText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastLineBounds",{get:function(){return this.lastLineTextBounds},enumerable:!0,configurable:!0}),e}(r.d)},function(t,e,i){"use strict";i.d(e,"a",function(){return y});var r=i(35),n=i(11),o=i(22),s=i(37),a=i(15),h=i(12),u=i(77),l=i(18),c=i(9),d=i(0),f=i(12),p=i(14),g=i(2),m=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),y=function(t){function e(e,i,r,s,h){var u=t.call(this)||this;return u.content="",u.elementValue="",u.hasPointOverload=!1,u.isPdfTextElement=!1,void 0===e||("string"==typeof e&&void 0===i?(u.content=e,u.elementValue=e):"string"==typeof e&&i instanceof o.a&&void 0===r?(u.content=e,u.elementValue=e,u.pdfFont=i):"string"==typeof e&&i instanceof o.a&&r instanceof a.a&&void 0===s?(u.content=e,u.elementValue=e,u.pdfFont=i,u.pdfPen=r):"string"==typeof e&&i instanceof o.a&&r instanceof n.a&&void 0===s?(u.content=e,u.elementValue=e,u.pdfFont=i,u.pdfBrush=r):(u.content=e,u.elementValue=e,u.pdfFont=i,u.pdfPen=r,u.pdfBrush=s,u.format=h)),u}return m(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this.content},set:function(t){this.elementValue=t,this.content=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.elementValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pen",{get:function(){return this.pdfPen},set:function(t){this.pdfPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return this.pdfBrush},set:function(t){this.pdfBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.pdfFont},set:function(t){this.pdfFont=t,this.pdfFont instanceof s.a&&null!=this.content?this.elementValue=s.a.convert(this.content):this.elementValue=this.content},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stringFormat",{get:function(){return this.format},set:function(t){this.format=t},enumerable:!0,configurable:!0}),e.prototype.getBrush=function(){return null==this.pdfBrush||void 0===this.pdfBrush?new l.a(new c.a(0,0,0)):this.pdfBrush},e.prototype.layout=function(t){return new u.a(this).layout(t)},e.prototype.drawText=function(t,e,i,r){if(e instanceof d.a&&void 0===e.width&&void 0===i)return this.hasPointOverload=!0,this.drawText(t,e.x,e.y);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.hasPointOverload=!0,this.drawText(t,e,i,null);if(e instanceof d.c&&void 0!==e.width&&void 0===i)return this.drawText(t,e,null);if(e instanceof d.a&&void 0===e.width&&i instanceof f.b)return this.hasPointOverload=!0,this.drawText(t,e.x,e.y,i);if("number"==typeof e&&"number"==typeof i&&(r instanceof f.b||null==r)){this.hasPointOverload=!0;var n=t.graphics.clientSize.width-e,o=new d.c(e,i,n,0);return this.drawText(t,o,r)}if(e instanceof d.c&&void 0!==e.width&&"boolean"==typeof i)return this.drawText(t,e,null);var s=new p.a;if(this.hasPointOverload){var a=s.layout(this.value,this.font,this.stringFormat,new d.b(t.graphics.clientSize.width-e.x,0),!0,t.graphics.clientSize),u=void 0,l=new h.c,c=e,g=i;l.page=t;if(l.bounds=c,l.format=null!=g?g:new f.b,a.lines.length>1){if(this.text=a.layoutLines[0].text,l.bounds.y<=l.page.graphics.clientSize.height){var m=new d.a(l.bounds.x,l.bounds.y);u=this.layout(l);for(var y=new d.c(0,u.bounds.y+a.lineHeight,t.graphics.clientSize.width,a.lineHeight),b=1;b<a.lines.length;b++)if(l.page=u.page,l.bounds=new d.c(new d.a(y.x,y.y),new d.b(y.width,y.height)),this.text=a.layoutLines[b].text,y.y+a.lineHeight>u.page.graphics.clientSize.height&&(!0,l.page=l.page.graphics.getNextPage(),y=m.y>u.page.graphics.clientSize.height-u.bounds.height?new d.c(0,u.bounds.height,u.page.graphics.clientSize.width,a.lineHeight):new d.c(0,0,u.page.graphics.clientSize.width,a.lineHeight),l.bounds=y),u=this.layout(l),b!==a.lines.length-1)y=new d.c(0,u.bounds.y+a.lineHeight,u.page.graphics.clientSize.width,a.lineHeight);else{var w=this.font.measureString(this.text,this.format).width;u=this.calculateResultBounds(u,w,u.page.graphics.clientSize.width,0)}}return u}var v=this.font.measureString(this.text,this.format);return l.bounds.y<=l.page.graphics.clientSize.height&&(u=this.layout(l),u=this.calculateResultBounds(u,v.width,u.page.graphics.clientSize.width,0)),u}var u=s.layout(this.value,this.font,this.stringFormat,new d.b(e.width,0),!1,t.graphics.clientSize),S=void 0,l=new h.c,c=e,g=i;if(l.page=t,l.bounds=c,l.format=null!=g?g:new f.b,u.lines.length>1){if(this.text=u.layoutLines[0].text,l.bounds.y<=l.page.graphics.clientSize.height){var m=new d.a(l.bounds.x,l.bounds.y);S=this.layout(l);for(var y=new d.c(c.x,S.bounds.y+u.lineHeight,c.width,u.lineHeight),b=1;b<u.lines.length;b++)if(l.page=S.page,l.bounds=new d.c(y.x,y.y,y.width,y.height),this.text=u.layoutLines[b].text,y.y+u.lineHeight>S.page.graphics.clientSize.height&&(!0,l.page=l.page.graphics.getNextPage(),y=m.y>S.page.graphics.clientSize.height-S.bounds.height?new d.c(c.x,u.lineHeight,c.width,u.lineHeight):new d.c(c.x,0,c.width,u.lineHeight),l.bounds=y),S=this.layout(l),b!==u.lines.length-1)y=new d.c(c.x,S.bounds.y+u.lineHeight,c.width,u.lineHeight);else{var w=this.font.measureString(this.text,this.format).width;S=this.calculateResultBounds(S,w,c.width,c.x)}}return S}var v=this.font.measureString(this.text,this.format);return l.bounds.y<=l.page.graphics.clientSize.height&&(S=this.layout(l),S=this.calculateResultBounds(S,v.width,c.width,c.x)),S},e.prototype.calculateResultBounds=function(t,e,i,r){return null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===g.c.Center?(t.bounds.x=r+(i-e)/2,t.bounds.width=e):null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===g.c.Right?(t.bounds.x=r+(i-e),t.bounds.width=e):null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===g.c.Justify?(t.bounds.x=r,t.bounds.width=i):(t.bounds.width=r,t.bounds.width=e),t},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(7),n=i(36),o=function(){function t(){}return t.getMetrics=function(t,e,i){var n=null;switch(t){case r.b.Helvetica:n=this.getHelveticaMetrics(t,e,i);break;case r.b.Courier:n=this.getCourierMetrics(t,e,i);break;case r.b.TimesRoman:n=this.getTimesMetrics(t,e,i);break;case r.b.Symbol:n=this.getSymbolMetrics(t,e,i);break;case r.b.ZapfDingbats:n=this.getZapfDingbatsMetrics(t,e,i);break;default:n=this.getHelveticaMetrics(r.b.Helvetica,e,i)}return n.name=t.toString(),n.subScriptSizeFactor=this.subSuperScriptFactor,n.superscriptSizeFactor=this.subSuperScriptFactor,n},t.getHelveticaMetrics=function(t,e,i){var o=new n.a;return(e&r.a.Bold)>0&&(e&r.a.Italic)>0?(o.ascent=this.helveticaBoldItalicAscent,o.descent=this.helveticaBoldItalicDescent,o.postScriptName=this.helveticaBoldItalicName,o.size=i,o.widthTable=new n.c(this.arialBoldWidth),o.height=o.ascent-o.descent):(e&r.a.Bold)>0?(o.ascent=this.helveticaBoldAscent,o.descent=this.helveticaBoldDescent,o.postScriptName=this.helveticaBoldName,o.size=i,o.widthTable=new n.c(this.arialBoldWidth),o.height=o.ascent-o.descent):(e&r.a.Italic)>0?(o.ascent=this.helveticaItalicAscent,o.descent=this.helveticaItalicDescent,o.postScriptName=this.helveticaItalicName,o.size=i,o.widthTable=new n.c(this.arialWidth),o.height=o.ascent-o.descent):(o.ascent=this.helveticaAscent,o.descent=this.helveticaDescent,o.postScriptName=this.helveticaName,o.size=i,o.widthTable=new n.c(this.arialWidth),o.height=o.ascent-o.descent),o},t.getCourierMetrics=function(t,e,i){var o=new n.a;return(e&r.a.Bold)>0&&(e&r.a.Italic)>0?(o.ascent=this.courierBoldItalicAscent,o.descent=this.courierBoldItalicDescent,o.postScriptName=this.courierBoldItalicName,o.size=i,o.widthTable=new n.c(this.fixedWidth),o.height=o.ascent-o.descent):(e&r.a.Bold)>0?(o.ascent=this.courierBoldAscent,o.descent=this.courierBoldDescent,o.postScriptName=this.courierBoldName,o.size=i,o.widthTable=new n.c(this.fixedWidth),o.height=o.ascent-o.descent):(e&r.a.Italic)>0?(o.ascent=this.courierItalicAscent,o.descent=this.courierItalicDescent,o.postScriptName=this.courierItalicName,o.size=i,o.widthTable=new n.c(this.fixedWidth),o.height=o.ascent-o.descent):(o.ascent=this.courierAscent,o.descent=this.courierDescent,o.postScriptName=this.courierName,o.size=i,o.widthTable=new n.c(this.fixedWidth),o.height=o.ascent-o.descent),o},t.getTimesMetrics=function(t,e,i){var o=new n.a;return(e&r.a.Bold)>0&&(e&r.a.Italic)>0?(o.ascent=this.timesBoldItalicAscent,o.descent=this.timesBoldItalicDescent,o.postScriptName=this.timesBoldItalicName,o.size=i,o.widthTable=new n.c(this.timesRomanBoldItalicWidths),o.height=o.ascent-o.descent):(e&r.a.Bold)>0?(o.ascent=this.timesBoldAscent,o.descent=this.timesBoldDescent,o.postScriptName=this.timesBoldName,o.size=i,o.widthTable=new n.c(this.timesRomanBoldWidth),o.height=o.ascent-o.descent):(e&r.a.Italic)>0?(o.ascent=this.timesItalicAscent,o.descent=this.timesItalicDescent,o.postScriptName=this.timesItalicName,o.size=i,o.widthTable=new n.c(this.timesRomanItalicWidth),o.height=o.ascent-o.descent):(o.ascent=this.timesAscent,o.descent=this.timesDescent,o.postScriptName=this.timesName,o.size=i,o.widthTable=new n.c(this.timesRomanWidth),o.height=o.ascent-o.descent),o},t.getSymbolMetrics=function(t,e,i){var r=new n.a;return r.ascent=this.symbolAscent,r.descent=this.symbolDescent,r.postScriptName=this.symbolName,r.size=i,r.widthTable=new n.c(this.symbolWidth),r.height=r.ascent-r.descent,r},t.getZapfDingbatsMetrics=function(t,e,i){var r=new n.a;return r.ascent=this.zapfDingbatsAscent,r.descent=this.zapfDingbatsDescent,r.postScriptName=this.zapfDingbatsName,r.size=i,r.widthTable=new n.c(this.zapfDingbatsWidth),r.height=r.ascent-r.descent,r},t.subSuperScriptFactor=1.52,t.helveticaAscent=931,t.helveticaDescent=-225,t.helveticaName="Helvetica",t.helveticaBoldAscent=962,t.helveticaBoldDescent=-228,t.helveticaBoldName="Helvetica-Bold",t.helveticaItalicAscent=931,t.helveticaItalicDescent=-225,t.helveticaItalicName="Helvetica-Oblique",t.helveticaBoldItalicAscent=962,t.helveticaBoldItalicDescent=-228,t.helveticaBoldItalicName="Helvetica-BoldOblique",t.courierAscent=805,t.courierDescent=-250,t.courierName="Courier",t.courierBoldAscent=801,t.courierBoldDescent=-250,t.courierBoldName="Courier-Bold",t.courierItalicAscent=805,t.courierItalicDescent=-250,t.courierItalicName="Courier-Oblique",t.courierBoldItalicAscent=801,t.courierBoldItalicDescent=-250,t.courierBoldItalicName="Courier-BoldOblique",t.timesAscent=898,t.timesDescent=-218,t.timesName="Times-Roman",t.timesBoldAscent=935,t.timesBoldDescent=-218,t.timesBoldName="Times-Bold",t.timesItalicAscent=883,t.timesItalicDescent=-217,t.timesItalicName="Times-Italic",t.timesBoldItalicAscent=921,t.timesBoldItalicDescent=-218,t.timesBoldItalicName="Times-BoldItalic",t.symbolAscent=1010,t.symbolDescent=-293,t.symbolName="Symbol",t.zapfDingbatsAscent=820,t.zapfDingbatsDescent=-143,t.zapfDingbatsName="ZapfDingbats",t.arialWidth=[278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,0,556,0,222,556,333,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,222,222,333,333,350,556,1e3,333,1e3,500,333,944,0,500,667,0,333,556,556,556,556,260,556,333,737,370,556,584,0,737,333,400,584,333,333,333,556,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,584,611,556,556,556,556,500,556,500],t.arialBoldWidth=[278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,0,556,0,278,556,500,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,278,278,500,500,350,556,1e3,333,1e3,556,333,944,0,500,667,0,333,556,556,556,556,280,556,333,737,370,556,584,0,737,333,400,584,333,333,333,611,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,584,611,611,611,611,611,556,611,556],t.fixedWidth=[600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600],t.timesRomanWidth=[250,333,408,500,500,833,778,180,333,333,500,564,250,333,250,278,500,500,500,500,500,500,500,500,500,500,278,278,564,564,564,444,921,722,667,667,722,611,556,722,722,333,389,722,611,889,722,722,556,722,667,556,611,722,722,944,722,722,611,333,278,333,469,500,333,444,500,444,500,444,333,500,500,278,278,500,278,778,500,500,500,500,333,389,278,500,500,722,500,500,444,480,200,480,541,0,500,0,333,500,444,1e3,500,500,333,1e3,556,333,889,0,611,0,0,333,333,444,444,350,500,1e3,333,980,389,333,722,0,444,722,0,333,500,500,500,500,200,500,333,760,276,500,564,0,760,333,400,564,300,300,333,500,453,250,333,300,310,500,750,750,750,444,722,722,722,722,722,722,889,667,611,611,611,611,333,333,333,333,722,722,722,722,722,722,722,564,722,722,722,722,722,722,556,500,444,444,444,444,444,444,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,564,500,500,500,500,500,500,500,500],t.timesRomanBoldWidth=[250,333,555,500,500,1e3,833,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,930,722,667,722,722,667,611,778,778,389,500,778,667,944,722,778,611,778,722,556,667,722,722,1e3,722,722,667,333,278,333,581,500,333,500,556,444,556,444,333,500,556,278,333,556,278,833,556,500,556,556,444,389,333,556,500,722,500,500,444,394,220,394,520,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,1e3,0,667,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,444,722,0,333,500,500,500,500,220,500,333,747,300,500,570,0,747,333,400,570,300,300,333,556,540,250,333,300,330,500,750,750,750,500,722,722,722,722,722,722,1e3,722,667,667,667,667,389,389,389,389,722,722,778,778,778,778,778,570,778,722,722,722,722,722,611,556,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,500,556,500],t.timesRomanItalicWidth=[250,333,420,500,500,833,778,214,333,333,500,675,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,675,675,675,500,920,611,611,667,722,611,611,722,722,333,444,667,556,833,667,722,611,722,611,500,556,722,611,833,611,556,556,389,278,389,422,500,333,500,500,444,500,444,278,500,500,278,278,444,278,722,500,500,500,500,389,389,278,500,444,667,444,444,389,400,275,400,541,0,500,0,333,500,556,889,500,500,333,1e3,500,333,944,0,556,0,0,333,333,556,556,350,500,889,333,980,389,333,667,0,389,556,0,389,500,500,500,500,275,500,333,760,276,500,675,0,760,333,400,675,300,300,333,500,523,250,333,300,310,500,750,750,750,500,611,611,611,611,611,611,889,667,611,611,611,611,333,333,333,333,722,667,722,722,722,722,722,675,722,722,722,722,722,556,611,500,500,500,500,500,500,500,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,675,500,500,500,500,500,444,500,444],t.timesRomanBoldItalicWidths=[250,389,555,500,500,833,778,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,832,667,667,667,722,667,667,722,778,389,500,667,611,889,722,722,611,722,667,556,611,722,667,889,667,611,611,333,278,333,570,500,333,500,500,444,500,444,333,500,556,278,278,500,278,778,556,500,500,500,389,389,278,556,444,667,500,444,389,348,220,348,570,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,944,0,611,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,389,611,0,389,500,500,500,500,220,500,333,747,266,500,606,0,747,333,400,570,300,300,333,576,500,250,333,300,300,500,750,750,750,500,667,667,667,667,667,667,944,667,667,667,667,667,389,389,389,389,722,722,722,722,722,722,722,570,722,722,722,722,722,611,611,500,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,444,500,444],t.symbolWidth=[250,333,713,500,549,833,778,439,333,333,500,549,250,549,250,278,500,500,500,500,500,500,500,500,500,500,278,278,549,549,549,444,549,722,667,722,612,611,763,603,722,333,631,722,686,889,722,722,768,741,556,592,611,690,439,768,645,795,611,333,863,333,658,500,500,631,549,549,494,439,521,411,603,329,603,549,549,576,521,549,549,521,549,603,439,576,713,686,493,686,494,480,200,480,549,750,620,247,549,167,713,500,753,753,753,753,1042,987,603,987,603,400,549,411,549,549,713,494,460,549,549,549,549,1e3,603,1e3,658,823,686,795,987,768,768,823,768,768,713,713,713,713,713,713,713,768,713,790,790,890,823,549,250,713,603,603,1042,987,603,987,603,494,329,790,790,786,713,384,384,384,384,384,384,494,494,494,494,329,274,686,686,686,384,384,384,384,384,384,494,494,494,-1],t.zapfDingbatsWidth=[278,974,961,974,980,719,789,790,791,690,960,939,549,855,911,933,911,945,974,755,846,762,761,571,677,763,760,759,754,494,552,537,577,692,786,788,788,790,793,794,816,823,789,841,823,833,816,831,923,744,723,749,790,792,695,776,768,792,759,707,708,682,701,826,815,789,789,707,687,696,689,786,787,713,791,785,791,873,761,762,762,759,759,892,892,788,784,438,138,277,415,392,392,668,668,390,390,317,317,276,276,509,509,410,410,234,234,334,334,732,544,544,910,667,760,760,776,595,694,626,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,894,838,1016,458,748,924,748,918,927,928,928,834,873,828,924,924,917,930,931,463,883,836,836,867,867,696,696,874,874,760,946,771,865,771,888,967,888,831,873,927,970,918],t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var r=i(10),n=function(){function t(){this.indexes=[],this.indexLevels=[],this.mirroringShapeCharacters=new r.a,this.update()}return t.prototype.doMirrorShaping=function(t){for(var e=[],i=0;i<t.length;i++)1==(1&this.indexLevels[i])&&this.mirroringShapeCharacters.containsKey(t[i].charCodeAt(0))?e[i]=String.fromCharCode(this.mirroringShapeCharacters.getValue(t[i].charCodeAt(0))):e[i]=t[i].toString();for(var r="",n=0;n<e.length;n++)r+=e[n];return r},t.prototype.getLogicalToVisualString=function(t,e){var i=new o;this.indexLevels=i.getVisualOrder(t,e),this.setDefaultIndexLevel(),this.doOrder(0,this.indexLevels.length-1);for(var r=this.doMirrorShaping(t),n="",s=0;s<this.indexes.length;s++){n+=r[this.indexes[s]]}return n.toString()},t.prototype.setDefaultIndexLevel=function(){for(var t=0;t<this.indexLevels.length;t++)this.indexes[t]=t},t.prototype.doOrder=function(t,e){for(var i=this.indexLevels[t],r=i,n=i,o=i,s=t+1;s<=e;++s){var a=this.indexLevels[s];a>i?i=a:a<r&&(r=a),n&=a,o|=a}if(0!=(1&o)){if(1==(1&n))return void this.reArrange(t,e+1);for(r|=1;i>=r;){for(var h=t;;){for(;h<=e&&!(this.indexLevels[h]>=i);)h+=1;if(h>e)break;for(var u=h+1;u<=e&&!(this.indexLevels[u]<i);)u+=1;this.reArrange(h,u),h=u+1}i-=1}}},t.prototype.reArrange=function(t,e){var i=(t+e)/2;for(--e;t<i;++t,--e){var r=this.indexes[t];this.indexes[t]=this.indexes[e],this.indexes[e]=r}},t.prototype.update=function(){this.mirroringShapeCharacters.setValue(40,41),this.mirroringShapeCharacters.setValue(41,40),this.mirroringShapeCharacters.setValue(60,62),this.mirroringShapeCharacters.setValue(62,60),this.mirroringShapeCharacters.setValue(91,93),this.mirroringShapeCharacters.setValue(93,91),this.mirroringShapeCharacters.setValue(123,125),this.mirroringShapeCharacters.setValue(125,123),this.mirroringShapeCharacters.setValue(171,187),this.mirroringShapeCharacters.setValue(187,171),this.mirroringShapeCharacters.setValue(8249,8250),this.mirroringShapeCharacters.setValue(8250,8249),this.mirroringShapeCharacters.setValue(8261,8262),this.mirroringShapeCharacters.setValue(8262,8261),this.mirroringShapeCharacters.setValue(8317,8318),this.mirroringShapeCharacters.setValue(8318,8317),this.mirroringShapeCharacters.setValue(8333,8334),this.mirroringShapeCharacters.setValue(8334,8333),this.mirroringShapeCharacters.setValue(8712,8715),this.mirroringShapeCharacters.setValue(8713,8716),this.mirroringShapeCharacters.setValue(8714,8717),this.mirroringShapeCharacters.setValue(8715,8712),this.mirroringShapeCharacters.setValue(8716,8713),this.mirroringShapeCharacters.setValue(8717,8714),this.mirroringShapeCharacters.setValue(8725,10741),this.mirroringShapeCharacters.setValue(8764,8765),this.mirroringShapeCharacters.setValue(8765,8764),this.mirroringShapeCharacters.setValue(8771,8909),this.mirroringShapeCharacters.setValue(8786,8787),this.mirroringShapeCharacters.setValue(8787,8786),this.mirroringShapeCharacters.setValue(8788,8789),this.mirroringShapeCharacters.setValue(8789,8788),this.mirroringShapeCharacters.setValue(8804,8805),this.mirroringShapeCharacters.setValue(8805,8804),this.mirroringShapeCharacters.setValue(8806,8807),this.mirroringShapeCharacters.setValue(8807,8806),this.mirroringShapeCharacters.setValue(8808,8809),this.mirroringShapeCharacters.setValue(8809,8808),this.mirroringShapeCharacters.setValue(8810,8811),this.mirroringShapeCharacters.setValue(8811,8810),this.mirroringShapeCharacters.setValue(8814,8815),this.mirroringShapeCharacters.setValue(8815,8814),this.mirroringShapeCharacters.setValue(8816,8817),this.mirroringShapeCharacters.setValue(8817,8816),this.mirroringShapeCharacters.setValue(8818,8819),this.mirroringShapeCharacters.setValue(8819,8818),this.mirroringShapeCharacters.setValue(8820,8821),this.mirroringShapeCharacters.setValue(8821,8820),this.mirroringShapeCharacters.setValue(8822,8823),this.mirroringShapeCharacters.setValue(8823,8822),this.mirroringShapeCharacters.setValue(8824,8825),this.mirroringShapeCharacters.setValue(8825,8824),this.mirroringShapeCharacters.setValue(8826,8827),this.mirroringShapeCharacters.setValue(8827,8826),this.mirroringShapeCharacters.setValue(8828,8829),this.mirroringShapeCharacters.setValue(8829,8828),this.mirroringShapeCharacters.setValue(8830,8831),this.mirroringShapeCharacters.setValue(8831,8830),this.mirroringShapeCharacters.setValue(8832,8833),this.mirroringShapeCharacters.setValue(8833,8832),this.mirroringShapeCharacters.setValue(8834,8835),this.mirroringShapeCharacters.setValue(8835,8834),this.mirroringShapeCharacters.setValue(8836,8837),this.mirroringShapeCharacters.setValue(8837,8836),this.mirroringShapeCharacters.setValue(8838,8839),this.mirroringShapeCharacters.setValue(8839,8838),this.mirroringShapeCharacters.setValue(8840,8841),this.mirroringShapeCharacters.setValue(8841,8840),this.mirroringShapeCharacters.setValue(8842,8843),this.mirroringShapeCharacters.setValue(8843,8842),this.mirroringShapeCharacters.setValue(8847,8848),this.mirroringShapeCharacters.setValue(8848,8847),this.mirroringShapeCharacters.setValue(8849,8850),this.mirroringShapeCharacters.setValue(8850,8849),this.mirroringShapeCharacters.setValue(8856,10680),this.mirroringShapeCharacters.setValue(8866,8867),this.mirroringShapeCharacters.setValue(8867,8866),this.mirroringShapeCharacters.setValue(8870,10974),this.mirroringShapeCharacters.setValue(8872,10980),this.mirroringShapeCharacters.setValue(8873,10979),this.mirroringShapeCharacters.setValue(8875,10981),this.mirroringShapeCharacters.setValue(8880,8881),this.mirroringShapeCharacters.setValue(8881,8880),this.mirroringShapeCharacters.setValue(8882,8883),this.mirroringShapeCharacters.setValue(8883,8882),this.mirroringShapeCharacters.setValue(8884,8885),this.mirroringShapeCharacters.setValue(8885,8884),this.mirroringShapeCharacters.setValue(8886,8887),this.mirroringShapeCharacters.setValue(8887,8886),this.mirroringShapeCharacters.setValue(8905,8906),this.mirroringShapeCharacters.setValue(8906,8905),this.mirroringShapeCharacters.setValue(8907,8908),this.mirroringShapeCharacters.setValue(8908,8907),this.mirroringShapeCharacters.setValue(8909,8771),this.mirroringShapeCharacters.setValue(8912,8913),this.mirroringShapeCharacters.setValue(8913,8912),this.mirroringShapeCharacters.setValue(8918,8919),this.mirroringShapeCharacters.setValue(8919,8918),this.mirroringShapeCharacters.setValue(8920,8921),this.mirroringShapeCharacters.setValue(8921,8920),this.mirroringShapeCharacters.setValue(8922,8923),this.mirroringShapeCharacters.setValue(8923,8922),this.mirroringShapeCharacters.setValue(8924,8925),this.mirroringShapeCharacters.setValue(8925,8924),this.mirroringShapeCharacters.setValue(8926,8927),this.mirroringShapeCharacters.setValue(8927,8926),this.mirroringShapeCharacters.setValue(8928,8929),this.mirroringShapeCharacters.setValue(8929,8928),this.mirroringShapeCharacters.setValue(8930,8931),this.mirroringShapeCharacters.setValue(8931,8930),this.mirroringShapeCharacters.setValue(8932,8933),this.mirroringShapeCharacters.setValue(8933,8932),this.mirroringShapeCharacters.setValue(8934,8935),this.mirroringShapeCharacters.setValue(8935,8934),this.mirroringShapeCharacters.setValue(8936,8937),this.mirroringShapeCharacters.setValue(8937,8936),this.mirroringShapeCharacters.setValue(8938,8939),this.mirroringShapeCharacters.setValue(8939,8938),this.mirroringShapeCharacters.setValue(8940,8941),this.mirroringShapeCharacters.setValue(8941,8940),this.mirroringShapeCharacters.setValue(8944,8945),this.mirroringShapeCharacters.setValue(8945,8944),this.mirroringShapeCharacters.setValue(8946,8954),this.mirroringShapeCharacters.setValue(8947,8955),this.mirroringShapeCharacters.setValue(8948,8956),this.mirroringShapeCharacters.setValue(8950,8957),this.mirroringShapeCharacters.setValue(8951,8958),this.mirroringShapeCharacters.setValue(8954,8946),this.mirroringShapeCharacters.setValue(8955,8947),this.mirroringShapeCharacters.setValue(8956,8948),this.mirroringShapeCharacters.setValue(8957,8950),this.mirroringShapeCharacters.setValue(8958,8951),this.mirroringShapeCharacters.setValue(8968,8969),this.mirroringShapeCharacters.setValue(8969,8968),this.mirroringShapeCharacters.setValue(8970,8971),this.mirroringShapeCharacters.setValue(8971,8970),this.mirroringShapeCharacters.setValue(9001,9002),this.mirroringShapeCharacters.setValue(9002,9001),this.mirroringShapeCharacters.setValue(10088,10089),this.mirroringShapeCharacters.setValue(10089,10088),this.mirroringShapeCharacters.setValue(10090,10091),this.mirroringShapeCharacters.setValue(10091,10090),this.mirroringShapeCharacters.setValue(10092,10093),this.mirroringShapeCharacters.setValue(10093,10092),this.mirroringShapeCharacters.setValue(10094,10095),this.mirroringShapeCharacters.setValue(10095,10094),this.mirroringShapeCharacters.setValue(10096,10097),this.mirroringShapeCharacters.setValue(10097,10096),this.mirroringShapeCharacters.setValue(10098,10099),this.mirroringShapeCharacters.setValue(10099,10098),this.mirroringShapeCharacters.setValue(10100,10101),this.mirroringShapeCharacters.setValue(10101,10100),this.mirroringShapeCharacters.setValue(10197,10198),this.mirroringShapeCharacters.setValue(10198,10197),this.mirroringShapeCharacters.setValue(10205,10206),this.mirroringShapeCharacters.setValue(10206,10205),this.mirroringShapeCharacters.setValue(10210,10211),this.mirroringShapeCharacters.setValue(10211,10210),this.mirroringShapeCharacters.setValue(10212,10213),this.mirroringShapeCharacters.setValue(10213,10212),this.mirroringShapeCharacters.setValue(10214,10215),this.mirroringShapeCharacters.setValue(10215,10214),this.mirroringShapeCharacters.setValue(10216,10217),this.mirroringShapeCharacters.setValue(10217,10216),this.mirroringShapeCharacters.setValue(10218,10219),this.mirroringShapeCharacters.setValue(10219,10218),this.mirroringShapeCharacters.setValue(10627,10628),this.mirroringShapeCharacters.setValue(10628,10627),this.mirroringShapeCharacters.setValue(10629,10630),this.mirroringShapeCharacters.setValue(10630,10629),this.mirroringShapeCharacters.setValue(10631,10632),this.mirroringShapeCharacters.setValue(10632,10631),this.mirroringShapeCharacters.setValue(10633,10634),this.mirroringShapeCharacters.setValue(10634,10633),this.mirroringShapeCharacters.setValue(10635,10636),this.mirroringShapeCharacters.setValue(10636,10635),this.mirroringShapeCharacters.setValue(10637,10640),this.mirroringShapeCharacters.setValue(10638,10639),this.mirroringShapeCharacters.setValue(10639,10638),this.mirroringShapeCharacters.setValue(10640,10637),this.mirroringShapeCharacters.setValue(10641,10642),this.mirroringShapeCharacters.setValue(10642,10641),this.mirroringShapeCharacters.setValue(10643,10644),this.mirroringShapeCharacters.setValue(10644,10643),this.mirroringShapeCharacters.setValue(10645,10646),this.mirroringShapeCharacters.setValue(10646,10645),this.mirroringShapeCharacters.setValue(10647,10648),this.mirroringShapeCharacters.setValue(10648,10647),this.mirroringShapeCharacters.setValue(10680,8856),this.mirroringShapeCharacters.setValue(10688,10689),this.mirroringShapeCharacters.setValue(10689,10688),this.mirroringShapeCharacters.setValue(10692,10693),this.mirroringShapeCharacters.setValue(10693,10692),this.mirroringShapeCharacters.setValue(10703,10704),this.mirroringShapeCharacters.setValue(10704,10703),this.mirroringShapeCharacters.setValue(10705,10706),this.mirroringShapeCharacters.setValue(10706,10705),this.mirroringShapeCharacters.setValue(10708,10709),this.mirroringShapeCharacters.setValue(10709,10708),this.mirroringShapeCharacters.setValue(10712,10713);this.mirroringShapeCharacters.setValue(10713,10712),this.mirroringShapeCharacters.setValue(10714,10715),this.mirroringShapeCharacters.setValue(10715,10714),this.mirroringShapeCharacters.setValue(10741,8725),this.mirroringShapeCharacters.setValue(10744,10745),this.mirroringShapeCharacters.setValue(10745,10744),this.mirroringShapeCharacters.setValue(10748,10749),this.mirroringShapeCharacters.setValue(10749,10748),this.mirroringShapeCharacters.setValue(10795,10796),this.mirroringShapeCharacters.setValue(10796,10795),this.mirroringShapeCharacters.setValue(10797,10796),this.mirroringShapeCharacters.setValue(10798,10797),this.mirroringShapeCharacters.setValue(10804,10805),this.mirroringShapeCharacters.setValue(10805,10804),this.mirroringShapeCharacters.setValue(10812,10813),this.mirroringShapeCharacters.setValue(10813,10812),this.mirroringShapeCharacters.setValue(10852,10853),this.mirroringShapeCharacters.setValue(10853,10852),this.mirroringShapeCharacters.setValue(10873,10874),this.mirroringShapeCharacters.setValue(10874,10873),this.mirroringShapeCharacters.setValue(10877,10878),this.mirroringShapeCharacters.setValue(10878,10877),this.mirroringShapeCharacters.setValue(10879,10880),this.mirroringShapeCharacters.setValue(10880,10879),this.mirroringShapeCharacters.setValue(10881,10882),this.mirroringShapeCharacters.setValue(10882,10881),this.mirroringShapeCharacters.setValue(10883,10884),this.mirroringShapeCharacters.setValue(10884,10883),this.mirroringShapeCharacters.setValue(10891,10892),this.mirroringShapeCharacters.setValue(10892,10891),this.mirroringShapeCharacters.setValue(10897,10898),this.mirroringShapeCharacters.setValue(10898,10897),this.mirroringShapeCharacters.setValue(10899,10900),this.mirroringShapeCharacters.setValue(10900,10899),this.mirroringShapeCharacters.setValue(10901,10902),this.mirroringShapeCharacters.setValue(10902,10901),this.mirroringShapeCharacters.setValue(10903,10904),this.mirroringShapeCharacters.setValue(10904,10903),this.mirroringShapeCharacters.setValue(10905,10906),this.mirroringShapeCharacters.setValue(10906,10905),this.mirroringShapeCharacters.setValue(10907,10908),this.mirroringShapeCharacters.setValue(10908,10907),this.mirroringShapeCharacters.setValue(10913,10914),this.mirroringShapeCharacters.setValue(10914,10913),this.mirroringShapeCharacters.setValue(10918,10919),this.mirroringShapeCharacters.setValue(10919,10918),this.mirroringShapeCharacters.setValue(10920,10921),this.mirroringShapeCharacters.setValue(10921,10920),this.mirroringShapeCharacters.setValue(10922,10923),this.mirroringShapeCharacters.setValue(10923,10922),this.mirroringShapeCharacters.setValue(10924,10925),this.mirroringShapeCharacters.setValue(10925,10924),this.mirroringShapeCharacters.setValue(10927,10928),this.mirroringShapeCharacters.setValue(10928,10927),this.mirroringShapeCharacters.setValue(10931,10932),this.mirroringShapeCharacters.setValue(10932,10931),this.mirroringShapeCharacters.setValue(10939,10940),this.mirroringShapeCharacters.setValue(10940,10939),this.mirroringShapeCharacters.setValue(10941,10942),this.mirroringShapeCharacters.setValue(10942,10941),this.mirroringShapeCharacters.setValue(10943,10944),this.mirroringShapeCharacters.setValue(10944,10943),this.mirroringShapeCharacters.setValue(10945,10946),this.mirroringShapeCharacters.setValue(10946,10945),this.mirroringShapeCharacters.setValue(10947,10948),this.mirroringShapeCharacters.setValue(10948,10947),this.mirroringShapeCharacters.setValue(10949,10950),this.mirroringShapeCharacters.setValue(10950,10949),this.mirroringShapeCharacters.setValue(10957,10958),this.mirroringShapeCharacters.setValue(10958,10957),this.mirroringShapeCharacters.setValue(10959,10960),this.mirroringShapeCharacters.setValue(10960,10959),this.mirroringShapeCharacters.setValue(10961,10962),this.mirroringShapeCharacters.setValue(10962,10961),this.mirroringShapeCharacters.setValue(10963,10964),this.mirroringShapeCharacters.setValue(10964,10963),this.mirroringShapeCharacters.setValue(10965,10966),this.mirroringShapeCharacters.setValue(10966,10965),this.mirroringShapeCharacters.setValue(10974,8870),this.mirroringShapeCharacters.setValue(10979,8873),this.mirroringShapeCharacters.setValue(10980,8872),this.mirroringShapeCharacters.setValue(10981,8875),this.mirroringShapeCharacters.setValue(10988,10989),this.mirroringShapeCharacters.setValue(10989,10988),this.mirroringShapeCharacters.setValue(10999,11e3),this.mirroringShapeCharacters.setValue(11e3,10999),this.mirroringShapeCharacters.setValue(11001,11002),this.mirroringShapeCharacters.setValue(11002,11001),this.mirroringShapeCharacters.setValue(12296,12297),this.mirroringShapeCharacters.setValue(12297,12296),this.mirroringShapeCharacters.setValue(12298,12299),this.mirroringShapeCharacters.setValue(12299,12298),this.mirroringShapeCharacters.setValue(12300,12301),this.mirroringShapeCharacters.setValue(12301,12300),this.mirroringShapeCharacters.setValue(12302,12303),this.mirroringShapeCharacters.setValue(12303,12302),this.mirroringShapeCharacters.setValue(12304,12305),this.mirroringShapeCharacters.setValue(12305,12304),this.mirroringShapeCharacters.setValue(12308,12309),this.mirroringShapeCharacters.setValue(12309,12308),this.mirroringShapeCharacters.setValue(12310,12311),this.mirroringShapeCharacters.setValue(12311,12310),this.mirroringShapeCharacters.setValue(12312,12313),this.mirroringShapeCharacters.setValue(12313,12312),this.mirroringShapeCharacters.setValue(12314,12315),this.mirroringShapeCharacters.setValue(12315,12314),this.mirroringShapeCharacters.setValue(65288,65289),this.mirroringShapeCharacters.setValue(65289,65288),this.mirroringShapeCharacters.setValue(65308,65310),this.mirroringShapeCharacters.setValue(65310,65308),this.mirroringShapeCharacters.setValue(65339,65341),this.mirroringShapeCharacters.setValue(65341,65339),this.mirroringShapeCharacters.setValue(65371,65373),this.mirroringShapeCharacters.setValue(65373,65371),this.mirroringShapeCharacters.setValue(65375,65376),this.mirroringShapeCharacters.setValue(65376,65375),this.mirroringShapeCharacters.setValue(65378,65379),this.mirroringShapeCharacters.setValue(65379,65378)},t}(),o=function(){function t(){this.types=[],this.textOrder=-1,this.rtlCharacterTypes=new Array(65536),this.L=0,this.LRE=1,this.LRO=2,this.R=3,this.AL=4,this.RLE=5,this.RLO=6,this.PDF=7,this.EN=8,this.ES=9,this.ET=10,this.AN=11,this.CS=12,this.NSM=13,this.BN=14,this.B=15,this.S=16,this.WS=17,this.ON=18,this.charTypes=[this.L,this.EN,this.BN,this.ES,this.ES,this.S,this.ET,this.ET,this.B,this.AN,this.AN,this.S,this.CS,this.CS,this.WS,this.NSM,this.NSM,this.B,this.BN,27,this.BN,28,30,this.B,31,31,this.S,32,32,this.WS,33,34,this.ON,35,37,this.ET,38,42,this.ON,43,43,this.ET,44,44,this.CS,45,45,this.ET,46,46,this.CS,47,47,this.CS,48,57,this.EN,58,58,this.CS,59,64,this.ON,65,90,this.L,91,96,this.ON,97,122,this.L,123,126,this.ON,127,132,this.BN,133,133,this.B,134,159,this.BN,160,160,this.CS,161,161,this.ON,162,165,this.ET,166,169,this.ON,170,170,this.L,171,175,this.ON,176,177,this.ET,178,179,this.EN,180,180,this.ON,181,181,this.L,182,184,this.ON,185,185,this.EN,186,186,this.L,187,191,this.ON,192,214,this.L,215,215,this.ON,216,246,this.L,247,247,this.ON,248,696,this.L,697,698,this.ON,699,705,this.L,706,719,this.ON,720,721,this.L,722,735,this.ON,736,740,this.L,741,749,this.ON,750,750,this.L,751,767,this.ON,768,855,this.NSM,856,860,this.L,861,879,this.NSM,880,883,this.L,884,885,this.ON,886,893,this.L,894,894,this.ON,895,899,this.L,900,901,this.ON,902,902,this.L,903,903,this.ON,904,1013,this.L,1014,1014,this.ON,1015,1154,this.L,1155,1158,this.NSM,1159,1159,this.L,1160,1161,this.NSM,1162,1417,this.L,1418,1418,this.ON,1419,1424,this.L,1425,1441,this.NSM,1442,1442,this.L,1443,1465,this.NSM,1466,1466,this.L,1467,1469,this.NSM,1470,1470,this.R,1471,1471,this.NSM,1472,1472,this.R,1473,1474,this.NSM,1475,1475,this.R,1476,1476,this.NSM,1477,1487,this.L,1488,1514,this.R,1515,1519,this.L,1520,1524,this.R,1525,1535,this.L,1536,1539,this.AL,1540,1547,this.L,1548,1548,this.CS,1549,1549,this.AL,1550,1551,this.ON,1552,1557,this.NSM,1558,1562,this.L,1563,1563,this.AL,1564,1566,this.L,1567,1567,this.AL,1568,1568,this.L,1569,1594,this.AL,1595,1599,this.L,1600,1610,this.AL,1611,1624,this.NSM,1625,1631,this.L,1632,1641,this.AN,1642,1642,this.ET,1643,1644,this.AN,1645,1647,this.AL,1648,1648,this.NSM,1649,1749,this.AL,1750,1756,this.NSM,1757,1757,this.AL,1758,1764,this.NSM,1765,1766,this.AL,1767,1768,this.NSM,1769,1769,this.ON,1770,1773,this.NSM,1774,1775,this.AL,1776,1785,this.EN,1786,1805,this.AL,1806,1806,this.L,1807,1807,this.BN,1808,1808,this.AL,1809,1809,this.NSM,1810,1839,this.AL,1840,1866,this.NSM,1867,1868,this.L,1869,1871,this.AL,1872,1919,this.L,1920,1957,this.AL,1958,1968,this.NSM,1969,1969,this.AL,1970,2304,this.L,2305,2306,this.NSM,2307,2363,this.L,2364,2364,this.NSM,2365,2368,this.L,2369,2376,this.NSM,2377,2380,this.L,2381,2381,this.NSM,2382,2384,this.L,2385,2388,this.NSM,2389,2401,this.L,2402,2403,this.NSM,2404,2432,this.L,2433,2433,this.NSM,2434,2491,this.L,2492,2492,this.NSM,2493,2496,this.L,2497,2500,this.NSM,2501,2508,this.L,2509,2509,this.NSM,2510,2529,this.L,2530,2531,this.NSM,2532,2545,this.L,2546,2547,this.ET,2548,2560,this.L,2561,2562,this.NSM,2563,2619,this.L,2620,2620,this.NSM,2621,2624,this.L,2625,2626,this.NSM,2627,2630,this.L,2631,2632,this.NSM,2633,2634,this.L,2635,2637,this.NSM,2638,2671,this.L,2672,2673,this.NSM,2674,2688,this.L,2689,2690,this.NSM,2691,2747,this.L,2748,2748,this.NSM,2749,2752,this.L,2753,2757,this.NSM,2758,2758,this.L,2759,2760,this.NSM,2761,2764,this.L,2765,2765,this.NSM,2766,2785,this.L,2786,2787,this.NSM,2788,2800,this.L,2801,2801,this.ET,2802,2816,this.L,2817,2817,this.NSM,2818,2875,this.L,2876,2876,this.NSM,2877,2878,this.L,2879,2879,this.NSM,2880,2880,this.L,2881,2883,this.NSM,2884,2892,this.L,2893,2893,this.NSM,2894,2901,this.L,2902,2902,this.NSM,2903,2945,this.L,2946,2946,this.NSM,2947,3007,this.L,3008,3008,this.NSM,3009,3020,this.L,3021,3021,this.NSM,3022,3058,this.L,3059,3064,this.ON,3065,3065,this.ET,3066,3066,this.ON,3067,3133,this.L,3134,3136,this.NSM,3137,3141,this.L,3142,3144,this.NSM,3145,3145,this.L,3146,3149,this.NSM,3150,3156,this.L,3157,3158,this.NSM,3159,3259,this.L,3260,3260,this.NSM,3261,3275,this.L,3276,3277,this.NSM,3278,3392,this.L,3393,3395,this.NSM,3396,3404,this.L,3405,3405,this.NSM,3406,3529,this.L,3530,3530,this.NSM,3531,3537,this.L,3538,3540,this.NSM,3541,3541,this.L,3542,3542,this.NSM,3543,3632,this.L,3633,3633,this.NSM,3634,3635,this.L,3636,3642,this.NSM,3643,3646,this.L,3647,3647,this.ET,3648,3654,this.L,3655,3662,this.NSM,3663,3760,this.L,3761,3761,this.NSM,3762,3763,this.L,3764,3769,this.NSM,3770,3770,this.L,3771,3772,this.NSM,3773,3783,this.L,3784,3789,this.NSM,3790,3863,this.L,3864,3865,this.NSM,3866,3892,this.L,3893,3893,this.NSM,3894,3894,this.L,3895,3895,this.NSM,3896,3896,this.L,3897,3897,this.NSM,3898,3901,this.ON,3902,3952,this.L,3953,3966,this.NSM,3967,3967,this.L,3968,3972,this.NSM,3973,3973,this.L,3974,3975,this.NSM,3976,3983,this.L,3984,3991,this.NSM,3992,3992,this.L,3993,4028,this.NSM,4029,4037,this.L,4038,4038,this.NSM,4039,4140,this.L,4141,4144,this.NSM,4145,4145,this.L,4146,4146,this.NSM,4147,4149,this.L,4150,4151,this.NSM,4152,4152,this.L,4153,4153,this.NSM,4154,4183,this.L,4184,4185,this.NSM,4186,5759,this.L,5760,5760,this.WS,5761,5786,this.L,5787,5788,this.ON,5789,5905,this.L,5906,5908,this.NSM,5909,5937,this.L,5938,5940,this.NSM,5941,5969,this.L,5970,5971,this.NSM,5972,6001,this.L,6002,6003,this.NSM,6004,6070,this.L,6071,6077,this.NSM,6078,6085,this.L,6086,6086,this.NSM,6087,6088,this.L,6089,6099,this.NSM,6100,6106,this.L,6107,6107,this.ET,6108,6108,this.L,6109,6109,this.NSM,6110,6127,this.L,6128,6137,this.ON,6138,6143,this.L,6144,6154,this.ON,6155,6157,this.NSM,6158,6158,this.WS,6159,6312,this.L,6313,6313,this.NSM,6314,6431,this.L,6432,6434,this.NSM,6435,6438,this.L,6439,6443,this.NSM,6444,6449,this.L,6450,6450,this.NSM,6451,6456,this.L,6457,6459,this.NSM,6460,6463,this.L,6464,6464,this.ON,6465,6467,this.L,6468,6469,this.ON,6470,6623,this.L,6624,6655,this.ON,6656,8124,this.L,8125,8125,this.ON,8126,8126,this.L,8127,8129,this.ON,8130,8140,this.L,8141,8143,this.ON,8144,8156,this.L,8157,8159,this.ON,8160,8172,this.L,8173,8175,this.ON,8176,8188,this.L,8189,8190,this.ON,8191,8191,this.L,8192,8202,this.WS,8203,8205,this.BN,8206,8206,this.L,8207,8207,this.R,8208,8231,this.ON,8232,8232,this.WS,8233,8233,this.B,8234,8234,this.LRE,8235,8235,this.RLE,8236,8236,this.PDF,8237,8237,this.LRO,8238,8238,this.RLO,8239,8239,this.WS,8240,8244,this.ET,8245,8276,this.ON,8277,8278,this.L,8279,8279,this.ON,8280,8286,this.L,8287,8287,this.WS,8288,8291,this.BN,8292,8297,this.L,8298,8303,this.BN,8304,8304,this.EN,8305,8307,this.L,8308,8313,this.EN,8314,8315,this.ET,8316,8318,this.ON,8319,8319,this.L,8320,8329,this.EN,8330,8331,this.ET,8332,8334,this.ON,8335,8351,this.L,8352,8369,this.ET,8370,8399,this.L,8400,8426,this.NSM,8427,8447,this.L,8448,8449,this.ON,8450,8450,this.L,8451,8454,this.ON,8455,8455,this.L,8456,8457,this.ON,8458,8467,this.L,8468,8468,this.ON,8469,8469,this.L,8470,8472,this.ON,8473,8477,this.L,8478,8483,this.ON,8484,8484,this.L,8485,8485,this.ON,8486,8486,this.L,8487,8487,this.ON,8488,8488,this.L,8489,8489,this.ON,8490,8493,this.L,8494,8494,this.ET,8495,8497,this.L,8498,8498,this.ON,8499,8505,this.L,8506,8507,this.ON,8508,8511,this.L,8512,8516,this.ON,8517,8521,this.L,8522,8523,this.ON,8524,8530,this.L,8531,8543,this.ON,8544,8591,this.L,8592,8721,this.ON,8722,8723,this.ET,8724,9013,this.ON,9014,9082,this.L,9083,9108,this.ON,9109,9109,this.L,9110,9168,this.ON,9169,9215,this.L,9216,9254,this.ON,9255,9279,this.L,9280,9290,this.ON,9291,9311,this.L,9312,9371,this.EN,9372,9449,this.L,9450,9450,this.EN,9451,9751,this.ON,9752,9752,this.L,9753,9853,this.ON,9854,9855,this.L,9856,9873,this.ON,9874,9887,this.L,9888,9889,this.ON,9890,9984,this.L,9985,9988,this.ON,9989,9989,this.L,9990,9993,this.ON,9994,9995,this.L,9996,10023,this.ON,10024,10024,this.L,10025,10059,this.ON,10060,10060,this.L,10061,10061,this.ON,10062,10062,this.L,10063,10066,this.ON,10067,10069,this.L,10070,10070,this.ON,10071,10071,this.L,10072,10078,this.ON,10079,10080,this.L,10081,10132,this.ON,10133,10135,this.L,10136,10159,this.ON,10160,10160,this.L,10161,10174,this.ON,10175,10191,this.L,10192,10219,this.ON,10220,10223,this.L,10224,11021,this.ON,11022,11903,this.L,11904,11929,this.ON,11930,11930,this.L,11931,12019,this.ON,12020,12031,this.L,12032,12245,this.ON,12246,12271,this.L,12272,12283,this.ON,12284,12287,this.L,12288,12288,this.WS,12289,12292,this.ON,12293,12295,this.L,12296,12320,this.ON,12321,12329,this.L,12330,12335,this.NSM,12336,12336,this.ON,12337,12341,this.L,12342,12343,this.ON,12344,12348,this.L,12349,12351,this.ON,12352,12440,this.L,12441,12442,this.NSM,12443,12444,this.ON,12445,12447,this.L,12448,12448,this.ON,12449,12538,this.L,12539,12539,this.ON,12540,12828,this.L,12829,12830,this.ON,12831,12879,this.L,12880,12895,this.ON,12896,12923,this.L,12924,12925,this.ON,12926,12976,this.L,12977,12991,this.ON,12992,13003,this.L,13004,13007,this.ON,13008,13174,this.L,13175,13178,this.ON,13179,13277,this.L,13278,13279,this.ON,13280,13310,this.L,13311,13311,this.ON,13312,19903,this.L,19904,19967,this.ON,19968,42127,this.L,42128,42182,this.ON,42183,64284,this.L,64285,64285,this.R,64286,64286,this.NSM,64287,64296,this.R,64297,64297,this.ET,64298,64310,this.R,64311,64311,this.L,64312,64316,this.R,64317,64317,this.L,64318,64318,this.R,64319,64319,this.L,64320,64321,this.R,64322,64322,this.L,64323,64324,this.R,64325,64325,this.L,64326,64335,this.R,64336,64433,this.AL,64434,64466,this.L,64467,64829,this.AL,64830,64831,this.ON,64832,64847,this.L,64848,64911,this.AL,64912,64913,this.L,64914,64967,this.AL,64968,65007,this.L,65008,65020,this.AL,65021,65021,this.ON,65022,65023,this.L,65024,65039,this.NSM,65040,65055,this.L,65056,65059,this.NSM,65060,65071,this.L,65072,65103,this.ON,65104,65104,this.CS,65105,65105,this.ON,65106,65106,this.CS,65107,65107,this.L,65108,65108,this.ON,65109,65109,this.CS,65110,65118,this.ON,65119,65119,this.ET,65120,65121,this.ON,65122,65123,this.ET,65124,65126,this.ON,65127,65127,this.L,65128,65128,this.ON,65129,65130,this.ET,65131,65131,this.ON,65132,65135,this.L,65136,65140,this.AL,65141,65141,this.L,65142,65276,this.AL,65277,65278,this.L,65279,65279,this.BN,65280,65280,this.L,65281,65282,this.ON,65283,65285,this.ET,65286,65290,this.ON,65291,65291,this.ET,65292,65292,this.CS,65293,65293,this.ET,65294,65294,this.CS,65295,65295,this.ES,65296,65305,this.EN,65306,65306,this.CS,65307,65312,this.ON,65313,65338,this.L,65339,65344,this.ON,65345,65370,this.L,65371,65381,this.ON,65382,65503,this.L,65504,65505,this.ET,65506,65508,this.ON,65509,65510,this.ET,65511,65511,this.L,65512,65518,this.ON,65519,65528,this.L,65529,65531,this.BN,65532,65533,this.ON,65534,65535,this.L];for(var t=0;t<this.charTypes.length;++t)for(var e=this.charTypes[t],i=this.charTypes[++t],r=this.charTypes[++t];e<=i;)this.rtlCharacterTypes[e++]=r}return t.prototype.getVisualOrder=function(t,e){this.types=this.getCharacterCode(t),this.textOrder=e?this.LRE:this.L,this.doVisualOrder();for(var i=[],r=0;r<this.levels.length;r++)i[r]=this.levels[r];return i},t.prototype.getCharacterCode=function(t){for(var e=[],i=0;i<t.length;i++)e[i]=this.rtlCharacterTypes[t[i].charCodeAt(0)];return e},t.prototype.setDefaultLevels=function(){for(var t=0;t<this.length;t++)this.levels[t]=this.textOrder},t.prototype.setLevels=function(){this.setDefaultLevels();for(var t=0;t<this.length;++t){var e=this.levels[t];0!=(128&e)&&(e&=127,this.result[t]=0==(1&e)?this.L:this.R),this.levels[t]=e}},t.prototype.updateLevels=function(t,e,i){if(0==(1&e))for(var r=t;r<i;++r)this.result[r]===this.R?this.levels[r]+=1:this.result[r]!==this.L&&(this.levels[r]+=2);else for(var r=t;r<i;++r)this.result[r]!==this.R&&(this.levels[r]+=1)},t.prototype.doVisualOrder=function(){this.length=this.types.length,this.result=this.types,this.levels=[],this.setLevels(),this.length=this.getEmbeddedCharactersLength();for(var t=this.textOrder,e=0;e<this.length;){for(var i=this.levels[e],r=0==(1&Math.max(t,i))?this.L:this.R,n=e+1;n<this.length&&this.levels[n]===i;)++n;var o=n<this.length?this.levels[n]:this.textOrder,s=0==(1&Math.max(o,i))?this.L:this.R;this.checkNSM(e,n,i,r,s),this.updateLevels(e,i,n),t=i,e=n}this.checkEmbeddedCharacters(this.length)},t.prototype.getEmbeddedCharactersLength=function(){for(var t=0,e=0;e<this.length;++e)this.types[e]!==this.LRE&&this.types[e]!==this.RLE&&this.types[e]!==this.LRO&&this.types[e]!==this.RLO&&this.types[e]!==this.PDF&&this.types[e]!==this.BN&&(this.result[t]=this.result[e],this.levels[t]=this.levels[e],t++);return t},t.prototype.checkEmbeddedCharacters=function(t){for(var e=this.types.length-1;e>=0;--e)this.types[e]===this.LRE||this.types[e]===this.RLE||this.types[e]===this.LRO||this.types[e]===this.RLO||this.types[e]===this.PDF||this.types[e]===this.BN?(this.result[e]=this.types[e],this.levels[e]=-1):(t-=1,this.result[e]=this.result[t],this.levels[e]=this.levels[t]);for(var e=0;e<this.types.length;e++)-1===this.levels[e]&&(this.levels[e]=0===e?this.textOrder:this.levels[e-1])},t.prototype.checkNSM=function(t,e,i,r,n){for(var o=r,s=t;s<e;++s)this.result[s]===this.NSM?this.result[s]=o:o=this.result[s];this.checkEuropeanDigits(t,e,i,r,n)},t.prototype.checkEuropeanDigits=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.EN)for(var s=o-1;s>=t;--s)if(this.result[s]===this.L||this.result[s]===this.R||this.result[s]===this.AL){this.result[s]===this.AL&&(this.result[o]=this.AN);break}this.checkArabicCharacters(t,e,i,r,n)},t.prototype.checkArabicCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)this.result[o]===this.AL&&(this.result[o]=this.R);this.checkEuropeanNumberSeparator(t,e,i,r,n)},t.prototype.checkEuropeanNumberSeparator=function(t,e,i,r,n){for(var o=t+1;o<e-1;++o)if(this.result[o]===this.ES||this.result[o]===this.CS){var s=this.result[o-1],a=this.result[o+1];s===this.EN&&a===this.EN?this.result[o]=this.EN:this.result[o]===this.CS&&s===this.AN&&a===this.AN&&(this.result[o]=this.AN)}this.checkEuropeanNumberTerminator(t,e,i,r,n)},t.prototype.checkEuropeanNumberTerminator=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.ET){var s=o,a=[];a.push(this.ET);var h=this.getLength(s,e,a),u=s===t?r:this.result[s-1];if(u!==this.EN&&(u=h===e?n:this.result[h]),u===this.EN)for(var l=s;l<h;++l)this.result[l]=this.EN;o=h}this.checkOtherNeutrals(t,e,i,r,n)},t.prototype.checkOtherNeutrals=function(t,e,i,r,n){for(var o=t;o<e;++o)this.result[o]!==this.ES&&this.result[o]!==this.ET&&this.result[o]!==this.CS||(this.result[o]=this.ON);this.checkOtherCharacters(t,e,i,r,n)},t.prototype.checkOtherCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.EN){for(var s=r,a=o-1;a>=t;--a)if(this.result[a]===this.L||this.result[a]===this.R){s=this.result[a];break}s===this.L&&(this.result[o]=this.L)}this.checkCommanCharacters(t,e,i,r,n)},t.prototype.getLength=function(t,e,i){for(--t;++t<e;){for(var r=this.result[t],n=0;n<i.length;++n)r===i[n]&&(t=this.getLength(++t,e,i));return t}return e},t.prototype.checkCommanCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.WS||this.result[o]===this.ON||this.result[o]===this.B||this.result[o]===this.S){var s=o,a=[this.B,this.S,this.WS,this.ON],h=this.getLength(s,e,a),u=0,l=0,c=0;s===t?u=r:(u=this.result[s-1],u===this.AN?u=this.R:u===this.EN&&(u=this.R)),h===e?l=n:(l=this.result[h],l===this.AN?l=this.R:l===this.EN&&(l=this.R)),c=u===l?u:0==(1&i)?this.L:this.R;for(var d=s;d<h;++d)this.result[d]=c;o=h}},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var r=i(10),n=function(){function t(){this.arabicCharTable=[["ء","ﺀ"],["آ","ﺁ","ﺂ"],["أ","ﺃ","ﺄ"],["ؤ","ﺅ","ﺆ"],["إ","ﺇ","ﺈ"],["ئ","ﺉ","ﺊ","ﺋ","ﺌ"],["ا","ﺍ","ﺎ"],["ب","ﺏ","ﺐ","ﺑ","ﺒ"],["ة","ﺓ","ﺔ"],["ت","ﺕ","ﺖ","ﺗ","ﺘ"],["ث","ﺙ","ﺚ","ﺛ","ﺜ"],["ج","ﺝ","ﺞ","ﺟ","ﺠ"],["ح","ﺡ","ﺢ","ﺣ","ﺤ"],["خ","ﺥ","ﺦ","ﺧ","ﺨ"],["د","ﺩ","ﺪ"],["ذ","ﺫ","ﺬ"],["ر","ﺭ","ﺮ"],["ز","ﺯ","ﺰ"],["س","ﺱ","ﺲ","ﺳ","ﺴ"],["ش","ﺵ","ﺶ","ﺷ","ﺸ"],["ص","ﺹ","ﺺ","ﺻ","ﺼ"],["ض","ﺽ","ﺾ","ﺿ","ﻀ"],["ط","ﻁ","ﻂ","ﻃ","ﻄ"],["ظ","ﻅ","ﻆ","ﻇ","ﻈ"],["ع","ﻉ","ﻊ","ﻋ","ﻌ"],["غ","ﻍ","ﻎ","ﻏ","ﻐ"],["ـ","ـ","ـ","ـ","ـ"],["ف","ﻑ","ﻒ","ﻓ","ﻔ"],["ق","ﻕ","ﻖ","ﻗ","ﻘ"],["ك","ﻙ","ﻚ","ﻛ","ﻜ"],["ل","ﻝ","ﻞ","ﻟ","ﻠ"],["م","ﻡ","ﻢ","ﻣ","ﻤ"],["ن","ﻥ","ﻦ","ﻧ","ﻨ"],["ه","ﻩ","ﻪ","ﻫ","ﻬ"],["و","ﻭ","ﻮ"],["ى","ﻯ","ﻰ","ﯨ","ﯩ"],["ي","ﻱ","ﻲ","ﻳ","ﻴ"],["ٱ","ﭐ","ﭑ"],["ٹ","ﭦ","ﭧ","ﭨ","ﭩ"],["ٺ","ﭞ","ﭟ","ﭠ","ﭡ"],["ٻ","ﭒ","ﭓ","ﭔ","ﭕ"],["پ","ﭖ","ﭗ","ﭘ","ﭙ"],["ٿ","ﭢ","ﭣ","ﭤ","ﭥ"],["ڀ","ﭚ","ﭛ","ﭜ","ﭝ"],["ڃ","ﭶ","ﭷ","ﭸ","ﭹ"],["ڄ","ﭲ","ﭳ","ﭴ","ﭵ"],["چ","ﭺ","ﭻ","ﭼ","ﭽ"],["ڇ","ﭾ","ﭿ","ﮀ","ﮁ"],["ڈ","ﮈ","ﮉ"],["ڌ","ﮄ","ﮅ"],["ڍ","ﮂ","ﮃ"],["ڎ","ﮆ","ﮇ"],["ڑ","ﮌ","ﮍ"],["ژ","ﮊ","ﮋ"],["ڤ","ﭪ","ﭫ","ﭬ","ﭭ"],["ڦ","ﭮ","ﭯ","ﭰ","ﭱ"],["ک","ﮎ","ﮏ","ﮐ","ﮑ"],["ڭ","ﯓ","ﯔ","ﯕ","ﯖ"],["گ","ﮒ","ﮓ","ﮔ","ﮕ"],["ڱ","ﮚ","ﮛ","ﮜ","ﮝ"],["ڳ","ﮖ","ﮗ","ﮘ","ﮙ"],["ں","ﮞ","ﮟ"],["ڻ","ﮠ","ﮡ","ﮢ","ﮣ"],["ھ","ﮪ","ﮫ","ﮬ","ﮭ"],["ۀ","ﮤ","ﮥ"],["ہ","ﮦ","ﮧ","ﮨ","ﮩ"],["ۅ","ﯠ","ﯡ"],["ۆ","ﯙ","ﯚ"],["ۇ","ﯗ","ﯘ"],["ۈ","ﯛ","ﯜ"],["ۉ","ﯢ","ﯣ"],["ۋ","ﯞ","ﯟ"],["ی","ﯼ","ﯽ","ﯾ","ﯿ"],["ې","ﯤ","ﯥ","ﯦ","ﯧ"],["ے","ﮮ","ﮯ"],["ۓ","ﮰ","ﮱ"]],this.alef="ا",this.alefHamza="أ",this.alefHamzaBelow="إ",this.alefMadda="آ",this.lam="ل",this.hamza="ء",this.zeroWidthJoiner="",this.hamzaAbove="ٔ",this.hamzaBelow="ٕ",this.wawHamza="ؤ",this.yehHamza="ئ",this.waw="و",this.alefMaksura="ى",this.yeh="ي",this.farsiYeh="ی",this.shadda="ّ",this.madda="ٓ",this.lwa="ﻻ",this.lwawh="ﻷ",this.lwawhb="ﻹ",this.lwawm="ﻵ",this.bwhb="ۓ",this.fathatan="ً",this.superScriptalef="ٰ",this.vowel=1,this.arabicMapTable=new r.a;for(var t=0;t<this.arabicCharTable.length;t++)this.arabicMapTable.setValue(this.arabicCharTable[t][0],this.arabicCharTable[t])}return t.prototype.getCharacterShape=function(t,e){if(t>=this.hamza&&t<=this.bwhb){var i=[];if(this.arabicMapTable.getValue(t))return i=this.arabicMapTable.getValue(t),i[e+1]}else if(t>=this.lwawm&&t<=this.lwa)return t;return t},t.prototype.shape=function(t,e){for(var i="",r="",n=0;n<t.length;n++){var o=t[n];if(o>=""&&o<="ۿ")r+=o;else{if(r.length>0){var s=this.doShape(r.toString(),0);i+=s,r=""}i+=o}}if(r.length>0){var s=this.doShape(r.toString(),0);i+=s}return i.toString()},t.prototype.doShape=function(t,e){for(var i="",r=0,n=0,s="",a=new o,h=new o;n<t.length;)if(s=t[n++],0===this.ligature(s,h)){var u=this.getShapeCount(s);r=1===u?0:2,a.Shapes>2&&(r+=1),r%=h.Shapes,h.Value=this.getCharacterShape(h.Value,r),i=this.append(i,a,e),a=h,h=new o,h.Value=s,h.Shapes=u,h.Ligature++}return r=a.Shapes>2?1:0,r%=h.Shapes,h.Value=this.getCharacterShape(h.Value,r),i=this.append(i,a,e),i=this.append(i,h,e),i.toString()},t.prototype.append=function(t,e,i){return""!==e.Value&&(t+=e.Value,e.Ligature-=1,""!==e.Type&&(0==(i&this.vowel)?(t+=e.Type,e.Ligature-=1):e.Ligature-=1),""!==e.vowel&&(0==(i&this.vowel)?(t+=e.vowel,e.Ligature-=1):e.Ligature-=1)),t},t.prototype.ligature=function(t,e){if(""!==e.Value){var i=0;if(t>=this.fathatan&&t<=this.hamzaBelow||t===this.superScriptalef){if(i=1,""!==e.vowel&&t!==this.shadda&&(i=2),t===this.shadda){if(null!=e.Type)return 0;e.Type=this.shadda}else t===this.hamzaBelow?e.Value===this.alef?(e.Value=this.alefHamzaBelow,i=2):t===this.lwa?(e.Value=this.lwawhb,i=2):e.Type=this.hamzaBelow:t===this.hamzaAbove?e.Value===this.alef?(e.Value=this.alefHamza,i=2):e.Value===this.lwa?(e.Value=this.lwawh,i=2):e.Value===this.waw?(e.Value=this.wawHamza,i=2):e.Value===this.yeh||e.Value===this.alefMaksura||e.Value===this.farsiYeh?(e.Value=this.yehHamza,i=2):e.Type=this.hamzaAbove:t===this.madda?e.Value===this.alef&&(e.Value=this.alefMadda,i=2):e.vowel=t;return 1===i&&e.Ligature++,i}return""!==e.vowel?0:(e.Value===this.lam&&(t===this.alef?(e.Value=this.lwa,e.Shapes=2,i=3):t===this.alefHamza?(e.Value=this.lwawh,e.Shapes=2,i=3):t===this.alefHamzaBelow?(e.Value=this.lwawhb,e.Shapes=2,i=3):t===this.alefMadda&&(e.Value=this.lwawm,e.Shapes=2,i=3)),i)}return 0},t.prototype.getShapeCount=function(t){if(t>=this.hamza&&t<=this.bwhb&&!(t>=this.fathatan&&t<=this.hamzaBelow||t===this.superScriptalef)){var e=[];if(this.arabicMapTable.getValue(t))return e=this.arabicMapTable.getValue(t),e.length-1}else if(t===this.zeroWidthJoiner)return 4;return 1},t}(),o=function(){function t(){this.shapeValue="",this.shapeType="",this.shapeVowel="",this.shapeLigature=0,this.shapeShapes=1}return Object.defineProperty(t.prototype,"Value",{get:function(){return this.shapeValue},set:function(t){this.shapeValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.shapeType},set:function(t){this.shapeType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vowel",{get:function(){return this.shapeVowel},set:function(t){this.shapeVowel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Ligature",{get:function(){return this.shapeLigature},set:function(t){this.shapeLigature=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Shapes",{get:function(){return this.shapeShapes},set:function(t){this.shapeShapes=t},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){this.pdfMargin=40,this.setMargins(this.pdfMargin)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftMargin},set:function(t){this.leftMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topMargin},set:function(t){this.topMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightMargin},set:function(t){this.rightMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomMargin},set:function(t){this.bottomMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"all",{set:function(t){this.setMargins(t)},enumerable:!0,configurable:!0}),t.prototype.setMargins=function(t,e,i,r){void 0===e?this.leftMargin=this.topMargin=this.rightMargin=this.bottomMargin=t:void 0===i?(this.leftMargin=this.rightMargin=t,this.bottomMargin=this.topMargin=e):(this.leftMargin=t,this.topMargin=e,this.rightMargin=i,this.bottomMargin=r)},t.prototype.clone=function(){return this},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return s});var r=i(0),n=i(5),o=function(){function t(t){this.radDegFactor=180/Math.PI,this.transformationMatrix=void 0===t?new s(1,0,0,1,0,0):new s(1,0,0,-1,0,0)}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.transformationMatrix},set:function(t){this.transformationMatrix=t},enumerable:!0,configurable:!0}),t.prototype.translate=function(t,e){this.transformationMatrix.translate(t,e)},t.prototype.scale=function(t,e){this.transformationMatrix.elements[0]=t,this.transformationMatrix.elements[3]=e},t.prototype.rotate=function(t){t=t*Math.PI/180,this.transformationMatrix.elements[0]=Math.cos(t),this.transformationMatrix.elements[1]=Math.sin(t),this.transformationMatrix.elements[2]=-Math.sin(t),this.transformationMatrix.elements[3]=Math.cos(t)},t.prototype.toString=function(){for(var t="",e=0,i=this.transformationMatrix.elements.length;e<i;e++){this.matrix.elements[e];t+=n.a.floatToString(this.transformationMatrix.elements[e]),t+=" "}return t},t.prototype.multiply=function(t){this.transformationMatrix.multiply(t.matrix)},t.degreesToRadians=function(t){return this.degRadFactor*t},t.prototype.radiansToDegrees=function(t){return this.radDegFactor*t},t.prototype.clone=function(){return this},t.degRadFactor=Math.PI/180,t}(),s=function(){function t(t,e,i,r,n,o){void 0===t?this.metrixElements=[]:"number"==typeof t?(this.metrixElements=[],this.metrixElements.push(t),this.metrixElements.push(e),this.metrixElements.push(i),this.metrixElements.push(r),this.metrixElements.push(n),this.metrixElements.push(o)):this.metrixElements=t}return Object.defineProperty(t.prototype,"elements",{get:function(){return this.metrixElements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetX",{get:function(){return this.metrixElements[4]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetY",{get:function(){return this.metrixElements[5]},enumerable:!0,configurable:!0}),t.prototype.translate=function(t,e){this.metrixElements[4]=t,this.metrixElements[5]=e},t.prototype.transform=function(t){var e=t.x,i=t.y,n=e*this.elements[0]+i*this.elements[2]+this.offsetX,o=e*this.elements[1]+i*this.elements[3]+this.offsetY;return new r.a(n,o)},t.prototype.multiply=function(t){var e=[];e.push(this.elements[0]*t.elements[0]+this.elements[1]*t.elements[2]),e[1]=this.elements[0]*t.elements[1]+this.elements[1]*t.elements[3],e[2]=this.elements[2]*t.elements[0]+this.elements[3]*t.elements[2],e[3]=this.elements[2]*t.elements[1]+this.elements[3]*t.elements[3],e[4]=this.offsetX*t.elements[0]+this.offsetY*t.elements[2]+t.offsetX,e[5]=this.offsetX*t.elements[1]+this.offsetY*t.elements[3]+t.offsetY;for(var i=0;i<e.length;i++)this.elements[i]=e[i]},t.prototype.dispose=function(){this.metrixElements=null},t.prototype.clone=function(){return new t(this.metrixElements)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r;!function(t){t[t.Free=0]="Free",t[t.Normal=1]="Normal",t[t.Packed=2]="Packed"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return s});var r=i(10),n=i(50),o=function(){function t(){this.objectCollections=[],this.mainObjectCollection=new r.a,this.primitiveObjectCollection=new r.a}return Object.defineProperty(t.prototype,"count",{get:function(){return this.objectCollections.length},enumerable:!0,configurable:!0}),t.prototype.items=function(t){return this.objectCollections[t]},Object.defineProperty(t.prototype,"outIsNew",{get:function(){return this.isNew},enumerable:!0,configurable:!0}),t.prototype.add=function(t){var e=new s(t);this.objectCollections.push(e),this.primitiveObjectCollection.containsKey(t)||this.primitiveObjectCollection.setValue(t,this.objectCollections.length-1),t.position=this.index=this.objectCollections.length-1,t.status=n.a.Registered},t.prototype.lookFor=function(t){var e=-1;if(-1!==t.position)return t.position;if(this.primitiveObjectCollection.containsKey(t)&&this.count===this.primitiveObjectCollection.size())e=this.primitiveObjectCollection.getValue(t);else for(var i=this.count-1;i>=0;i--){var r=this.objectCollections[i];if(r.object===t){e=i;break}}return e},t.prototype.getReference=function(t,e){this.index=this.lookFor(t);var i;return this.isNew=!1,i=this.objectCollections[this.index].reference,{reference:i,wasNew:e}},t.prototype.trySetReference=function(t,e,i){return!0,this.index=this.lookFor(t),this.objectCollections[this.index].setReference(e),!0},t.prototype.destroy=function(){for(var t=0,e=this.objectCollections;t<e.length;t++){var i=e[t];void 0!==i&&(i.pdfObject.position=-1,i.pdfObject.isSaving=void 0,i.pdfObject.objectCollectionIndex=void 0,i.pdfObject.position=void 0)}this.objectCollections=[],this.mainObjectCollection=new r.a,this.primitiveObjectCollection=new r.a},t}(),s=function(){function t(t,e){this.pdfObject=t,this.pdfReference=e}return Object.defineProperty(t.prototype,"object",{get:function(){return this.pdfObject},set:function(t){this.pdfObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),t.prototype.setReference=function(t){this.pdfReference=t},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(16),n=i(5),o=i(0),s=i(17),a=i(3),h=function(){function t(t){if(null==t)throw new Error("ArgumentNullException:stream");this.stream=t}return t.prototype.clear=function(){this.stream.clearStream()},t.prototype.setGraphicsState=function(t){t instanceof a.a?(this.stream.write(t.toString()),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setGraphicsState)):(this.stream.write(r.a.slash),this.stream.write(t),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setGraphicsState))},t.prototype.executeObject=function(t){this.stream.write(t.toString()),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.paintXObject),this.stream.write(r.a.newLine)},t.prototype.closePath=function(){this.writeOperator(r.a.closePath)},t.prototype.clipPath=function(t){this.stream.write(r.a.clipPath),t&&this.stream.write(r.a.evenOdd),this.stream.write(r.a.whiteSpace),this.stream.write(r.a.endPath),this.stream.write(r.a.newLine)},t.prototype.closeFillStrokePath=function(t){this.stream.write(r.a.closeFillStrokePath),t?(this.stream.write(r.a.evenOdd),this.stream.write(r.a.newLine)):this.stream.write(r.a.newLine)},t.prototype.fillStrokePath=function(t){this.stream.write(r.a.fillStroke),t?(this.stream.write(r.a.evenOdd),this.stream.write(r.a.newLine)):this.stream.write(r.a.newLine)},t.prototype.fillPath=function(t){this.stream.write(r.a.fill),t?(this.stream.write(r.a.evenOdd),this.stream.write(r.a.newLine)):this.stream.write(r.a.newLine)},t.prototype.endPath=function(){this.writeOperator(r.a.n)},t.prototype.closeFillPath=function(t){this.writeOperator(r.a.closePath),this.stream.write(r.a.fill),t?(this.stream.write(r.a.evenOdd),this.stream.write(r.a.newLine)):this.stream.write(r.a.newLine)},t.prototype.closeStrokePath=function(){this.writeOperator(r.a.closeStrokePath)},t.prototype.setTextScaling=function(t){this.stream.write(n.a.floatToString(t)),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setTextScaling)},t.prototype.strokePath=function(){this.writeOperator(r.a.stroke)},t.prototype.restoreGraphicsState=function(){this.writeOperator(r.a.restoreState)},t.prototype.saveGraphicsState=function(){this.writeOperator(r.a.saveState)},t.prototype.startNextLine=function(t,e){void 0===t?this.writeOperator(r.a.goToNextLine):t instanceof o.a?(this.writePoint(t),this.writeOperator(r.a.setCoords)):(this.writePoint(t,e),this.writeOperator(r.a.setCoords))},t.prototype.showText=function(t){this.checkTextParam(t),this.writeText(t),this.writeOperator(r.a.setText)},t.prototype.setLeading=function(t){this.stream.write(n.a.floatToString(t)),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setTextLeading)},t.prototype.beginPath=function(t,e){this.writePoint(t,e),this.writeOperator(r.a.beginPath)},t.prototype.beginText=function(){this.writeOperator(r.a.beginText)},t.prototype.endText=function(){this.writeOperator(r.a.endText)},t.prototype.appendRectangle=function(t,e,i,n){t instanceof o.c?this.appendRectangle(t.x,t.y,t.width,t.height):(this.writePoint(t,e),this.writePoint(i,n),this.writeOperator(r.a.appendRectangle))},t.prototype.appendLineSegment=function(t,e){t instanceof o.a?this.appendLineSegment(t.x,t.y):(this.writePoint(t,e),this.writeOperator(r.a.appendLineSegment))},t.prototype.setTextRenderingMode=function(t){this.stream.write(t.toString()),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setRenderingMode)},t.prototype.setCharacterSpacing=function(t){this.stream.write(n.a.floatToString(t)),this.stream.write(r.a.whiteSpace),this.stream.write(r.a.setCharacterSpace),this.stream.write(r.a.newLine)},t.prototype.setWordSpacing=function(t){this.stream.write(n.a.floatToString(t)),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setWordSpace)},t.prototype.showNextLineText=function(t,e){t instanceof s.b?(this.checkTextParam(t),this.writeText(t),this.writeOperator(r.a.setTextOnNewLine)):(this.checkTextParam(t),this.writeText(t,e),this.writeOperator(r.a.setTextOnNewLine))},t.prototype.setColorSpace=function(t,e){if(t instanceof a.a&&"boolean"==typeof e){var i=t,n=e,o=n?r.a.selectcolorspaceforstroking:r.a.selectcolorspacefornonstroking;this.stream.write(i.toString()),this.stream.write(r.a.whiteSpace),this.stream.write(o),this.stream.write(r.a.newLine)}else{var i=t,n=e;this.setColorSpace(new a.a(i),n)}},t.prototype.modifyCtm=function(t){if(null==t)throw new Error("ArgumentNullException:matrix");this.stream.write(t.toString()),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.modifyCtm)},t.prototype.setFont=function(t,e,i){if("string"==typeof e)this.setFont(t,new a.a(e),i);else{if(null==t)throw new Error("ArgumentNullException:font");this.stream.write(e.toString()),this.stream.write(r.a.whiteSpace),this.stream.write(n.a.floatToString(i)),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setFont)}},t.prototype.writeOperator=function(t){this.stream.write(t),this.stream.write(r.a.newLine)},t.prototype.checkTextParam=function(t){if(null==t)throw new Error("ArgumentNullException:text");if("string"==typeof t&&""===t)throw new Error("ArgumentException:The text can not be an empty string, text")},t.prototype.writeText=function(t,e){if(t instanceof s.b&&void 0===e)this.stream.write(t.pdfEncode());else{var i=void 0,r=void 0;e?(i=s.b.hexStringMark[0],r=s.b.hexStringMark[1]):(i=s.b.stringMark[0],r=s.b.stringMark[1]),this.stream.write(i),this.stream.write(t),this.stream.write(r)}},t.prototype.writePoint=function(t,e){if(t instanceof o.a&&void 0===e)this.writePoint(t.x,t.y);else{var i=t;this.stream.write(n.a.floatToString(i)),this.stream.write(r.a.whiteSpace),e=this.updateY(e),this.stream.write(n.a.floatToString(e)),this.stream.write(r.a.whiteSpace)}},t.prototype.updateY=function(t){return-t},t.prototype.write=function(t){var e="";e+=t,e+=r.a.newLine,this.writeOperator(e)},t.prototype.writeComment=function(t){if(!(null!=t&&t.length>0))throw new Error("Invalid comment");var e="";e+=r.a.comment,e+=r.a.whiteSpace,e+=t,this.writeOperator(e)},t.prototype.setColorAndSpace=function(t,e,i){t.isEmpty||(this.stream.write(t.toString(e,i)),this.stream.write(r.a.newLine))},t.prototype.setLineDashPattern=function(t,e){this.setLineDashPatternHelper(t,e)},t.prototype.setLineDashPatternHelper=function(t,e){var i="[";if(t.length>1)for(var n=0;n<t.length;n++)n===t.length-1?i+=t[n].toString():i+=t[n].toString()+" ";i+="] ",i+=e.toString(),i+=" "+r.a.setDashPattern,this.stream.write(i),this.stream.write(r.a.newLine)},t.prototype.setMiterLimit=function(t){this.stream.write(n.a.floatToString(t)),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setMiterLimit)},t.prototype.setLineWidth=function(t){this.stream.write(n.a.floatToString(t)),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setLineWidth)},t.prototype.setLineCap=function(t){this.stream.write(t.toString()),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setLineCapStyle)},t.prototype.setLineJoin=function(t){this.stream.write(t.toString()),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setLineJoinStyle)},Object.defineProperty(t.prototype,"position",{get:function(){return this.stream.position},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){var t=0;if(0!==this.stream.data.length&&-1!==this.stream.data.length)for(var e=0;e<this.stream.data.length;e++)t+=this.stream.data[e].length;return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.appendBezierSegment=function(t,e,i,n,s,a){t instanceof o.a&&e instanceof o.a&&i instanceof o.a?(this.writePoint(t.x,t.y),this.writePoint(e.x,e.y),this.writePoint(i.x,i.y)):(this.writePoint(t,e),this.writePoint(i,n),this.writePoint(s,a)),this.writeOperator(r.a.appendbeziercurve)},t.prototype.setColourWithPattern=function(t,e,i){if(null!=t){var n=t.length,o=0;for(o=0;o<n;++o)this.stream.write(t[o].toString()),this.stream.write(r.a.whiteSpace)}null!=e&&(this.stream.write(e.toString()),this.stream.write(r.a.whiteSpace)),i?this.writeOperator(r.a.setColorAndPatternStroking):this.writeOperator(r.a.setColorAndPattern)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.streamWriter=t}return Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stream",{get:function(){return this.streamWriter},enumerable:!0,configurable:!0}),t.prototype.write=function(t){var e=t;this.streamWriter.write(e)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.pdfPage=void 0!==t?t:null}return Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(25),n=i(10),o=function(){function t(t){this.pdfPageCollectionIndex=new n.a,this.document=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this.countPages()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageCollectionIndex",{get:function(){return this.pdfPageCollectionIndex},enumerable:!0,configurable:!0}),t.prototype.add=function(t){if(void 0===t){var e=new r.a;return this.add(e),e}this.getLastSection().add(t)},t.prototype.getLastSection=function(){var t=this.document.sections;return 0===t.section.length&&t.add(),t.section[t.section.length-1]},t.prototype.onPageAdded=function(t){},t.prototype.countPages=function(){for(var t=this.document.sections,e=0,i=0;i<t.section.length;i++)e+=t.section[i].count;return e},t.prototype.getPageByIndex=function(t){return this.getPage(t)},t.prototype.getPage=function(t){if(t<0||t>=this.count)throw Error('ArgumentOutOfRangeException("index", "Value can not be less 0")');for(var e=null,i=0,r=0,n=0,o=this.document.sections.count,s=0;s<o;s++){var a=this.document.sections.section[s];if(r=a.count,n=t-i,t>=i&&n<r){e=a.getPages()[n];break}i+=r}return e},t.prototype.indexOf=function(t){var e=-1;if(null==t)throw new Error("ArgumentNullException: page");for(var i=0,r=0,n=this.document.sections.count;r<n;r++){var o=this.document.sections.pdfSectionCollection(r);if((e=o.indexOf(t))>=0){e+=i;break}e=-1,i+=o.count}return e},t.prototype.remove=function(t){if(null==t)throw Error('ArgumentNullException("page")');for(var e=null,i=0,r=this.document.sections.count;i<r;i++)if(e=this.document.sections.pdfSectionCollection(i),e.pages.contains(t)){e.pages.remove(t);break}return e},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(0),n=i(91),o=i(19),s=i(82),a=function(){function t(t){this.pageMargins=new s.a,this.pageSize=n.a.a4,this.rotateAngle=o.b.RotateAngle0,this.pageOrientation=o.a.Portrait,this.pageOrigin=new r.a(0,0),this.isRotation=!1,"number"==typeof t&&this.pageMargins.setMargins(t)}return Object.defineProperty(t.prototype,"size",{get:function(){return this.pageSize},set:function(t){this.setSize(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(t){this.pageOrientation!==t&&(this.pageOrientation=t,this.updateSize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"margins",{get:function(){return this.pageMargins},set:function(t){this.pageMargins=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.pageSize.width},set:function(t){this.pageSize.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.pageSize.height},set:function(t){this.pageSize.height=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this.pageOrigin},set:function(t){this.pageOrigin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this.rotateAngle},set:function(t){this.rotateAngle=t,this.isRotation=!0},enumerable:!0,configurable:!0}),t.prototype.updateSize=function(t){var e=Math.min(this.pageSize.width,this.pageSize.height),i=Math.max(this.pageSize.width,this.pageSize.height);switch(t){case o.a.Portrait:this.pageSize=new r.b(e,i);break;case o.a.Landscape:this.pageSize=new r.b(i,e)}},t.prototype.clone=function(){var t=this;return t.pageMargins=this.pageMargins.clone(),t},t.prototype.getActualSize=function(){var t=this.width-(this.margins.left+this.margins.right),e=this.height-(this.margins.top+this.margins.bottom);return new r.b(t,e)},t.prototype.setSize=function(t){var e=Math.min(t.width,t.height),i=Math.max(t.width,t.height);this.orientation===o.a.Portrait?this.pageSize=new r.b(e,i):this.pageSize=new r.b(i,e)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(0),n=function(){function t(){}return t.letter=new r.b(612,792),t.note=new r.b(540,720),t.legal=new r.b(612,1008),t.a0=new r.b(2380,3368),t.a1=new r.b(1684,2380),t.a2=new r.b(1190,1684),t.a3=new r.b(842,1190),t.a4=new r.b(595,842),t.a5=new r.b(421,595),t.a6=new r.b(297,421),t.a7=new r.b(210,297),t.a8=new r.b(148,210),t.a9=new r.b(105,148),t.a10=new r.b(74,105),t.b0=new r.b(2836,4008),t.b1=new r.b(2004,2836),t.b2=new r.b(1418,2004),t.b3=new r.b(1002,1418),t.b4=new r.b(709,1002),t.b5=new r.b(501,709),t.archE=new r.b(2592,3456),t.archD=new r.b(1728,2592),t.archC=new r.b(1296,1728),t.archB=new r.b(864,1296),t.archA=new r.b(648,864),t.flsa=new r.b(612,936),t.halfLetter=new r.b(396,612),t.letter11x17=new r.b(792,1224),t.ledger=new r.b(1224,792),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){if(this.pdfSection=null,null==t)throw Error('ArgumentNullException("section")');this.section=t}return Object.defineProperty(t.prototype,"section",{get:function(){return this.pdfSection},set:function(t){this.pdfSection=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t){return this.section.contains(t)},t.prototype.remove=function(t){this.section.remove(t)},t.prototype.add=function(){return this.section.add()},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(45),n=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o=function(t){function e(){var e=t.call(this)||this;return e.leftValue=e.topValue=e.rightValue=e.bottomValue=e.stampValue=!0,e}return n(e,t),Object.defineProperty(e.prototype,"applyDocumentLeftTemplate",{get:function(){return this.leftValue},set:function(t){this.leftValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentTopTemplate",{get:function(){return this.topValue},set:function(t){this.topValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentRightTemplate",{get:function(){return this.rightValue},set:function(t){this.rightValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentBottomTemplate",{get:function(){return this.bottomValue},set:function(t){this.bottomValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentStamps",{get:function(){return this.stampValue},set:function(t){this.stampValue=t},enumerable:!0,configurable:!0}),e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return g}),i.d(e,"b",function(){return m});var r=i(25),n=i(88),o=i(8),s=i(6),a=i(5),h=i(3),u=i(4),l=i(1),c=i(55),d=i(92),f=i(0),p=i(93),g=function(){function t(t,e){this.pageAdded=new n.a,this.pdfPages=[],this.dictionaryProperties=new l.a,this.pdfDocument=t,void 0===e?(this.settings=t.pageSettings.clone(),this.initialSettings=this.settings.clone()):(this.settings=e.clone(),this.initialSettings=this.settings.clone()),this.initialize()}return Object.defineProperty(t.prototype,"parent",{get:function(){return this.sectionCollection},set:function(t){this.sectionCollection=t,this.section.items.setValue(this.dictionaryProperties.parent,new o.b(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentDocument",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSettings",{get:function(){return this.settings},set:function(t){if(null==t)throw Error("Value can not be null.");this.settings=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.section},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.pagesReferences.count},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new p.a),this.pageTemplate},set:function(t){this.pageTemplate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.sectionCollection.document},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pages",{get:function(){return null!=this.pagesCollection&&void 0!==this.pagesCollection||(this.pagesCollection=new d.a(this)),this.pagesCollection},enumerable:!0,configurable:!0}),t.prototype.getPages=function(){return this.pdfPages},t.prototype.pointToNativePdf=function(t,e){var i=this.getActualBounds(t,!0);return e.x+=i.x,e.y=this.pageSettings.height-e.y,e},t.prototype.setPageSettings=function(t){this.settings=t,this.state.orientation=t.orientation,this.state.rotate=t.rotate,this.state.size=t.size,this.state.origin=t.origin},t.prototype.initialize=function(){this.pagesReferences=new s.a,this.section=new u.a,this.state=new m(this.pdfDocument),this.section.sectionBeginSave=new u.f(this,this.state),this.pageCount=new a.a(0),this.section.items.setValue(this.dictionaryProperties.count,this.pageCount),this.section.items.setValue(this.dictionaryProperties.type,new h.a(this.dictionaryProperties.pages)),this.section.items.setValue(this.dictionaryProperties.kids,this.pagesReferences)},t.prototype.containsTemplates=function(t,e,i){var r=this.getDocumentTemplates(t,e,i),n=this.getSectionTemplates(e,i);return r.length>0||n.length>0},t.prototype.getDocumentTemplates=function(t,e,i){var r=[];return this.template.applyDocumentTopTemplate&&null!=t.template.getTop(e)&&(!t.template.getTop(e).foreground&&!i||t.template.getTop(e).foreground&&i)&&r.push(t.template.getTop(e)),this.template.applyDocumentBottomTemplate&&null!=t.template.getBottom(e)&&(!t.template.getBottom(e).foreground&&!i||t.template.getBottom(e).foreground&&i)&&r.push(t.template.getBottom(e)),this.template.applyDocumentLeftTemplate&&null!=t.template.getLeft(e)&&(!t.template.getLeft(e).foreground&&!i||t.template.getLeft(e).foreground&&i)&&r.push(t.template.getLeft(e)),this.template.applyDocumentRightTemplate&&null!=t.template.getRight(e)&&(!t.template.getRight(e).foreground&&!i||t.template.getRight(e).foreground&&i)&&r.push(t.template.getRight(e)),r},t.prototype.getSectionTemplates=function(t,e){var i=[];if(null!=this.template.getTop(t)){var r=this.template.getTop(t);(!r.foreground&&!e||r.foreground&&e)&&i.push(r)}if(null!=this.template.getBottom(t)){var r=this.template.getBottom(t);(!r.foreground&&!e||r.foreground&&e)&&i.push(r)}if(null!=this.template.getLeft(t)){var r=this.template.getLeft(t);(!r.foreground&&!e||r.foreground&&e)&&i.push(r)}if(null!=this.template.getRight(t)){var r=this.template.getRight(t);(!r.foreground&&!e||r.foreground&&e)&&i.push(r)}return i},t.prototype.add=function(t){if(void 0===t){var e=new r.a;return this.add(e),e}var i=this.checkPresence(t);this.pdfPages.push(t),this.pagesReferences.add(i),t.setSection(this),t.resetProgress(),this.pageAddedMethod(t)},t.prototype.checkPresence=function(t){for(var e=new o.b(t),i=!1,r=this.parent,n=0;n<r.section.length;n++){var s=r.section[n];i=i||s.contains(t)}return e},t.prototype.contains=function(t){return 0<=this.indexOf(t)},t.prototype.indexOf=function(t){for(var e=0;e<this.pdfPages.length;e++)if(this.pdfPages[e]===t)return this.pdfPages.indexOf(t);var i=new o.b(t);return this.pagesReferences.indexOf(i)},t.prototype.pageAddedMethod=function(t){var e=new n.a(t);this.onPageAdded(e),this.parent.document.pages.onPageAdded(e),this.pageCount.intValue=this.count},t.prototype.onPageAdded=function(t){},t.prototype.getActualBounds=function(t,e,i){if(t instanceof r.a&&"boolean"==typeof e){var n=this.parent.document;return this.getActualBounds(n,t,e)}t=t,e=e,i=i;var o=new f.c(0,0,0,0);o.height=i?this.pageSettings.size.height:this.pageSettings.getActualSize().height,o.width=i?this.pageSettings.size.width:this.pageSettings.getActualSize().width;var s=this.getLeftIndentWidth(t,e,i),a=this.getTopIndentHeight(t,e,i),h=this.getRightIndentWidth(t,e,i),u=this.getBottomIndentHeight(t,e,i);return o.x+=s,o.y+=a,o.width-=s+h,o.height-=a+u,o},t.prototype.getLeftIndentWidth=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.left:0,n=null!=this.template.getLeft(e)?this.template.getLeft(e).width:0,o=null!=t.template.getLeft(e)?t.template.getLeft(e).width:0;return r+=this.template.applyDocumentLeftTemplate?Math.max(n,o):n},t.prototype.getTopIndentHeight=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.top:0,n=null!=this.template.getTop(e)?this.template.getTop(e).height:0,o=null!=t.template.getTop(e)?t.template.getTop(e).height:0;return r+=this.template.applyDocumentTopTemplate?Math.max(n,o):n},t.prototype.getRightIndentWidth=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.right:0,n=null!=this.template.getRight(e)?this.template.getRight(e).width:0,o=null!=t.template.getRight(e)?t.template.getRight(e).width:0;return r+=this.template.applyDocumentRightTemplate?Math.max(n,o):n},t.prototype.getBottomIndentHeight=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.bottom:0,n=null!=this.template.getBottom(e)?this.template.getBottom(e).height:0,o=null!=t.template.getBottom(e)?t.template.getBottom(e).height:0;return r+=this.template.applyDocumentBottomTemplate?Math.max(n,o):n},t.prototype.remove=function(t){if(null==t)throw Error('ArgumentNullException("page")');var e=this.pdfPages.indexOf(t);this.pagesReferences.removeAt(e);for(var i=[],r=0;r<e;r++)i.push(this.pdfPages[r]);for(var r=e+1;r<this.pdfPages.length;r++)i.push(this.pdfPages[r]);this.pdfPages=i},t.prototype.applyPageSettings=function(t,e,i){var r=new f.c(i.origin,i.size);t.items.setValue(this.dictionaryProperties.mediaBox,s.a.fromRectangle(r));var n=0;n=c.a.rotateFactor*i.rotate;var o=new a.a(n);t.items.setValue(this.dictionaryProperties.rotate,o)},t.prototype.beginSave=function(t,e){var i=e.document;this.applyPageSettings(this.section,i.pageSettings,t)},t.prototype.drawTemplates=function(t,e,i,r){var n=this.getDocumentTemplates(i,t,r),o=this.getSectionTemplates(t,r);this.drawTemplatesHelper(e,i,n),this.drawTemplatesHelper(e,i,o)},t.prototype.drawTemplatesHelper=function(t,e,i){if(null!=i&&i.length>0)for(var r=i.length,n=0;n<r;n++){var o=i[n];o.draw(t,e)}},t}(),m=function(){function t(t){this.pageOrientation=t.pageSettings.orientation,this.pageRotate=t.pageSettings.rotate,this.pageSize=t.pageSettings.size,this.pageOrigin=t.pageSettings.origin}return Object.defineProperty(t.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(t){this.pageOrientation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this.pageRotate},set:function(t){this.pageRotate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.pageSize},set:function(t){this.pageSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this.pageOrigin},set:function(t){this.pageOrigin=t},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return s});var r=i(56),n=i(23),o=function(){function t(t){this.columnWidth=0,this.grid=t}return Object.defineProperty(t.prototype,"width",{get:function(){return this.columnWidth},set:function(t){this.isCustomWidth=!0,this.columnWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return null==this.stringFormat&&(this.stringFormat=new n.a),this.stringFormat},set:function(t){this.stringFormat=t},enumerable:!0,configurable:!0}),t}(),s=function(){function t(t){this.internalColumns=[],this.columnWidth=0,this.grid=t,this.internalColumns=[]}return t.prototype.add=function(t){for(var e=0;e<t;e++){this.internalColumns.push(new o(this.grid));for(var i=0;i<this.grid.rows.count;i++){var n=this.grid.rows.getRow(i),s=new r.a;s.value="",n.cells.add(s)}}},Object.defineProperty(t.prototype,"count",{get:function(){return this.internalColumns.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 0===this.columnWidth&&(this.columnWidth=this.measureColumnsWidth()),0===this.grid.initialWidth||this.columnWidth===this.grid.initialWidth||this.grid.style.allowHorizontalOverflow||(this.columnWidth=this.grid.initialWidth,this.grid.isPageWidth=!0),this.columnWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.internalColumns},enumerable:!0,configurable:!0}),t.prototype.getColumn=function(t){if(t>=0&&t<=this.columns.length)return this.columns[t];throw Error("can not get the column from the index: "+t)},t.prototype.measureColumnsWidth=function(){var t=0;this.grid.measureColumnsWidth();for(var e=0,i=this.internalColumns.length;e<i;e++)t+=this.internalColumns[e].width;return t},t.prototype.getDefaultWidths=function(t){for(var e=[],i=this.count,r=0;r<this.count;r++)this.grid.isPageWidth&&t>=0&&!this.internalColumns[r].isCustomWidth?this.internalColumns[r].width=0:(e[r]=this.internalColumns[r].width,this.internalColumns[r].width>0&&this.internalColumns[r].isCustomWidth?(t-=this.internalColumns[r].width,i--):e[r]=0);for(var r=0;r<this.count;r++){var n=t/i;e[r]<=0&&(e[r]=n)}return e},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return s}),i.d(e,"c",function(){return a});var r=i(56),n=i(31),o=function(){function t(t){this.gridRowOverflowIndex=0,this.rowHeight=0,this.rowWidth=0,this.isrowFinish=!1,this.isRowSpanRowHeightSet=!1,this.noOfPageCount=0,this.isRowHeightSet=!1,this.isPageBreakRowSpanApplied=!1,this.isRowMergeComplete=!0,this.repeatFlag=!1,this.rowFontSplit=!1,this.isHeaderRow=!1,this.pdfGrid=t}return Object.defineProperty(t.prototype,"rowSpanExists",{get:function(){return this.bRowSpanExists},set:function(t){this.bRowSpanExists=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return null==this.gridCells&&(this.gridCells=new r.b(this)),this.gridCells},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"grid",{get:function(){return this.pdfGrid},set:function(t){this.pdfGrid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return void 0===this.rowStyle&&(this.rowStyle=new n.d,this.rowStyle.setParent(this)),this.rowStyle},set:function(t){this.rowStyle=t;for(var e=0;e<this.cells.count;e++)this.cells.getCell(e).style.borders=t.border,void 0!==t.font&&(this.cells.getCell(e).style.font=t.font),void 0!==t.backgroundBrush&&(this.cells.getCell(e).style.backgroundBrush=t.backgroundBrush),void 0!==t.backgroundImage&&(this.cells.getCell(e).style.backgroundImage=t.backgroundImage),void 0!==t.textBrush&&(this.cells.getCell(e).style.textBrush=t.textBrush),void 0!==t.textPen&&(this.cells.getCell(e).style.textPen=t.textPen)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowBreakHeight",{get:function(){return void 0===this.gridRowBreakHeight&&(this.gridRowBreakHeight=0),this.gridRowBreakHeight},set:function(t){this.gridRowBreakHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowOverflowIndex",{get:function(){return this.gridRowOverflowIndex},set:function(t){this.gridRowOverflowIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.isRowHeightSet||(this.rowHeight=this.measureHeight()),this.rowHeight},set:function(t){this.rowHeight=t,this.isRowHeightSet=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 0!==this.rowWidth&&void 0!==this.rowWidth||(this.rowWidth=this.measureWidth()),this.rowWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"NestedGridLayoutResult",{get:function(){return this.gridResult},set:function(t){this.gridResult=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnSpanExists",{get:function(){return this.bColumnSpanExists},set:function(t){this.bColumnSpanExists=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowMergeComplete",{get:function(){return this.isRowMergeComplete},set:function(t){this.isRowMergeComplete=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowIndex",{get:function(){return this.grid.rows.rowCollection.indexOf(this)},enumerable:!0,configurable:!0}),t.prototype.measureHeight=function(){var t,e=0,i=0;t=this.cells.getCell(0).rowSpan>1?0:this.cells.getCell(0).height;for(var r=0;r<this.cells.count;r++){var n=this.cells.getCell(r);if(n.rowSpanRemainingHeight>e&&(e=n.rowSpanRemainingHeight),this.rowMergeComplete=!1,n.rowSpan>1){for(var o=r,s=this.isHeaderRow?this.grid.headers.indexOf(this):this.grid.rows.rowCollection.indexOf(this),a=0;a<n.rowSpan;a++)a+1<n.rowSpan&&((this.isHeaderRow?this.grid.headers.getHeader(s+a+1):this.grid.rows.getRow(s+a+1)).cells.getCell(o).hasRowSpan=!0);i<n.height&&(i=n.height)}else t=Math.max(t,n.height)}return i>t&&(t=i),0===t?t=i:e>0&&(t+=e),t},t.prototype.measureWidth=function(){for(var t=0,e=0;e<this.grid.columns.count;e++){t+=this.grid.columns.getColumn(e).width}return t},t}(),s=function(){function t(t){this.rows=[],this.grid=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this.rows.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowCollection",{get:function(){return this.rows},enumerable:!0,configurable:!0}),t.prototype.addRow=function(t){if(void 0===t){var e=new o(this.grid);return this.addRow(e),e}if(t.style.setBackgroundBrush(this.grid.style.backgroundBrush),t.style.setFont(this.grid.style.font),t.style.setTextBrush(this.grid.style.textBrush),t.style.setTextPen(this.grid.style.textPen),0===t.cells.count)for(var i=0;i<this.grid.columns.count;i++)t.cells.add(new r.a);this.rows.push(t)},t.prototype.getRow=function(t){return this.rows[t]},t}(),a=function(){function t(t){this.rows=[],this.grid=t,this.rows=[]}return t.prototype.getHeader=function(t){return this.rows[t]},Object.defineProperty(t.prototype,"count",{get:function(){return this.rows.length},enumerable:!0,configurable:!0}),t.prototype.add=function(t){if("number"==typeof t){for(var e=void 0,i=0;i<t;i++){e=new o(this.grid),e.isHeaderRow=!0;for(var n=0;n<this.grid.columns.count;n++)e.cells.add(new r.a);this.rows.push(e)}return this.rows}this.rows.push(t)},t.prototype.indexOf=function(t){return this.rows.indexOf(t)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(0),n=i(59),o=function(){function t(e,i,o,s){this.pageNumberFieldLocation=new r.a,this.pageNumberField=null,this.scaleX=1,this.scaleY=1,void 0===i&&e instanceof t?(this.pageNumberField=e.field,this.pageNumberFieldLocation=e.location,this.scaleX=e.scalingX,this.scaleY=e.scalingY):void 0===o&&i instanceof r.a&&e instanceof n.a?(this.pageNumberField=e,this.pageNumberFieldLocation=i):(this.pageNumberField=e,this.pageNumberFieldLocation=i,this.scaleX=o,this.scaleY=s)}return Object.defineProperty(t.prototype,"location",{get:function(){return this.pageNumberFieldLocation},set:function(t){this.pageNumberFieldLocation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"field",{get:function(){return this.pageNumberField},set:function(t){this.pageNumberField=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scalingX",{get:function(){return this.scaleX},set:function(t){this.scaleX=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scalingY",{get:function(){return this.scaleY},set:function(t){this.scaleY=t},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var r=i(59),n=i(32),o=i(100),s=i(0),a=i(27),h=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=function(t){function e(){var e=t.call(this)||this;return e.list=new n.a,e}return h(e,t),e.prototype.performDraw=function(e,i,r,n){t.prototype.performDrawHelper.call(this,e,i,r,n);var h=this.getValue(e),u=new a.a(this.getSize());this.list.setValue(e,new o.a(u,h));var l=(u.graphics,this.getSize());u.graphics.drawString(h,this.getFont(),this.pen,this.getBrush(),0,0,l.width,l.height,this.stringFormat);var c=new s.a(i.x+this.location.x,i.y+this.location.y);e.drawPdfTemplate(u,c,new s.b(u.width*r,u.height*n))},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(19),n=function(){function t(){}return t.convert=function(t,e){var i="";switch(e){case r.c.None:i="";break;case r.c.Numeric:i=t.toString();break;case r.c.LowerLatin:i=this.arabicToLetter(t).toLowerCase();break;case r.c.LowerRoman:i=this.arabicToRoman(t).toLowerCase();break;case r.c.UpperLatin:i=this.arabicToLetter(t);break;case r.c.UpperRoman:i=this.arabicToRoman(t)}return i},t.arabicToRoman=function(t){var e="",i=this.generateNumber(t,1e3,"M");e+=i.returnValue,t=i.intArabic;var r=this.generateNumber(t,900,"CM");e+=r.returnValue,t=r.intArabic;var n=this.generateNumber(t,500,"D");e+=n.returnValue,t=n.intArabic;var o=this.generateNumber(t,400,"CD");e+=o.returnValue,t=o.intArabic;var s=this.generateNumber(t,100,"C");e+=s.returnValue,t=s.intArabic;var a=this.generateNumber(t,90,"XC");e+=a.returnValue,t=a.intArabic;var h=this.generateNumber(t,50,"L");e+=h.returnValue,t=h.intArabic;var u=this.generateNumber(t,40,"XL");e+=u.returnValue,t=u.intArabic;var l=this.generateNumber(t,10,"X");e+=l.returnValue,t=l.intArabic;var c=this.generateNumber(t,9,"IX");e+=c.returnValue,t=c.intArabic;var d=this.generateNumber(t,5,"V");e+=d.returnValue,t=d.intArabic;var f=this.generateNumber(t,4,"IV");e+=f.returnValue,t=f.intArabic;var p=this.generateNumber(t,1,"I");return e+=p.returnValue,t=p.intArabic,e.toString()},t.arabicToLetter=function(t){for(var e=this.convertToLetter(t),i="";e.length>0;){var r=e.pop();i=this.appendChar(i,r)}return i.toString()},t.generateNumber=function(t,e,i){for(var r="";t>=e;)t-=e,r+=i;return{returnValue:r.toString(),intArabic:t}},t.convertToLetter=function(t){if(t<=0)throw Error("ArgumentOutOfRangeException-arabic, Value can not be less 0");for(var e=[];t>this.letterLimit;){var i=t%this.letterLimit;0===i?(t=t/this.letterLimit-1,i=this.letterLimit):t/=this.letterLimit,e.push(i)}return e.push(t),e},t.appendChar=function(e,i){return e+=String.fromCharCode(t.acsiiStartIndex+i)},t.letterLimit=26,t.acsiiStartIndex=64,t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t,e){this.pdfTemplate=null,this.content="",void 0===t||(this.template=t,this.value=e)}return Object.defineProperty(t.prototype,"template",{get:function(){return this.pdfTemplate},set:function(t){this.pdfTemplate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.content},set:function(t){this.content=t},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(117),n=i(15),o=i(9),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e,i){var r=t.call(this)||this;return r.mbrush=null,void 0===e||(e instanceof n.a?r=t.call(this,e)||this:r.mbrush=i),r}return s(e,t),Object.defineProperty(e.prototype,"brush",{get:function(){return this.mbrush},set:function(t){this.mbrush=t},enumerable:!0,configurable:!0}),e.prototype.obtainPen=function(){return null==this.mbrush&&null==this.pen?new n.a(new o.a(0,0,0)):this.pen},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return b});var r=i(141),n=i(138),o=i(4),s=i(13),a=i(6),h=i(3),u=i(5),l=i(17),c=i(8),d=i(36),f=i(1),p=i(10),g=i(7),m=i(0),y=i(16),b=function(){function t(t,e){if(this.nameString="ABCDEFGHIJKLMNOPQRSTUVWXYZ",this.dictionaryProperties=new f.a,this.isCompress=!1,this.isEmbedFont=!1,this.cmapPrefix="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap"+y.a.newLine+"/CIDSystemInfo << /Registry (Adobe)/Ordering (UCS)/Supplement 0>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange"+y.a.newLine,this.cmapEndCodespaceRange="endcodespacerange"+y.a.newLine,this.cmapBeginRange="beginbfrange"+y.a.newLine,this.cmapEndRange="endbfrange"+y.a.newLine,this.cmapSuffix="endbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend end"+y.a.newLine,null===t||void 0===t)throw new Error("ArgumentNullException:base64String");this.fontSize=e,this.fontString=t,this.Initialize()}return t.prototype.getCharWidth=function(t){return this.ttfReader.getCharWidth(t)},t.prototype.getLineWidth=function(t){for(var e=0,i=0,r=t.length;i<r;i++){var n=t[i];e+=this.getCharWidth(n)}return e},t.prototype.Initialize=function(){var t=new r.a(this.fontString.length);t.writeFromBase64String(this.fontString),this.fontData=t.internalBuffer,this.ttfReader=new n.a(this.fontData),this.ttfMetrics=this.ttfReader.metrics},t.prototype.createInternals=function(){this.fontDictionary=new o.a,this.fontProgram=new s.a,this.cmap=new s.a,this.descendantFont=new o.a,this.metrics=new d.a,this.ttfReader.createInternals(),this.ttfMetrics=this.ttfReader.metrics,this.initializeMetrics(),this.subsetName=this.getFontName(),this.createDescendantFont(),this.createCmap(),this.createFontDictionary(),this.createFontProgram()},t.prototype.getInternals=function(){return this.fontDictionary},t.prototype.initializeMetrics=function(){var t=this.ttfReader.metrics;this.metrics.ascent=t.macAscent,this.metrics.descent=t.macDescent,this.metrics.height=t.macAscent-t.macDescent+t.lineGap,this.metrics.name=t.fontFamily,this.metrics.postScriptName=t.postScriptName,this.metrics.size=this.fontSize,this.metrics.widthTable=new d.c(t.widthTable),this.metrics.lineGap=t.lineGap,this.metrics.subScriptSizeFactor=t.subScriptSizeFactor,this.metrics.superscriptSizeFactor=t.superscriptSizeFactor,this.metrics.isBold=t.isBold},t.prototype.getFontName=function(){for(var t,e="",i=0;i<6;i++){var r=Math.floor(26*Math.random())+0;e+=this.nameString[r]}return e+="+",e+=this.ttfReader.metrics.postScriptName,t=e.toString(),t=this.formatName(t)},t.prototype.formatName=function(t){var e=t.replace("(","#28");return e=e.replace(")","#29"),e=e.replace("[","#5B"),e=e.replace("]","#5D"),e=e.replace("<","#3C"),e=e.replace(">","#3E"),e=e.replace("{","#7B"),e=e.replace("}","#7D"),e=e.replace("/","#2F"),e=e.replace("%","#25"),e.replace(" ","#20")},t.prototype.createDescendantFont=function(){this.descendantFont.isResource=!0,this.descendantFont.descendantFontBeginSave=new o.c(this),this.descendantFont.items.setValue(this.dictionaryProperties.type,new h.a(this.dictionaryProperties.font)),this.descendantFont.items.setValue(this.dictionaryProperties.subtype,new h.a(this.dictionaryProperties.cIDFontType2)),this.descendantFont.items.setValue(this.dictionaryProperties.baseFont,new h.a(this.subsetName)),this.descendantFont.items.setValue(this.dictionaryProperties.cIDToGIDMap,new h.a(this.dictionaryProperties.identity)),this.descendantFont.items.setValue(this.dictionaryProperties.dw,new u.a(1e3)),this.fontDescriptor=this.createFontDescriptor(),this.descendantFont.items.setValue(this.dictionaryProperties.fontDescriptor,new c.b(this.fontDescriptor));var t=this.createSystemInfo();this.descendantFont.items.setValue(this.dictionaryProperties.cIDSystemInfo,t)},t.prototype.createFontDescriptor=function(){var t=new o.a,e=this.ttfReader.metrics;return t.isResource=!0,t.items.setValue(this.dictionaryProperties.type,new h.a(this.dictionaryProperties.fontDescriptor)),t.items.setValue(this.dictionaryProperties.fontName,new h.a(this.subsetName)),t.items.setValue(this.dictionaryProperties.flags,new u.a(this.getDescriptorFlags())),t.items.setValue(this.dictionaryProperties.fontBBox,a.a.fromRectangle(this.getBoundBox())),t.items.setValue(this.dictionaryProperties.missingWidth,new u.a(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.stemV,new u.a(e.stemV)),t.items.setValue(this.dictionaryProperties.italicAngle,new u.a(e.italicAngle)),t.items.setValue(this.dictionaryProperties.capHeight,new u.a(e.capHeight)),t.items.setValue(this.dictionaryProperties.ascent,new u.a(e.winAscent)),t.items.setValue(this.dictionaryProperties.descent,new u.a(e.winDescent)),t.items.setValue(this.dictionaryProperties.leading,new u.a(e.leading)),t.items.setValue(this.dictionaryProperties.avgWidth,new u.a(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.fontFile2,new c.b(this.fontProgram)),t.items.setValue(this.dictionaryProperties.maxWidth,new u.a(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.xHeight,new u.a(0)),t.items.setValue(this.dictionaryProperties.stemH,new u.a(0)),t},t.prototype.createCmap=function(){this.cmap.cmapBeginSave=new s.b(this)},t.prototype.createFontDictionary=function(){this.fontDictionary.isResource=!0,this.fontDictionary.fontDictionaryBeginSave=new o.d(this),this.fontDictionary.items.setValue(this.dictionaryProperties.type,new h.a(this.dictionaryProperties.font)),this.fontDictionary.items.setValue(this.dictionaryProperties.baseFont,new h.a(this.subsetName)),this.fontDictionary.items.setValue(this.dictionaryProperties.subtype,new h.a(this.dictionaryProperties.type0)),this.fontDictionary.items.setValue(this.dictionaryProperties.encoding,new h.a(this.dictionaryProperties.identityH));var t=new a.a,e=new c.b(this.descendantFont);t.isFont=!0,t.add(e),this.fontDictionary.items.setValue(this.dictionaryProperties.descendantFonts,t)},t.prototype.createFontProgram=function(){this.fontProgram.fontProgramBeginSave=new s.c(this)},t.prototype.createSystemInfo=function(){var t=new o.a;return t.items.setValue(this.dictionaryProperties.registry,new l.b("Adobe")),t.items.setValue(this.dictionaryProperties.ordering,new l.b(this.dictionaryProperties.identity)),t.items.setValue(this.dictionaryProperties.supplement,new u.a(0)),t},t.prototype.descendantFontBeginSave=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var t=this.getDescendantWidth();null!==t&&this.descendantFont.items.setValue(this.dictionaryProperties.w,t)}},t.prototype.cmapBeginSave=function(){this.generateCmap()},t.prototype.fontDictionaryBeginSave=function(){null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0&&!this.fontDictionary.containsKey(this.dictionaryProperties.toUnicode)&&this.fontDictionary.items.setValue(this.dictionaryProperties.toUnicode,new c.b(this.cmap))},t.prototype.fontProgramBeginSave=function(){this.isCompress=!0,this.generateFontProgram()},t.prototype.getDescendantWidth=function(){var t=new a.a;if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){for(var e=[],i=this.usedChars.keys(),r=0;r<i.length;r++){var n=i[r],o=this.ttfReader.getGlyph(n);o.empty||e.push(o)}e.sort(function(t,e){return t.index-e.index});for(var s=0,h=0,l=!1,c=new a.a,r=0;r<e.length;r++){var o=e[r];l||(l=!0,s=o.index,h=o.index-1),(h+1!==o.index||r+1===e.length)&&e.length>1&&(t.add(new u.a(s)),0!==r&&t.add(c),s=o.index,c=new a.a),c.add(new u.a(o.width)),r+1===e.length&&(t.add(new u.a(s)),t.add(c)),h=o.index}}return t},t.prototype.generateCmap=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var t=this.ttfReader.getGlyphChars(this.usedChars);if(t.size()>0){var e=t.keys().sort(),i=e[0],r=e[e.length-1],n=this.toHexString(i,!1)+this.toHexString(r,!1)+y.a.newLine,o="";o+=this.cmapPrefix,o+=n,o+=this.cmapEndCodespaceRange;for(var s=0,a=0;a<e.length;a++){0===s&&(0!==a&&(o+=this.cmapEndRange),s=Math.min(100,e.length-a),o+=s,o+=y.a.whiteSpace,o+=this.cmapBeginRange),s-=1;var h=e[a];o+=this.toHexString(h,!0)+this.toHexString(h,!0)+this.toHexString(t.getValue(h),!0)+"\n"}o+=this.cmapSuffix,this.cmap.clearStream(),this.cmap.isResource=!0,this.cmap.write(o)}}},t.prototype.generateFontProgram=function(){var t=null;this.usedChars=null===this.usedChars||void 0===this.usedChars?new p.a:this.usedChars,this.ttfReader.setOffset(0),t=this.ttfReader.readFontProgram(this.usedChars),this.fontProgram.clearStream(),this.fontProgram.isResource=!0,this.fontProgram.writeBytes(t)},t.prototype.getDescriptorFlags=function(){var t=0,e=this.ttfReader.metrics;return e.isFixedPitch&&(t|=g.l.FixedPitch),e.isSymbol?t|=g.l.Symbolic:t|=g.l.Nonsymbolic,e.isItalic&&(t|=g.l.Italic),e.isBold&&(t|=g.l.ForceBold),t},t.prototype.getBoundBox=function(){var t=this.ttfReader.metrics.fontBox,e=Math.abs(t.right-t.left),i=Math.abs(t.top-t.bottom);return new m.c(t.left,t.bottom,e,i)},t.prototype.toHexString=function(t,e){var i=t.toString(16);return e&&(i=i.toUpperCase()),"<0000".substring(0,5-i.length)+i+">"},t.prototype.setSymbols=function(t){if(null===t)throw new Error("Argument Null Exception : text");null!==this.usedChars&&void 0!==this.usedChars||(this.usedChars=new p.a);for(var e=0;e<t.length;e++){var i=t[e];this.usedChars.setValue(i,String.fromCharCode(0))}!1===this.isEmbedFont&&this.getDescendantWidth()},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(42),n=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o=function(t){function e(e,i){var r=t.call(this,e)||this;return r.pdfDestination=null,void 0!==i&&(r.destination=i),r}return n(e,t),Object.defineProperty(e.prototype,"destination",{get:function(){return this.pdfDestination},set:function(t){this.pdfDestination=t},enumerable:!0,configurable:!0}),e.prototype.save=function(){t.prototype.save.call(this),null!=this.pdfDestination&&this.dictionary.items.setValue(this.dictionaryProperties.dest,this.pdfDestination.element)},e.prototype.clone=function(){var t=new e(this.bounds,this.destination);return t.color=this.color,t.brush=this.brush,t.destination=this.destination,t.font=this.font,t},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(98),n=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o=function(t){function e(e,i,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];var s=t.call(this)||this;return s.internalAutomaticFields=null,s.internalText="",s.font=e,s.brush=i,s.text=r,s.automaticFields=n,s}return n(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this.internalText},set:function(t){this.internalText=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"automaticFields",{get:function(){return this.internalAutomaticFields},set:function(t){this.internalAutomaticFields=t},enumerable:!0,configurable:!0}),e.prototype.getValue=function(t){var e=this.text.toString();if(void 0!==this.automaticFields&&null!=this.automaticFields&&this.automaticFields.length>0)for(var i=0;i<this.automaticFields.length;i++){var r=this.automaticFields[i];e=e.replace("{"+i+"}",r.getValue(t))}return e},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(116),n=i(19),o=i(11),s=i(99),a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e,i){var r=t.call(this)||this;return r.internalNumberStyle=n.c.Numeric,void 0===i?r.font=e:i instanceof o.a?(r.font=e,r.brush=i):(r.font=e,r.bounds=i),r}return a(e,t),Object.defineProperty(e.prototype,"numberStyle",{get:function(){return this.internalNumberStyle},set:function(t){this.internalNumberStyle=t},enumerable:!0,configurable:!0}),e.prototype.getValue=function(t){var e=this.getPageFromGraphics(t),i=e.section.parent.document,r=i.pages.count;return s.a.convert(r,this.numberStyle)},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(11),n=i(19),o=i(99),s=i(98),a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e,i){var o=t.call(this)||this;return o.internalNumberStyle=n.c.Numeric,void 0===i?o.font=e:i instanceof r.a?(o.font=e,o.brush=i):(o.font=e,o.bounds=i),o}return a(e,t),Object.defineProperty(e.prototype,"numberStyle",{get:function(){return this.internalNumberStyle},set:function(t){this.internalNumberStyle=t},enumerable:!0,configurable:!0}),e.prototype.getValue=function(t){var e=this.getPageFromGraphics(t);return this.internalGetValue(e)},e.prototype.internalGetValue=function(t){var e=t.document,i=e.pages.indexOf(t)+1;return o.a.convert(i,this.numberStyle)},e}(s.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return c});var r=i(0),n=i(6),o=i(19),s=i(70),a=i(8),h=i(3),u=i(5),l=i(1),c=function(){function t(t,e){this.dictionaryProperties=new l.a,this.destinationMode=s.a.Location,this.zoomFactor=0,this.destinationLocation=new r.a(0,0),this.bounds=new r.c,this.array=new n.a;o.b.RotateAngle0;this.destinationLocation=new r.a(0,this.destinationLocation.y),this.pdfPage=t,e instanceof r.a?this.destinationLocation=e:this.bounds=e}return Object.defineProperty(t.prototype,"zoom",{get:function(){return this.zoomFactor},set:function(t){this.zoomFactor=t,this.initializePrimitive()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},set:function(t){this.pdfPage=t,this.initializePrimitive()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.destinationMode},set:function(t){this.destinationMode=t,this.initializePrimitive()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.destinationLocation},set:function(t){this.destinationLocation=t,this.initializePrimitive()},enumerable:!0,configurable:!0}),t.prototype.pointToNativePdf=function(t,e){return t.section.pointToNativePdf(t,e)},t.prototype.initializePrimitive=function(){switch(this.array.clear(),this.array.add(new a.b(this.pdfPage)),this.destinationMode){case s.a.Location:var t=this.pdfPage,e=new r.a;e=this.pointToNativePdf(t,this.destinationLocation),this.array.add(new h.a(this.dictionaryProperties.xyz)),this.array.add(new u.a(e.x)),this.array.add(new u.a(e.y)),this.array.add(new u.a(this.zoomFactor));break;case s.a.FitToPage:this.array.add(new h.a(this.dictionaryProperties.fit))}},Object.defineProperty(t.prototype,"element",{get:function(){return this.initializePrimitive(),this.array},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(9),n=i(10),o=i(60),s=i(18),a=function(){function t(){}return Object.defineProperty(t,"AliceBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.AliceBlue)&&(t=this.sBrushes.getValue(o.d.AliceBlue)),null==t&&(t=this.getBrush(o.d.AliceBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"AntiqueWhite",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.AntiqueWhite)&&(t=this.sBrushes.getValue(o.d.AntiqueWhite)),null==t&&(t=this.getBrush(o.d.AntiqueWhite)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Aqua",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Aqua)&&(t=this.sBrushes.getValue(o.d.Aqua)),null==t&&(t=this.getBrush(o.d.Aqua)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Aquamarine",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Aquamarine)&&(t=this.sBrushes.getValue(o.d.Aquamarine)),null==t&&(t=this.getBrush(o.d.Aquamarine)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Azure",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Azure)&&(t=this.sBrushes.getValue(o.d.Azure)),null==t&&(t=this.getBrush(o.d.Azure)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Beige",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Beige)&&(t=this.sBrushes.getValue(o.d.Beige)),null==t&&(t=this.getBrush(o.d.Beige)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Bisque",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Bisque)&&(t=this.sBrushes.getValue(o.d.Bisque)),null==t&&(t=this.getBrush(o.d.Bisque)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Black",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Black)&&(t=this.sBrushes.getValue(o.d.Black)),null==t&&(t=this.getBrush(o.d.Black)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"BlanchedAlmond",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.BlanchedAlmond)&&(t=this.sBrushes.getValue(o.d.BlanchedAlmond)),null==t&&(t=this.getBrush(o.d.BlanchedAlmond)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Blue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Blue)&&(t=this.sBrushes.getValue(o.d.Blue)),null==t&&(t=this.getBrush(o.d.Blue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"BlueViolet",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.BlueViolet)&&(t=this.sBrushes.getValue(o.d.BlueViolet)),null==t&&(t=this.getBrush(o.d.BlueViolet)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Brown",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Brown)&&(t=this.sBrushes.getValue(o.d.Brown)),null==t&&(t=this.getBrush(o.d.Brown)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"BurlyWood",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.BurlyWood)&&(t=this.sBrushes.getValue(o.d.BurlyWood)),null==t&&(t=this.getBrush(o.d.BurlyWood)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CadetBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.CadetBlue)&&(t=this.sBrushes.getValue(o.d.CadetBlue)),null==t&&(t=this.getBrush(o.d.CadetBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Chartreuse",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Chartreuse)&&(t=this.sBrushes.getValue(o.d.Chartreuse)),null==t&&(t=this.getBrush(o.d.Chartreuse)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Chocolate",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Chocolate)&&(t=this.sBrushes.getValue(o.d.Chocolate)),null==t&&(t=this.getBrush(o.d.Chocolate)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Coral",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Coral)&&(t=this.sBrushes.getValue(o.d.Coral)),null==t&&(t=this.getBrush(o.d.Coral)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CornflowerBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.CornflowerBlue)&&(t=this.sBrushes.getValue(o.d.CornflowerBlue)),null==t&&(t=this.getBrush(o.d.CornflowerBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Cornsilk",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Cornsilk)&&(t=this.sBrushes.getValue(o.d.Cornsilk)),null==t&&(t=this.getBrush(o.d.Cornsilk)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Crimson",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Crimson)&&(t=this.sBrushes.getValue(o.d.Crimson)),null==t&&(t=this.getBrush(o.d.Crimson)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Cyan",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Cyan)&&(t=this.sBrushes.getValue(o.d.Cyan)),null==t&&(t=this.getBrush(o.d.Cyan)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkBlue)&&(t=this.sBrushes.getValue(o.d.DarkBlue)),null==t&&(t=this.getBrush(o.d.DarkBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkCyan",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkCyan)&&(t=this.sBrushes.getValue(o.d.DarkCyan)),null==t&&(t=this.getBrush(o.d.DarkCyan)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkGoldenrod",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkGoldenrod)&&(t=this.sBrushes.getValue(o.d.DarkGoldenrod)),null==t&&(t=this.getBrush(o.d.DarkGoldenrod)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkGray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkGray)&&(t=this.sBrushes.getValue(o.d.DarkGray)),null==t&&(t=this.getBrush(o.d.DarkGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkGreen)&&(t=this.sBrushes.getValue(o.d.DarkGreen)),null==t&&(t=this.getBrush(o.d.DarkGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkKhaki",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkKhaki)&&(t=this.sBrushes.getValue(o.d.DarkKhaki)),null==t&&(t=this.getBrush(o.d.DarkKhaki)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkMagenta",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkMagenta)&&(t=this.sBrushes.getValue(o.d.DarkMagenta)),null==t&&(t=this.getBrush(o.d.DarkMagenta)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkOliveGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkOliveGreen)&&(t=this.sBrushes.getValue(o.d.DarkOliveGreen)),null==t&&(t=this.getBrush(o.d.DarkOliveGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkOrange",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkOrange)&&(t=this.sBrushes.getValue(o.d.DarkOrange)),null==t&&(t=this.getBrush(o.d.DarkOrange)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkOrchid",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkOrchid)&&(t=this.sBrushes.getValue(o.d.DarkOrchid)),null==t&&(t=this.getBrush(o.d.DarkOrchid)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkRed",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkRed)&&(t=this.sBrushes.getValue(o.d.DarkRed)),null==t&&(t=this.getBrush(o.d.DarkRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkSalmon",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkSalmon)&&(t=this.sBrushes.getValue(o.d.DarkSalmon)),null==t&&(t=this.getBrush(o.d.DarkSalmon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkSeaGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkSeaGreen)&&(t=this.sBrushes.getValue(o.d.DarkSeaGreen)),null==t&&(t=this.getBrush(o.d.DarkSeaGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkSlateBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkSlateBlue)&&(t=this.sBrushes.getValue(o.d.DarkSlateBlue)),null==t&&(t=this.getBrush(o.d.DarkSlateBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkSlateGray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkSlateGray)&&(t=this.sBrushes.getValue(o.d.DarkSlateGray)),null==t&&(t=this.getBrush(o.d.DarkSlateGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkTurquoise",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkTurquoise)&&(t=this.sBrushes.getValue(o.d.DarkTurquoise)),null==t&&(t=this.getBrush(o.d.DarkTurquoise)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkViolet",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkViolet)&&(t=this.sBrushes.getValue(o.d.DarkViolet)),null==t&&(t=this.getBrush(o.d.DarkViolet)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DeepPink",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DeepPink)&&(t=this.sBrushes.getValue(o.d.DeepPink)),null==t&&(t=this.getBrush(o.d.DeepPink)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DeepSkyBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DeepSkyBlue)&&(t=this.sBrushes.getValue(o.d.DeepSkyBlue)),null==t&&(t=this.getBrush(o.d.DeepSkyBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DimGray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DimGray)&&(t=this.sBrushes.getValue(o.d.DimGray)),null==t&&(t=this.getBrush(o.d.DimGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DodgerBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DodgerBlue)&&(t=this.sBrushes.getValue(o.d.DodgerBlue)),null==t&&(t=this.getBrush(o.d.DodgerBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Firebrick",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Firebrick)&&(t=this.sBrushes.getValue(o.d.Firebrick)),null==t&&(t=this.getBrush(o.d.Firebrick)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"FloralWhite",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.FloralWhite)&&(t=this.sBrushes.getValue(o.d.FloralWhite)),null==t&&(t=this.getBrush(o.d.FloralWhite)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"ForestGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.ForestGreen)&&(t=this.sBrushes.getValue(o.d.ForestGreen)),null==t&&(t=this.getBrush(o.d.ForestGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Fuchsia",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Fuchsia)&&(t=this.sBrushes.getValue(o.d.Fuchsia)),null==t&&(t=this.getBrush(o.d.Fuchsia)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Gainsboro",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Gainsboro)&&(t=this.sBrushes.getValue(o.d.Gainsboro)),null==t&&(t=this.getBrush(o.d.Gainsboro)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GhostWhite",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.GhostWhite)&&(t=this.sBrushes.getValue(o.d.GhostWhite)),null==t&&(t=this.getBrush(o.d.GhostWhite)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Gold",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Gold)&&(t=this.sBrushes.getValue(o.d.Gold)),null==t&&(t=this.getBrush(o.d.Gold)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Goldenrod",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Goldenrod)&&(t=this.sBrushes.getValue(o.d.Goldenrod)),null==t&&(t=this.getBrush(o.d.Goldenrod)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Gray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Gray)&&(t=this.sBrushes.getValue(o.d.Gray)),null==t&&(t=this.getBrush(o.d.Gray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Green",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Green)&&(t=this.sBrushes.getValue(o.d.Green)),null==t&&(t=this.getBrush(o.d.Green)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GreenYellow",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.GreenYellow)&&(t=this.sBrushes.getValue(o.d.GreenYellow)),null==t&&(t=this.getBrush(o.d.GreenYellow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Honeydew",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Honeydew)&&(t=this.sBrushes.getValue(o.d.Honeydew)),null==t&&(t=this.getBrush(o.d.Honeydew)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"HotPink",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.HotPink)&&(t=this.sBrushes.getValue(o.d.HotPink)),null==t&&(t=this.getBrush(o.d.HotPink)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"IndianRed",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.IndianRed)&&(t=this.sBrushes.getValue(o.d.IndianRed)),null==t&&(t=this.getBrush(o.d.IndianRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Indigo",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Indigo)&&(t=this.sBrushes.getValue(o.d.Indigo)),null==t&&(t=this.getBrush(o.d.Indigo)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Ivory",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Ivory)&&(t=this.sBrushes.getValue(o.d.Ivory)),null==t&&(t=this.getBrush(o.d.Ivory)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Khaki",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Khaki)&&(t=this.sBrushes.getValue(o.d.Khaki)),null==t&&(t=this.getBrush(o.d.Khaki)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Lavender",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Lavender)&&(t=this.sBrushes.getValue(o.d.Lavender)),null==t&&(t=this.getBrush(o.d.Lavender)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LavenderBlush",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LavenderBlush)&&(t=this.sBrushes.getValue(o.d.LavenderBlush)),null==t&&(t=this.getBrush(o.d.LavenderBlush)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LawnGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LawnGreen)&&(t=this.sBrushes.getValue(o.d.LawnGreen)),null==t&&(t=this.getBrush(o.d.LawnGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LemonChiffon",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LemonChiffon)&&(t=this.sBrushes.getValue(o.d.LemonChiffon)),null==t&&(t=this.getBrush(o.d.LemonChiffon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightBlue)&&(t=this.sBrushes.getValue(o.d.LightBlue)),null==t&&(t=this.getBrush(o.d.LightBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightCoral",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightCoral)&&(t=this.sBrushes.getValue(o.d.LightCoral)),null==t&&(t=this.getBrush(o.d.LightCoral)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightCyan",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightCyan)&&(t=this.sBrushes.getValue(o.d.LightCyan)),null==t&&(t=this.getBrush(o.d.LightCyan)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightGoldenrodYellow",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightGoldenrodYellow)&&(t=this.sBrushes.getValue(o.d.LightGoldenrodYellow)),null==t&&(t=this.getBrush(o.d.LightGoldenrodYellow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightGray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightGray)&&(t=this.sBrushes.getValue(o.d.LightGray)),null==t&&(t=this.getBrush(o.d.LightGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightGreen)&&(t=this.sBrushes.getValue(o.d.LightGreen)),null==t&&(t=this.getBrush(o.d.LightGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightPink",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightPink)&&(t=this.sBrushes.getValue(o.d.LightPink)),null==t&&(t=this.getBrush(o.d.LightPink)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSalmon",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightSalmon)&&(t=this.sBrushes.getValue(o.d.LightSalmon)),null==t&&(t=this.getBrush(o.d.LightSalmon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSeaGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightSeaGreen)&&(t=this.sBrushes.getValue(o.d.LightSeaGreen)),null==t&&(t=this.getBrush(o.d.LightSeaGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSkyBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightSkyBlue)&&(t=this.sBrushes.getValue(o.d.LightSkyBlue)),null==t&&(t=this.getBrush(o.d.LightSkyBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSlateGray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightSlateGray)&&(t=this.sBrushes.getValue(o.d.LightSlateGray)),null==t&&(t=this.getBrush(o.d.LightSlateGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSteelBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightSteelBlue)&&(t=this.sBrushes.getValue(o.d.LightSteelBlue)),null==t&&(t=this.getBrush(o.d.LightSteelBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightYellow",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightYellow)&&(t=this.sBrushes.getValue(o.d.LightYellow)),null==t&&(t=this.getBrush(o.d.LightYellow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Lime",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Lime)&&(t=this.sBrushes.getValue(o.d.Lime)),null==t&&(t=this.getBrush(o.d.Lime)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LimeGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LimeGreen)&&(t=this.sBrushes.getValue(o.d.LimeGreen)),null==t&&(t=this.getBrush(o.d.LimeGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Linen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Linen)&&(t=this.sBrushes.getValue(o.d.Linen)),null==t&&(t=this.getBrush(o.d.Linen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Magenta",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Magenta)&&(t=this.sBrushes.getValue(o.d.Magenta)),null==t&&(t=this.getBrush(o.d.Magenta)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Maroon",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Maroon)&&(t=this.sBrushes.getValue(o.d.Maroon)),null==t&&(t=this.getBrush(o.d.Maroon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumAquamarine",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumAquamarine)&&(t=this.sBrushes.getValue(o.d.MediumAquamarine)),null==t&&(t=this.getBrush(o.d.MediumAquamarine)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumBlue)&&(t=this.sBrushes.getValue(o.d.MediumBlue)),null==t&&(t=this.getBrush(o.d.MediumBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumOrchid",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumOrchid)&&(t=this.sBrushes.getValue(o.d.MediumOrchid)),null==t&&(t=this.getBrush(o.d.MediumOrchid)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumPurple",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumPurple)&&(t=this.sBrushes.getValue(o.d.MediumPurple)),null==t&&(t=this.getBrush(o.d.MediumPurple)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumSeaGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumSeaGreen)&&(t=this.sBrushes.getValue(o.d.MediumSeaGreen)),null==t&&(t=this.getBrush(o.d.MediumSeaGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumSlateBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumSlateBlue)&&(t=this.sBrushes.getValue(o.d.MediumSlateBlue)),null==t&&(t=this.getBrush(o.d.MediumSlateBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumSpringGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumSpringGreen)&&(t=this.sBrushes.getValue(o.d.MediumSpringGreen)),null==t&&(t=this.getBrush(o.d.MediumSpringGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumTurquoise",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumTurquoise)&&(t=this.sBrushes.getValue(o.d.MediumTurquoise)),null==t&&(t=this.getBrush(o.d.MediumTurquoise)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumVioletRed",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumVioletRed)&&(t=this.sBrushes.getValue(o.d.MediumVioletRed)),null==t&&(t=this.getBrush(o.d.MediumVioletRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MidnightBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MidnightBlue)&&(t=this.sBrushes.getValue(o.d.MidnightBlue)),null==t&&(t=this.getBrush(o.d.MidnightBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MintCream",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MintCream)&&(t=this.sBrushes.getValue(o.d.MintCream)),null==t&&(t=this.getBrush(o.d.MintCream)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MistyRose",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MistyRose)&&(t=this.sBrushes.getValue(o.d.MistyRose)),null==t&&(t=this.getBrush(o.d.MistyRose)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Moccasin",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Moccasin)&&(t=this.sBrushes.getValue(o.d.Moccasin)),null==t&&(t=this.getBrush(o.d.Moccasin)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"NavajoWhite",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.NavajoWhite)&&(t=this.sBrushes.getValue(o.d.NavajoWhite)),null==t&&(t=this.getBrush(o.d.NavajoWhite)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Navy",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Navy)&&(t=this.sBrushes.getValue(o.d.Navy)),null==t&&(t=this.getBrush(o.d.Navy)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OldLace",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.OldLace)&&(t=this.sBrushes.getValue(o.d.OldLace)),null==t&&(t=this.getBrush(o.d.OldLace)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Olive",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Olive)&&(t=this.sBrushes.getValue(o.d.Olive)),null==t&&(t=this.getBrush(o.d.Olive)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OliveDrab",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.OliveDrab)&&(t=this.sBrushes.getValue(o.d.OliveDrab)),null==t&&(t=this.getBrush(o.d.OliveDrab)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Orange",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Orange)&&(t=this.sBrushes.getValue(o.d.Orange)),null==t&&(t=this.getBrush(o.d.Orange)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OrangeRed",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.OrangeRed)&&(t=this.sBrushes.getValue(o.d.OrangeRed)),null==t&&(t=this.getBrush(o.d.OrangeRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Orchid",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Orchid)&&(t=this.sBrushes.getValue(o.d.Orchid)),null==t&&(t=this.getBrush(o.d.Orchid)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PaleGoldenrod",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PaleGoldenrod)&&(t=this.sBrushes.getValue(o.d.PaleGoldenrod)),null==t&&(t=this.getBrush(o.d.PaleGoldenrod)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PaleGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PaleGreen)&&(t=this.sBrushes.getValue(o.d.PaleGreen)),null==t&&(t=this.getBrush(o.d.PaleGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PaleTurquoise",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PaleTurquoise)&&(t=this.sBrushes.getValue(o.d.PaleTurquoise)),null==t&&(t=this.getBrush(o.d.PaleTurquoise)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PaleVioletRed",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PaleVioletRed)&&(t=this.sBrushes.getValue(o.d.PaleVioletRed)),null==t&&(t=this.getBrush(o.d.PaleVioletRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PapayaWhip",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PapayaWhip)&&(t=this.sBrushes.getValue(o.d.PapayaWhip)),null==t&&(t=this.getBrush(o.d.PapayaWhip)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PeachPuff",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PeachPuff)&&(t=this.sBrushes.getValue(o.d.PeachPuff)),null==t&&(t=this.getBrush(o.d.PeachPuff)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Peru",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Peru)&&(t=this.sBrushes.getValue(o.d.Peru)),null==t&&(t=this.getBrush(o.d.Peru)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Pink",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Pink)&&(t=this.sBrushes.getValue(o.d.Pink)),null==t&&(t=this.getBrush(o.d.Pink)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Plum",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Plum)&&(t=this.sBrushes.getValue(o.d.Plum)),null==t&&(t=this.getBrush(o.d.Plum)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PowderBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PowderBlue)&&(t=this.sBrushes.getValue(o.d.PowderBlue)),null==t&&(t=this.getBrush(o.d.PowderBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Purple",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Purple)&&(t=this.sBrushes.getValue(o.d.Purple)),null==t&&(t=this.getBrush(o.d.Purple)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Red",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Red)&&(t=this.sBrushes.getValue(o.d.Red)),null==t&&(t=this.getBrush(o.d.Red)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"RosyBrown",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.RosyBrown)&&(t=this.sBrushes.getValue(o.d.RosyBrown)),null==t&&(t=this.getBrush(o.d.RosyBrown)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"RoyalBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.RoyalBlue)&&(t=this.sBrushes.getValue(o.d.RoyalBlue)),null==t&&(t=this.getBrush(o.d.RoyalBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SaddleBrown",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SaddleBrown)&&(t=this.sBrushes.getValue(o.d.SaddleBrown)),null==t&&(t=this.getBrush(o.d.SaddleBrown)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Salmon",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Salmon)&&(t=this.sBrushes.getValue(o.d.Salmon)),null==t&&(t=this.getBrush(o.d.Salmon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SandyBrown",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SandyBrown)&&(t=this.sBrushes.getValue(o.d.SandyBrown)),null==t&&(t=this.getBrush(o.d.SandyBrown)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SeaGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SeaGreen)&&(t=this.sBrushes.getValue(o.d.SeaGreen)),null==t&&(t=this.getBrush(o.d.SeaGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SeaShell",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SeaShell)&&(t=this.sBrushes.getValue(o.d.SeaShell)),null==t&&(t=this.getBrush(o.d.SeaShell)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Sienna",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Sienna)&&(t=this.sBrushes.getValue(o.d.Sienna)),null==t&&(t=this.getBrush(o.d.Sienna)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Silver",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Silver)&&(t=this.sBrushes.getValue(o.d.Silver)),null==t&&(t=this.getBrush(o.d.Silver)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SkyBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SkyBlue)&&(t=this.sBrushes.getValue(o.d.SkyBlue)),null==t&&(t=this.getBrush(o.d.SkyBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SlateBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SlateBlue)&&(t=this.sBrushes.getValue(o.d.SlateBlue)),null==t&&(t=this.getBrush(o.d.SlateBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SlateGray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SlateGray)&&(t=this.sBrushes.getValue(o.d.SlateGray)),null==t&&(t=this.getBrush(o.d.SlateGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Snow",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Snow)&&(t=this.sBrushes.getValue(o.d.Snow)),null==t&&(t=this.getBrush(o.d.Snow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SpringGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SpringGreen)&&(t=this.sBrushes.getValue(o.d.SpringGreen)),null==t&&(t=this.getBrush(o.d.SpringGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SteelBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SteelBlue)&&(t=this.sBrushes.getValue(o.d.SteelBlue)),null==t&&(t=this.getBrush(o.d.SteelBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Tan",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Tan)&&(t=this.sBrushes.getValue(o.d.Tan)),null==t&&(t=this.getBrush(o.d.Tan)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Teal",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Teal)&&(t=this.sBrushes.getValue(o.d.Teal)),null==t&&(t=this.getBrush(o.d.Teal)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Thistle",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Thistle)&&(t=this.sBrushes.getValue(o.d.Thistle)),null==t&&(t=this.getBrush(o.d.Thistle)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Tomato",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Tomato)&&(t=this.sBrushes.getValue(o.d.Tomato)),null==t&&(t=this.getBrush(o.d.Tomato)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Transparent",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Transparent)&&(t=this.sBrushes.getValue(o.d.Transparent)),null==t&&(t=this.getBrush(o.d.Transparent)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Turquoise",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Turquoise)&&(t=this.sBrushes.getValue(o.d.Turquoise)),null==t&&(t=this.getBrush(o.d.Turquoise)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Violet",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Violet)&&(t=this.sBrushes.getValue(o.d.Violet)),null==t&&(t=this.getBrush(o.d.Violet)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Wheat",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Wheat)&&(t=this.sBrushes.getValue(o.d.Wheat)),null==t&&(t=this.getBrush(o.d.Wheat)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"White",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.White)&&(t=this.sBrushes.getValue(o.d.White)),null==t&&(t=this.getBrush(o.d.White)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WhiteSmoke",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.WhiteSmoke)&&(t=this.sBrushes.getValue(o.d.WhiteSmoke)),null==t&&(t=this.getBrush(o.d.WhiteSmoke)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Yellow",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Yellow)&&(t=this.sBrushes.getValue(o.d.Yellow)),null==t&&(t=this.getBrush(o.d.Yellow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"YellowGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.YellowGreen)&&(t=this.sBrushes.getValue(o.d.YellowGreen)),null==t&&(t=this.getBrush(o.d.YellowGreen)),t},enumerable:!0,configurable:!0}),t.getBrush=function(t){var e=this.getColorValue(t),i=new s.a(e);return this.sBrushes.setValue(t,i),i},t.getColorValue=function(t){var e=new r.a;switch(t){case o.d.Transparent:e=new r.a(0,255,255,255);break;case o.d.AliceBlue:e=new r.a(255,240,248,255);break;case o.d.AntiqueWhite:e=new r.a(255,250,235,215);break;case o.d.Aqua:e=new r.a(255,0,255,255);break;case o.d.Aquamarine:e=new r.a(255,127,255,212);break;case o.d.Azure:e=new r.a(255,240,255,255);break;case o.d.Beige:e=new r.a(255,245,245,220);break;case o.d.Bisque:e=new r.a(255,255,228,196);break;case o.d.Black:e=new r.a(255,0,0,0);break;case o.d.BlanchedAlmond:e=new r.a(255,255,235,205);break;case o.d.Blue:e=new r.a(255,0,0,255);break;case o.d.BlueViolet:e=new r.a(255,138,43,226);break;case o.d.Brown:e=new r.a(255,165,42,42);break;case o.d.BurlyWood:e=new r.a(255,222,184,135);break;case o.d.CadetBlue:e=new r.a(255,95,158,160);break;case o.d.Chartreuse:e=new r.a(255,127,255,0);break;case o.d.Chocolate:e=new r.a(255,210,105,30);break;case o.d.Coral:e=new r.a(255,255,127,80);break;case o.d.CornflowerBlue:e=new r.a(255,100,149,237);break;case o.d.Cornsilk:e=new r.a(255,255,248,220);break;case o.d.Crimson:e=new r.a(255,220,20,60);break;case o.d.Cyan:e=new r.a(255,0,255,255);break;case o.d.DarkBlue:e=new r.a(255,0,0,139);break;case o.d.DarkCyan:e=new r.a(255,0,139,139);break;case o.d.DarkGoldenrod:e=new r.a(255,184,134,11);break;case o.d.DarkGray:e=new r.a(255,169,169,169);break;case o.d.DarkGreen:e=new r.a(255,0,100,0);break;case o.d.DarkKhaki:e=new r.a(255,189,183,107);break;case o.d.DarkMagenta:e=new r.a(255,139,0,139);break;case o.d.DarkOliveGreen:e=new r.a(255,85,107,47);break;case o.d.DarkOrange:e=new r.a(255,255,140,0);break;case o.d.DarkOrchid:e=new r.a(255,153,50,204);break;case o.d.DarkRed:e=new r.a(255,139,0,0);break;case o.d.DarkSalmon:e=new r.a(255,233,150,122);break;case o.d.DarkSeaGreen:e=new r.a(255,143,188,139);break;case o.d.DarkSlateBlue:e=new r.a(255,72,61,139);break;case o.d.DarkSlateGray:e=new r.a(255,47,79,79);break;case o.d.DarkTurquoise:e=new r.a(255,0,206,209);break;case o.d.DarkViolet:e=new r.a(255,148,0,211);break;case o.d.DeepPink:e=new r.a(255,255,20,147);break;case o.d.DeepSkyBlue:e=new r.a(255,0,191,255);break;case o.d.DimGray:e=new r.a(255,105,105,105);break;case o.d.DodgerBlue:e=new r.a(255,30,144,255);break;case o.d.Firebrick:e=new r.a(255,178,34,34);break;case o.d.FloralWhite:e=new r.a(255,255,250,240);break;case o.d.ForestGreen:e=new r.a(255,34,139,34);break;case o.d.Fuchsia:e=new r.a(255,255,0,255);break;case o.d.Gainsboro:e=new r.a(255,220,220,220);break;case o.d.GhostWhite:e=new r.a(255,248,248,255);break;case o.d.Gold:e=new r.a(255,255,215,0);break;case o.d.Goldenrod:e=new r.a(255,218,165,32);break;case o.d.Gray:e=new r.a(255,128,128,128);break;case o.d.Green:e=new r.a(255,0,128,0);break;case o.d.GreenYellow:e=new r.a(255,173,255,47);break;case o.d.Honeydew:e=new r.a(255,240,255,240);break;case o.d.HotPink:e=new r.a(255,255,105,180);break;case o.d.IndianRed:e=new r.a(255,205,92,92);break;case o.d.Indigo:e=new r.a(255,75,0,130);break;case o.d.Ivory:e=new r.a(255,255,255,240);break;case o.d.Khaki:e=new r.a(255,240,230,140);break;case o.d.Lavender:e=new r.a(255,230,230,250);break;case o.d.LavenderBlush:e=new r.a(255,255,240,245);break;case o.d.LawnGreen:e=new r.a(255,124,252,0);break;case o.d.LemonChiffon:e=new r.a(255,255,250,205);break;case o.d.LightBlue:e=new r.a(255,173,216,230);break;case o.d.LightCoral:e=new r.a(255,240,128,128);break;case o.d.LightCyan:e=new r.a(255,224,255,255);break;case o.d.LightGoldenrodYellow:e=new r.a(255,250,250,210);break;case o.d.LightGreen:e=new r.a(255,144,238,144);break;case o.d.LightGray:e=new r.a(255,211,211,211);break;case o.d.LightPink:e=new r.a(255,255,182,193);break;case o.d.LightSalmon:e=new r.a(255,255,160,122);break;case o.d.LightSeaGreen:e=new r.a(255,32,178,170);break;case o.d.LightSkyBlue:e=new r.a(255,135,206,250);break;case o.d.LightSlateGray:e=new r.a(255,119,136,153);break;case o.d.LightSteelBlue:e=new r.a(255,176,196,222);break;case o.d.LightYellow:e=new r.a(255,255,255,224);break;case o.d.Lime:e=new r.a(255,0,255,0);break;case o.d.LimeGreen:e=new r.a(255,50,205,50);break;case o.d.Linen:e=new r.a(255,250,240,230);break;case o.d.Magenta:e=new r.a(255,255,0,255);break;case o.d.Maroon:e=new r.a(255,128,0,0);break;case o.d.MediumAquamarine:e=new r.a(255,102,205,170);break;case o.d.MediumBlue:e=new r.a(255,0,0,205);break;case o.d.MediumOrchid:e=new r.a(255,186,85,211);break;case o.d.MediumPurple:e=new r.a(255,147,112,219);break;case o.d.MediumSeaGreen:e=new r.a(255,60,179,113);break;case o.d.MediumSlateBlue:e=new r.a(255,123,104,238);break;case o.d.MediumSpringGreen:e=new r.a(255,0,250,154);break;case o.d.MediumTurquoise:e=new r.a(255,72,209,204);break;case o.d.MediumVioletRed:e=new r.a(255,199,21,133);break;case o.d.MidnightBlue:e=new r.a(255,25,25,112);break;case o.d.MintCream:e=new r.a(255,245,255,250);break;case o.d.MistyRose:e=new r.a(255,255,228,225);break;case o.d.Moccasin:e=new r.a(255,255,228,181);break;case o.d.NavajoWhite:e=new r.a(255,255,222,173);break;case o.d.Navy:e=new r.a(255,0,0,128);break;case o.d.OldLace:e=new r.a(255,253,245,230);break;case o.d.Olive:e=new r.a(255,128,128,0);break;case o.d.OliveDrab:e=new r.a(255,107,142,35);break;case o.d.Orange:e=new r.a(255,255,165,0);break;case o.d.OrangeRed:e=new r.a(255,255,69,0);break;case o.d.Orchid:e=new r.a(255,218,112,214);break;case o.d.PaleGoldenrod:e=new r.a(255,238,232,170);break;case o.d.PaleGreen:e=new r.a(255,152,251,152);break;case o.d.PaleTurquoise:e=new r.a(255,175,238,238);break;case o.d.PaleVioletRed:e=new r.a(255,219,112,147);break;case o.d.PapayaWhip:e=new r.a(255,255,239,213);break;case o.d.PeachPuff:e=new r.a(255,255,218,185);break;case o.d.Peru:e=new r.a(255,205,133,63);break;case o.d.Pink:e=new r.a(255,255,192,203);break;case o.d.Plum:e=new r.a(255,221,160,221);break;case o.d.PowderBlue:e=new r.a(255,176,224,230);break;case o.d.Purple:e=new r.a(255,128,0,128);break;case o.d.Red:e=new r.a(255,255,0,0);break;case o.d.RosyBrown:e=new r.a(255,188,143,143);break;case o.d.RoyalBlue:e=new r.a(255,65,105,225);break;case o.d.SaddleBrown:e=new r.a(255,139,69,19);break;case o.d.Salmon:e=new r.a(255,250,128,114);break;case o.d.SandyBrown:e=new r.a(255,244,164,96);break;case o.d.SeaGreen:e=new r.a(255,46,139,87);break;case o.d.SeaShell:e=new r.a(255,255,245,238);break;case o.d.Sienna:e=new r.a(255,160,82,45);break;case o.d.Silver:e=new r.a(255,192,192,192);break;case o.d.SkyBlue:e=new r.a(255,135,206,235);break;case o.d.SlateBlue:e=new r.a(255,106,90,205);break;case o.d.SlateGray:e=new r.a(255,112,128,144);break;case o.d.Snow:e=new r.a(255,255,250,250);break;case o.d.SpringGreen:e=new r.a(255,0,255,127);break;case o.d.SteelBlue:e=new r.a(255,70,130,180);break;case o.d.Tan:e=new r.a(255,210,180,140);break;case o.d.Teal:e=new r.a(255,0,128,128);break;case o.d.Thistle:e=new r.a(255,216,191,216);break;case o.d.Tomato:e=new r.a(255,255,99,71);break;case o.d.Turquoise:e=new r.a(255,64,224,208);break;case o.d.Violet:e=new r.a(255,238,130,238);break;case o.d.Wheat:e=new r.a(255,245,222,179);break;case o.d.White:e=new r.a(255,255,255,255);break;case o.d.WhiteSmoke:e=new r.a(255,245,245,245);break;case o.d.Yellow:e=new r.a(255,255,255,0);break;case o.d.YellowGreen:e=new r.a(255,154,205,50)}return e},t.sBrushes=new n.a,t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return g});var r=i(2),n=i(9),o=i(0),s=i(4),a=i(1),h=i(33),u=i(6),l=i(5),c=i(34),d=i(26),f=i(60),p=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),g=function(t){function e(e,i,r,h){var u=t.call(this,new s.a)||this;if(u.mDictionaryProperties=new a.a,e instanceof o.a&&i instanceof o.a&&r instanceof n.a&&h instanceof n.a)u.initialize(r,h),u.mPointStart=e,u.mPointEnd=i,u.setPoints(u.mPointStart,u.mPointEnd);else if(e instanceof o.d)if(u.initialize(i,r),h===f.c.BackwardDiagonal||h===f.c.ForwardDiagonal||h===f.c.Horizontal||h===f.c.Vertical){switch(u.mBoundaries=e,h){case f.c.BackwardDiagonal:u.mPointStart=new o.a(e.right,e.top),u.mPointEnd=new o.a(e.left,e.bottom);break;case f.c.ForwardDiagonal:u.mPointStart=new o.a(e.left,e.top),u.mPointEnd=new o.a(e.right,e.bottom);break;case f.c.Horizontal:u.mPointStart=new o.a(e.left,e.top),u.mPointEnd=new o.a(e.right,e.top);break;case f.c.Vertical:u.mPointStart=new o.a(e.left,e.top),u.mPointEnd=new o.a(e.left,e.bottom);break;default:throw new Error("ArgumentException -- Unsupported linear gradient mode: "+h+" mode")}u.setPoints(u.mPointStart,u.mPointEnd)}else if("number"==typeof h&&void 0!==h){if(u.mBoundaries=e,0===(h%=360))u.mPointStart=new o.a(e.left,e.top),u.mPointEnd=new o.a(e.right,e.top);else if(90===h)u.mPointStart=new o.a(e.left,e.top),u.mPointEnd=new o.a(e.left,e.bottom);else if(180===h)u.mPointEnd=new o.a(e.left,e.top),u.mPointStart=new o.a(e.right,e.top);else if(270===h)u.mPointEnd=new o.a(e.left,e.top),u.mPointStart=new o.a(e.left,e.bottom);else{var l=Math.PI/180,c=h*l,d=Math.tan(c),p=u.mBoundaries.left+(u.mBoundaries.right-u.mBoundaries.left)/2,g=u.mBoundaries.top+(u.mBoundaries.bottom-u.mBoundaries.top)/2,m=new o.a(p,g);p=u.mBoundaries.width/(2*Math.cos(c)),g=d*p,p+=m.x,g+=m.y;var y=new o.a(p,g),b=u.subPoints(y,m),w=u.choosePoint(h),v=u.mulPoints(u.subPoints(w,m),b)/u.mulPoints(b,b);u.mPointEnd=u.addPoints(m,u.mulPoint(b,v)),u.mPointStart=u.addPoints(m,u.mulPoint(b,-1*v))}u.setPoints(u.mPointEnd,u.mPointStart)}return u}return p(e,t),e.prototype.initialize=function(t,e){this.mColours=[t,e],this.mColourBlend=new c.a(2),this.mColourBlend.positions=[0,1],this.mColourBlend.colors=this.mColours,this.initShading()},Object.defineProperty(e.prototype,"blend",{get:function(){return this.mBlend},set:function(t){if(null==t)throw new Error("ArgumentNullException : Blend");if(null==this.mColours)throw new Error("NotSupportedException : There is no starting and ending colours specified.");this.mBlend=t,this.mColourBlend=this.mBlend.generateColorBlend(this.mColours,this.colorSpace),this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interpolationColors",{get:function(){return this.mColourBlend},set:function(t){if(null==t)throw new Error("ArgumentNullException : InterpolationColors");this.mBlend=null,this.mColours=null,this.mColourBlend=t,this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linearColors",{get:function(){return this.mColours},set:function(t){if(null==t)throw new Error("ArgumentNullException : LinearColors");if(t.length<2)throw new Error("ArgumentException : The array is too small - LinearColors");null==this.mColours&&void 0===this.mColours?this.mColours=[t[0],t[1]]:(this.mColours[0]=t[0],this.mColours[1]=t[1]),null==this.mBlend&&void 0===this.mBlend?(this.mColourBlend=new c.a(2),this.mColourBlend.colors=this.mColours,this.mColourBlend.positions=[0,1]):this.mColourBlend=this.mBlend.generateColorBlend(this.mColours,this.colorSpace),this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectangle",{get:function(){return this.mBoundaries},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extend",{get:function(){var t=f.a.None,e=this.shading.items.getValue(this.mDictionaryProperties.extend);if(null!=e){var i=e.items(0),r=e.items(1);i.value&&(t|=f.a.Start),r.value&&(t|=f.a.End)}return t},set:function(t){var e,i,r=this.shading.items.getValue(this.mDictionaryProperties.extend);null==r?(e=new h.a(!1),i=new h.a(!1),r=new u.a,r.add(e),r.add(i),this.shading.items.setValue(this.mDictionaryProperties.extend,r)):(e=r.items(0),i=r.items(1))},enumerable:!0,configurable:!0}),e.prototype.addPoints=function(t,e){var i=t.x+e.x,r=t.y+e.y;return new o.a(i,r)},e.prototype.subPoints=function(t,e){var i=t.x-e.x,r=t.y-e.y;return new o.a(i,r)},e.prototype.mulPoints=function(t,e){return t.x*e.x+t.y*e.y},e.prototype.mulPoint=function(t,e){return t.x=t.x*e,t.y=t.y*e,t},e.prototype.choosePoint=function(t){var e=new o.a(0,0);if(t<90&&t>0)e=new o.a(this.mBoundaries.right,this.mBoundaries.bottom);else if(t<180&&t>90)e=new o.a(this.mBoundaries.left,this.mBoundaries.bottom);else if(t<270&&t>180)e=new o.a(this.mBoundaries.left,this.mBoundaries.top);else{if(!(t>270))throw new Error("PdfException - Internal error.");e=new o.a(this.mBoundaries.right,this.mBoundaries.top)}return e},e.prototype.setPoints=function(t,e){var i=new u.a;i.add(new l.a(t.x)),i.add(new l.a(this.updateY(t.y))),i.add(new l.a(e.x)),i.add(new l.a(this.updateY(e.y))),this.shading.items.setValue(this.mDictionaryProperties.coords,i)},e.prototype.updateY=function(t){return 0!==t?-t:t},e.prototype.initShading=function(){this.colorSpace=r.i.Rgb,this.function=this.mColourBlend.getFunction(this.colorSpace),this.shading.items.setValue(this.mDictionaryProperties.shadingType,new l.a(f.b.Axial))},e.prototype.clone=function(){var t=this;return t.resetPatternDictionary(new s.a(this.patternDictionary)),t.shading=new s.a,t.initShading(),t.setPoints(t.mPointStart,t.mPointEnd),null!==t&&t instanceof e&&null!=this.matrix&&void 0!==this.matrix&&(t.matrix=this.matrix.clone()),null!=this.mColours&&void 0!==this.mColours&&(t.mColours=this.mColours),null!=this.blend&&void 0!==this.blend?t.blend=this.blend.clonePdfBlend():null!=this.interpolationColors&&void 0!==this.interpolationColors&&(t.interpolationColors=this.interpolationColors.cloneColorBlend()),t.extend=this.extend,this.cloneBackgroundValue(t),this.cloneAntiAliasingValue(t),t},e.prototype.resetFunction=function(){this.function=this.mColourBlend.getFunction(this.colorSpace)},e}(d.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return f});var r=i(2),n=i(4),o=i(1),s=i(33),a=i(6),h=i(5),u=i(34),l=i(26),c=i(60),d=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f=function(t){function e(e,i,r,s,a,h){var u=t.call(this,new n.a)||this;if(u.mDictionaryProperties=new o.a,u.initialize(a,h),i<0)throw new Error("ArgumentOutOfRangeException : radiusStart - The radius cannot be less then zero.");if(s<0)throw new Error("ArgumentOutOfRangeException : radiusEnd - The radius cannpt be less then zero.");return u.mPointEnd=r,u.mPointStart=e,u.mRadiusStart=i,u.mRadiusEnd=s,u.setPoints(u.mPointStart,u.mPointEnd,u.mRadiusStart,u.mRadiusEnd),u}return d(e,t),e.prototype.initialize=function(t,e){this.mColour=[t,e],this.mColourBlends=new u.a(2),this.mColourBlends.positions=[0,1],this.mColourBlends.colors=this.mColour,this.initShading()},Object.defineProperty(e.prototype,"blend",{get:function(){return this.mBlend},set:function(t){if(null==t)throw new Error("ArgumentNullException : Blend");if(null==this.mColour&&void 0===this.mColour)throw new Error("NotSupportedException : There is no starting and ending colours specified.");this.mBlend=t,this.mColourBlends=this.mBlend.generateColorBlend(this.mColour,this.colorSpace),this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interpolationColors",{get:function(){return this.mColourBlends},set:function(t){if(null==t)throw new Error("ArgumentNullException : InterpolationColors");this.mBlend=null,this.mColour=null,this.mColourBlends=t,this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linearColors",{get:function(){return this.mColour},set:function(t){if(null==t)throw new Error("ArgumentNullException : radial LinearColors");if(t.length<2)throw new Error("ArgumentException : The array is too small LinearColors");null==this.mColour&&void 0===this.mColour?this.mColour=[t[0],t[1]]:(this.mColour[0]=t[0],this.mColour[1]=t[1]),null==this.mBlend&&void 0===this.mBlend?(this.mColourBlends=new u.a(2),this.mColourBlends.colors=this.mColour,this.mColourBlends.positions=[0,1]):this.mColourBlends=this.mBlend.generateColorBlend(this.mColour,this.colorSpace),this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectangle",{get:function(){return this.mBoundaries},set:function(t){this.mBoundaries=t,this.bBox=a.a.fromRectangle(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extend",{get:function(){var t=c.a.None,e=this.shading.items.getValue(this.mDictionaryProperties.extend);if(null!==e&&void 0!==e){var i=e.items(0),r=e.items(1);i.value&&(t|=c.a.Start),r.value&&(t|=c.a.End)}return t},set:function(t){var e,i,r=this.shading.items.getValue(this.mDictionaryProperties.extend);null==r&&void 0===r?(e=new s.a(!1),i=new s.a(!1),r=new a.a,r.add(e),r.add(i),this.shading.items.setValue(this.mDictionaryProperties.extend,r)):(e=r.items(0),i=r.items(1))},enumerable:!0,configurable:!0}),e.prototype.setPoints=function(t,e,i,r){var n=new a.a;n.add(new h.a(t.x)),n.add(new h.a(this.updateY(t.y))),n.add(new h.a(i)),n.add(new h.a(e.x)),n.add(new h.a(this.updateY(e.y))),i!==r?n.add(new h.a(r)):n.add(new h.a(0)),this.shading.items.setValue(this.mDictionaryProperties.coords,n)},e.prototype.updateY=function(t){return 0!==t?-t:t},e.prototype.initShading=function(){this.colorSpace=r.i.Rgb,this.function=this.mColourBlends.getFunction(this.colorSpace),this.shading.items.setValue(this.mDictionaryProperties.shadingType,new h.a(c.b.Radial))},e.prototype.clone=function(){var t=this;return t.resetPatternDictionary(new n.a(this.patternDictionary)),t.shading=new n.a,t.initShading(),t.setPoints(this.mPointStart,this.mPointEnd,this.mRadiusStart,this.mRadiusEnd),t instanceof e&&null!==this.matrix&&void 0!==this.matrix&&(t.matrix=this.matrix.clone()),null!==this.mColour&&void 0!==this.mColour&&(t.mColour=this.mColour),null!==this.blend&&void 0!==this.blend?t.blend=this.blend.clonePdfBlend():null!==this.interpolationColors&&void 0!==this.interpolationColors&&(t.interpolationColors=this.interpolationColors.cloneColorBlend()),t.extend=this.extend,this.cloneBackgroundValue(t),this.cloneAntiAliasingValue(t),t},e.prototype.resetFunction=function(){this.function=this.mColourBlends.getFunction(this.colorSpace)},e}(l.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(15),n=i(12),o=i(0),s=i(121),a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e,i,n,s,a,h,u){var l=this;return void 0===e?l=t.call(this)||this:e instanceof o.c?l=t.call(this,e,i,n)||this:e instanceof r.a?i instanceof o.c?l=t.call(this,e,null,i,n,s)||this:void 0===h&&void 0===u?l=t.call(this,e,null,0,0,i,n,s,a)||this:void 0!==h&&void 0!==u&&(l=t.call(this,e,null,i,n,s,a,h,u)||this):void 0!==e&&void 0===a&&void 0===h?l=t.call(this,0,0,e,i,n,s)||this:void 0!==e&&void 0!==a&&void 0!==h&&(l=t.call(this,e,i,n,s,a,h)||this),l}return a(e,t),e.prototype.draw=function(t,e,i,r){if(e instanceof o.a&&void 0===e.width&&void 0===i)return this.drawHelper(t,e.x,e.y);if(e instanceof o.c&&void 0!==e.width&&void 0===i)return this.drawHelper(t,e,null);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.drawHelper(t,e,i,null);if(e instanceof o.a&&i instanceof n.b)return this.drawHelper(t,e.x,e.y,i);if("number"==typeof e&&(r instanceof n.b||null==r)&&"number"==typeof i){var s=t.graphics.clientSize.width-e,a=new o.c(e,i,s,0);return this.drawHelper(t,a,r)}return this.drawHelper(t,e,i)},e.prototype.drawInternal=function(t){if(null==t)throw new Error("ArgumentNullException : graphics");t.drawArc(this.obtainPen(),this.bounds,this.startAngle,this.sweepAngle)},e}(s.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return c});var r=i(11),n=i(15),o=i(12),s=i(0),a=i(21),h=i(101),u=i(2),l=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),c=function(t){function e(e,i,o,s){var a=t.call(this)||this;return a.mpoints=null,a.mpathTypes=null,a.mStartFigure=!0,a.mfillMode=u.h.Alternate,a.isBeziers3=!1,a.isXps=!1,void 0===e||(e instanceof n.a?(a=t.call(this,e)||this,i instanceof r.a?(a=t.call(this,e,i)||this,a.fillMode=o):null!==i&&void 0!==i&&null!==o&&void 0!==o&&a.addPath(i,o)):e instanceof r.a?(a=t.call(this,e)||this,null!==i&&void 0!==i&&(a.fillMode=i),null!==o&&void 0!==o&&null!==s&&void 0!==s&&a.addPath(o,s)):a.addPath(e,i)),a}return l(e,t),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this.mfillMode},set:function(t){this.mfillMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathPoints",{get:function(){return this.points},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathTypes",{get:function(){return this.types},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointCount",{get:function(){var t=0;return null!=this.mpoints&&(t=this.mpoints.length),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastPoint",{get:function(){return this.getLastPoint()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"points",{get:function(){return null==this.mpoints&&(this.mpoints=[]),this.mpoints},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"types",{get:function(){return null==this.mpathTypes&&(this.mpathTypes=[]),this.mpathTypes},enumerable:!0,configurable:!0}),e.prototype.draw=function(t,e,i,r){if(e instanceof s.a&&void 0===e.width&&void 0===i)return this.drawHelper(t,e.x,e.y);if(e instanceof s.c&&void 0!==e.width&&void 0===i)return this.drawHelper(t,e,null);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.drawHelper(t,e,i,null);if(e instanceof s.a&&i instanceof o.b)return this.drawHelper(t,e.x,e.y,i);if("number"==typeof e&&(r instanceof o.b||null==r)&&"number"==typeof i){var n=t.graphics.clientSize.width-e,a=new s.c(e,i,n,0);return this.drawHelper(t,a,r)}return e instanceof s.c&&o.b,this.drawHelper(t,e,i)},e.prototype.addArc=function(t,e,i,r,n,o){if(t instanceof s.c)this.addArc(t.x,t.y,t.width,t.height,e,i);else for(var h=this.getBezierArcPoints(t,e,e+i,e+r,n,o),u=0;u<h.length;u+=8){var l=[h[u],h[u+1],h[u+2],h[u+3],h[u+4],h[u+5],h[u+6],h[u+7]];this.addPoints(l,a.c.Bezier3)}},e.prototype.addBezier=function(t,e,i,r,n,o,h,u){if(t instanceof s.a&&e instanceof s.a&&i instanceof s.a&&r instanceof s.a)this.addBezier(t.x,t.y,e.x,e.y,i.x,i.y,r.x,r.y);else{var l=[];l.push(t),l.push(e),l.push(i),l.push(r),l.push(n),l.push(o),l.push(h),l.push(u),this.addPoints(l,a.c.Bezier3)}},e.prototype.addEllipse=function(t,e,i,r){t instanceof s.c?this.addEllipse(t.x,t.y,t.width,t.height):(this.startFigure(),this.addArc(t,e,i,r,0,360),this.closeFigure())},e.prototype.addLine=function(t,e,i,r){if(t instanceof s.a&&e instanceof s.a)this.addLine(t.x,t.y,e.x,e.y);else{var n=[];n.push(t),n.push(e),n.push(i),n.push(r),this.addPoints(n,a.c.Line)}},e.prototype.addPath=function(t,i){if(t instanceof e)this.addPath(t.pathPoints,t.pathTypes);else{if(null==t)throw new Error("ArgumentNullException:pathPoints");if(null==i)throw new Error("ArgumentNullException:pathTypes");if(t.length!==i.length)throw new Error("The argument arrays should be of equal length.")}},e.prototype.addPie=function(t,e,i,r,n,o){t instanceof s.c?this.addPie(t.x,t.y,t.width,t.height,e,i):(this.startFigure(),this.addArc(t,e,i,r,n,o),this.addPoint(new s.a(t+i/2,e+r/2),a.c.Line),this.closeFigure())},e.prototype.addPolygon=function(t){var e=(t.length,[]);this.startFigure();for(var i=0;i<t.length;i++)e.push(t[i].x),e.push(t[i].y);this.addPoints(e,a.c.Line),this.closeFigure()},e.prototype.addRectangle=function(t,e,i,r){if(t instanceof s.c)this.addRectangle(t.x,t.y,t.width,t.height);else{var n=[];this.startFigure(),n.push(t),n.push(e),n.push(t+i),n.push(e),n.push(t+i),n.push(e+r),n.push(t),n.push(e+r),this.addPoints(n,a.c.Line),this.closeFigure()}},e.prototype.startFigure=function(){this.mStartFigure=!0},e.prototype.closeAllFigures=function(){for(var t=this.pathPoints[0],e=0;e<this.mpathTypes.length;e++){var i=this.types[e],r=!1;0!==e&&i===a.c.Start?(this.closeFigure(e-1),r=!0):e===this.mpathTypes.length-1&&!r&&this.isXps&&t.x===this.pathPoints[e].y&&this.closeFigure(e)}},e.prototype.getLastPoint=function(){var t=new s.a(0,0),e=this.pointCount;return e>0&&null!=this.mpoints&&(t.x=this.mpoints[e-1].x,t.y=this.mpoints[e-1].y),t},e.prototype.getBezierArcPoints=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){var s=void 0;s=e,e=r,r=s}var a,h;Math.abs(o)<=90?(a=o,h=1):(h=Math.ceil(Math.abs(o)/90),a=o/h);for(var u=(t+i)/2,l=(e+r)/2,c=(i-t)/2,d=(r-e)/2,f=a*(Math.PI/360),p=Math.abs(4/3*(1-Math.cos(f))/Math.sin(f)),g=[],m=0;m<h;m++){var y=(n+m*a)*(Math.PI/180),b=(n+(m+1)*a)*(Math.PI/180),w=Math.cos(y),v=Math.cos(b),S=Math.sin(y),P=Math.sin(b);a>0?g.push(u+c*w,l-d*S,u+c*(w-p*S),l-d*(S+p*w),u+c*(v+p*P),l-d*(P-p*v),u+c*v,l-d*P):g.push(u+c*w,l-d*S,u+c*(w+p*S),l-d*(S-p*w),u+c*(v-p*P),l-d*(P+p*v),u+c*v,l-d*P)}return g},e.prototype.getBoundsInternal=function(){var t=this.pathPoints,e=new s.c(0,0,0,0);if(t.length>0){for(var i=t[0].x,r=t[0].x,n=t[0].y,o=t[0].y,a=1;a<t.length;a++){var h=t[a];i=Math.min(h.x,i),r=Math.max(h.x,r),n=Math.min(h.y,n),o=Math.max(h.y,o)}e=new s.c(i,n,r-i,o-n)}return e},e.prototype.drawInternal=function(t){if(null==t)throw new Error("ArgumentNullException :graphics");t.drawPath(this.obtainPen(),this.brush,this)},e.prototype.addPoints=function(t,e,i,r){if(void 0===i&&void 0===r)this.addPoints(t,e,0,t.length);else for(var n=i;n<r;n++){var o=new s.a(t[n],t[n+1]);n===i?this.pointCount<=0||this.mStartFigure?(this.addPoint(o,a.c.Start),this.mStartFigure=!1):o.x===this.lastPoint.x||o.y===this.lastPoint.y||this.isBeziers3?o.x!==this.lastPoint.x&&o.y!==this.lastPoint.y&&this.addPoint(o,a.c.Bezier3):this.addPoint(o,a.c.Line):this.addPoint(o,e),n++}},e.prototype.addPoint=function(t,e){this.points.push(t),this.types.push(e)},e.prototype.closeFigure=function(t){if(void 0===t)this.pointCount>0&&this.closeFigure(this.pointCount-1),this.startFigure();else{if(t<0)throw new Error("IndexOutOfRangeException()");var e=this.types[t];e|=a.c.CloseSubpath,this.types[t]=e}},e}(h.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return l});var r=i(102),n=i(22),o=i(7),s=i(20),a=i(2),h=i(47),u=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=function(t){function e(e,i,r){var n=t.call(this,i)||this;return n.isEmbedFont=!1,n.isUnicode=!0,void 0!==r?n.createFontInternal(e,r):n.createFontInternal(e,o.a.Regular),n}return u(e,t),e.prototype.equalsToFont=function(t){return!1},e.prototype.getLineWidth=function(t,e){var i=0;if(null!==e&&void 0!==e&&e.textDirection!==a.m.None){i=this.getUnicodeLineWidth(t,i,e).width}else i=this.fontInternal.getLineWidth(t);var r=this.metrics.getSize(e);return i*=n.a.charSizeMultiplier*r,i=this.applyFormatSettings(t,e,i)},e.prototype.getCharWidth=function(t,e){var i=this.fontInternal.getCharWidth(t);return i*=.001*this.metrics.getSize(e)},e.prototype.createFontInternal=function(t,e){this.fontInternal=new r.a(t,this.size),this.calculateStyle(e),this.initializeInternals()},e.prototype.calculateStyle=function(t){var e=this.fontInternal.ttfMetrics.macStyle;0!=(t&o.a.Underline)&&(e|=o.a.Underline),0!=(t&o.a.Strikeout)&&(e|=o.a.Strikeout),this.setStyle(e)},e.prototype.initializeInternals=function(){var t=null;s.a.enableCache&&(t=s.a.cache.search(this));var e=null;if(null!==t&&void 0!==t){e=t.getInternals();var i=t.metrics;i=i.clone(),i.size=this.size,this.metrics=i,this.fontInternal=t.fontInternal}else null==t&&(this.fontInternal instanceof r.a&&(this.fontInternal.isEmbed=this.isEmbedFont),this.fontInternal.createInternals(),e=this.fontInternal.getInternals(),this.metrics=this.fontInternal.metrics);this.metrics.isUnicodeFont=!0,this.setInternals(e)},e.prototype.setSymbols=function(t){var e=this.fontInternal;null!=e&&e.setSymbols(t)},Object.defineProperty(e.prototype,"Unicode",{get:function(){return this.isUnicode},enumerable:!0,configurable:!0}),e.prototype.getUnicodeLineWidth=function(t,e,i){e=0;var r=null,n=new h.a,o=n.getGlyphIndex(t,this,i.textDirection===a.m.RightToLeft,r,!0),s=o.success;if(r=o.glyphs,s&&null!==r)for(var u=this.fontInternal.ttfReader,l=0,c=r.length;l<c;l++){var d=r[l],f=u.getGlyph(d);null!==f&&void 0!==f&&(e+=f.width)}return{success:s,width:e}},e}(n.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(19),n=i(0),o=i(27),s=i(25),a=function(){function t(t,e,i,r,o){t instanceof n.c&&void 0===e?this.InitiateBounds(t.x,t.y,t.width,t.height,null):t instanceof n.c&&e instanceof s.a&&void 0===i?this.InitiateBounds(t.x,t.y,t.width,t.height,e):t instanceof n.a&&e instanceof n.b&&void 0===i?this.InitiateBounds(t.x,t.y,e.width,e.height,null):t instanceof n.a&&e instanceof n.b&&i instanceof s.a&&void 0===r?this.InitiateBounds(t.x,t.y,e.width,e.height,i):t instanceof n.b&&void 0===e?this.InitiateBounds(0,0,t.width,t.height,null):"number"==typeof t&&"number"==typeof e&&void 0===i?this.InitiateBounds(0,0,t,e,null):"number"==typeof t&&"number"==typeof e&&i instanceof s.a&&void 0===r?this.InitiateBounds(0,0,t,e,i):this.InitiateBounds(t,e,i,r,null)}return Object.defineProperty(t.prototype,"dock",{get:function(){return this.dockStyle},set:function(t){this.dockStyle=t,this.resetAlignment()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alignment",{get:function(){return this.alignmentStyle},set:function(t){this.setAlignment(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"foreground",{get:function(){return this.isForeground},set:function(t){this.isForeground=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"background",{get:function(){return!this.isForeground},set:function(t){this.isForeground=!t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.currentLocation},set:function(t){this.type===r.f.None&&(this.currentLocation=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return void 0!==this.currentLocation?this.currentLocation.x:0},set:function(t){this.type===r.f.None&&(this.currentLocation.x=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return void 0!==this.currentLocation?this.currentLocation.y:0},set:function(t){this.type===r.f.None&&(this.currentLocation.y=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.template.size},set:function(t){this.type===r.f.None&&this.template.reset(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.template.width},set:function(t){if(this.template.width!==t&&this.type===r.f.None){var e=this.template.size;e.width=t,this.template.reset(e)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.template.height},set:function(t){if(this.template.height!==t&&this.type===r.f.None){var e=this.template.size;e.height=t,this.template.reset(e)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){return this.template.graphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return this.pdfTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.templateType},set:function(t){this.updateDocking(t),this.templateType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return new n.c(new n.a(this.x,this.y),this.size)},set:function(t){this.type===r.f.None&&(this.location=new n.a(t.x,t.y),this.size=new n.b(t.width,t.height))},enumerable:!0,configurable:!0}),t.prototype.InitiateBounds=function(t,e,i,r,n){this.x=t,this.y=e,this.pdfTemplate=new o.a(i,r)},t.prototype.updateDocking=function(t){if(t!==r.f.None){switch(t){case r.f.Top:this.dock=r.d.Top;break;case r.f.Bottom:this.dock=r.d.Bottom;break;case r.f.Left:this.dock=r.d.Left;break;case r.f.Right:this.dock=r.d.Right}this.resetAlignment()}},t.prototype.resetAlignment=function(){this.alignment=r.e.None},t.prototype.setAlignment=function(t){if(this.dock===r.d.None)this.alignmentStyle=t;else{var e=!1;switch(this.dock){case r.d.Left:e=t===r.e.TopLeft||t===r.e.MiddleLeft||t===r.e.BottomLeft||t===r.e.None;break;case r.d.Top:e=t===r.e.TopLeft||t===r.e.TopCenter||t===r.e.TopRight||t===r.e.None;break;case r.d.Right:e=t===r.e.TopRight||t===r.e.MiddleRight||t===r.e.BottomRight||t===r.e.None;break;case r.d.Bottom:e=t===r.e.BottomLeft||t===r.e.BottomCenter||t===r.e.BottomRight||t===r.e.None;break;case r.d.Fill:e=t===r.e.MiddleCenter||t===r.e.None}e&&(this.alignmentStyle=t)}},t.prototype.draw=function(t,e){var i=t.page,r=this.calculateBounds(i,e);t.graphics.drawPdfTemplate(this.template,new n.a(r.x,r.y),new n.b(r.width,r.height))},t.prototype.calculateBounds=function(t,e){var i=this.bounds;return this.alignmentStyle!==r.e.None?i=this.getAlignmentBounds(t,e):this.dockStyle!==r.d.None&&(i=this.getDockBounds(t,e)),i},t.prototype.getAlignmentBounds=function(t,e){this.bounds;return this.type===r.f.None?this.getSimpleAlignmentBounds(t,e):this.getTemplateAlignmentBounds(t,e)},t.prototype.getSimpleAlignmentBounds=function(t,e){var i=this.bounds,n=t.section,o=n.getActualBounds(e,t,!1),s=this.x,a=this.y;switch(this.alignmentStyle){case r.e.TopLeft:s=0,a=0;break;case r.e.TopCenter:s=(o.width-this.width)/2,a=0;break;case r.e.TopRight:s=o.width-this.width,a=0;break;case r.e.MiddleLeft:s=0,a=(o.height-this.height)/2;break;case r.e.MiddleCenter:s=(o.width-this.width)/2,a=(o.height-this.height)/2;break;case r.e.MiddleRight:s=o.width-this.width,a=(o.height-this.height)/2;break;case r.e.BottomLeft:s=0,a=o.height-this.height;break;case r.e.BottomCenter:s=(o.width-this.width)/2,a=o.height-this.height;break;case r.e.BottomRight:s=o.width-this.width,a=o.height-this.height}return i.x=s,i.y=a,i},t.prototype.getTemplateAlignmentBounds=function(t,e){var i=this.bounds,n=t.section,o=n.getActualBounds(e,t,!1),s=this.x,a=this.y;switch(this.alignmentStyle){case r.e.TopLeft:this.type===r.f.Left?(s=this.convertSign(o.x),a=0):this.type===r.f.Top&&(s=this.convertSign(o.x),a=this.convertSign(o.y));break;case r.e.TopCenter:s=(o.width-this.width)/2,a=this.convertSign(o.y);break;case r.e.TopRight:this.type===r.f.Right?(s=o.width+n.getRightIndentWidth(e,t,!1)-this.width,a=0):this.type===r.f.Top&&(s=o.width+n.getRightIndentWidth(e,t,!1)-this.width,a=this.convertSign(o.y));break;case r.e.MiddleLeft:s=this.convertSign(o.x),a=(o.height-this.height)/2;break;case r.e.MiddleCenter:s=(o.width-this.width)/2,a=(o.height-this.height)/2;break;case r.e.MiddleRight:s=o.width+n.getRightIndentWidth(e,t,!1)-this.width,a=(o.height-this.height)/2;break;case r.e.BottomLeft:this.type===r.f.Left?(s=this.convertSign(o.x),a=o.height-this.height):this.type===r.f.Bottom&&(s=this.convertSign(o.x),a=o.height+n.getBottomIndentHeight(e,t,!1)-this.height);break;case r.e.BottomCenter:s=(o.width-this.width)/2,a=o.height+n.getBottomIndentHeight(e,t,!1)-this.height;break;case r.e.BottomRight:this.type===r.f.Right?(s=o.width+n.getRightIndentWidth(e,t,!1)-this.width,a=o.height-this.height):this.type===r.f.Bottom&&(s=o.width+n.getRightIndentWidth(e,t,!1)-this.width,a=o.height+n.getBottomIndentHeight(e,t,!1)-this.height)}return i.x=s,i.y=a,i},t.prototype.getDockBounds=function(t,e){this.bounds;return this.type===r.f.None?this.getSimpleDockBounds(t,e):this.getTemplateDockBounds(t,e)},t.prototype.getSimpleDockBounds=function(t,e){var i=(this.bounds,t.section),o=i.getActualBounds(e,t,!1),s=this.x,a=this.y,h=this.width,u=this.height;switch(this.dockStyle){case r.d.Left:s=0,a=0,h=this.width,u=o.height;break;case r.d.Top:s=0,a=0,h=o.width,u=this.height;break;case r.d.Right:s=o.width-this.width,a=0,h=this.width,u=o.height;break;case r.d.Bottom:s=0,a=o.height-this.height,h=o.width,u=this.height;break;case r.d.Fill:s=0,s=0,h=o.width,u=o.height}return new n.c(s,a,h,u)},t.prototype.getTemplateDockBounds=function(t,e){var i=(this.bounds,t.section),o=i.getActualBounds(e,t,!1),s=i.pageSettings.getActualSize(),a=this.x,h=this.y,u=this.width,l=this.height;switch(this.dockStyle){case r.d.Left:a=this.convertSign(o.x),h=0,u=this.width,l=o.height;break;case r.d.Top:a=this.convertSign(o.x),h=this.convertSign(o.y),u=s.width,l=this.height,o.height<0&&(h=s.height-o.y);break;case r.d.Right:a=o.width+i.getRightIndentWidth(e,t,!1)-this.width,h=0,u=this.width,l=o.height;break;case r.d.Bottom:a=this.convertSign(o.x),h=o.height+i.getBottomIndentHeight(e,t,!1)-this.height,u=s.width,l=this.height,o.height<0&&(h-=s.height);break;case r.d.Fill:a=0,a=0,u=o.width,l=o.height}return new n.c(a,h,u,l)},t.prototype.convertSign=function(t){return 0!==t||0===t&&1/t==-1/0?-t:t},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){this.automaticFieldsInformation=[]}return Object.defineProperty(t.prototype,"automaticFields",{get:function(){return this.automaticFieldsInformation},enumerable:!0,configurable:!0}),t.prototype.add=function(t){return this.automaticFields.push(t)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var r=i(59),n=i(32),o=i(100),s=i(0),a=i(27),h=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=function(t){function e(){var e=t.call(this)||this;return e.list=new n.a,e.painterGraphics=[],e}return h(e,t),e.prototype.performDraw=function(e,i,r,n){t.prototype.performDrawHelper.call(this,e,i,r,n);var h=this.getPageFromGraphics(e),u=h.document,l=this.getValue(e);if(this.list.containsKey(u)){var c=this.list.getValue(u),d=new s.a(i.x+this.location.x,i.y+this.location.y);e.drawPdfTemplate(c.template,d,new s.b(c.template.width*r,c.template.height*n)),this.painterGraphics.push(e)}else{var f=this.getSize(),p=new a.a(f);this.list.setValue(u,new o.a(p,l)),p.graphics.drawString(l,this.getFont(),this.pen,this.getBrush(),0,0,f.width,f.height,this.stringFormat);var d=new s.a(i.x+this.location.x,i.y+this.location.y);e.drawPdfTemplate(p,d,new s.b(p.width*r,p.height*n)),this.painterGraphics.push(e)}},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(119),n=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o=function(t){function e(e){var i=t.call(this)||this;return void 0!==e&&(i.mpen=e),i}return n(e,t),Object.defineProperty(e.prototype,"pen",{get:function(){return this.mpen},set:function(t){this.mpen=t},enumerable:!0,configurable:!0}),e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t.prototype.drawHelper=function(t,e,i){var r=0!==e||0!==i,n=null;r&&(n=t.save(),t.translateTransform(e,i)),this.drawInternal(t),r&&t.restore(n)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return s});var r=i(35),n=i(120),o=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getBounds=function(){return this.getBoundsInternal()},e.prototype.drawGraphicsHelper=function(t,e){if(null==t)throw new Error("ArgumentNullException :graphics");this.drawShapeHelper(t,e.x,e.y)},e.prototype.drawShapeHelper=function(t,e,i){var r=.5!==e||.5!==i,n=null;r&&(n=t.save(),t.translateTransform(e,i)),this.drawInternal(t),r&&t.restore(n)},e.prototype.layout=function(t){return new n.a(this).layout(t)},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(12),n=i(0),o=i(21),s=i(41),a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e){var i=t.call(this,e)||this;return i.olderPdfForm=0,i.shapeBounds=new n.c,i.totalPageSize=0,i}return a(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this.elements},enumerable:!0,configurable:!0}),e.prototype.layoutInternal=function(t){var e=t.page,i=t.bounds,r=this.element.getBounds();r.x=0,r.y=0;var n=this.shapeBounds.x===this.shapeBounds.y&&this.shapeBounds.y===this.shapeBounds.width&&this.shapeBounds.width===this.shapeBounds.height&&0===this.shapeBounds.height;this.isPdfGrid&&!n&&(r=this.shapeBounds);var o=null,s=new u;for(s.page=e;;){var a=this.raiseBeforePageLayout(e,i);i=a.currentBounds;var h=null;if(a.cancel||(s=this.layoutOnPage(e,i,r,t),h=this.raiseEndPageLayout(s),a.cancel=null!==h&&h.cancel),s.end||a.cancel){o=this.getLayoutResult(s);break}if(i=this.getPaginateBounds(t),r=this.getNextShapeBounds(r,s),e=null===h||null===h.nextPage?this.getNextPage(e):h.nextPage,this.isPdfGrid){o=this.getLayoutResult(s);break}}return o},e.prototype.raiseBeforePageLayout=function(t,e){var i=!1;if(this.element.raiseBeginPageLayout){var r=new s.h(e,t);this.element.onBeginPageLayout(r),i=r.cancel,e=r.bounds}return{currentBounds:e,cancel:i}},e.prototype.raiseEndPageLayout=function(t){var e=null;if(this.element.raiseEndPageLayout){var i=this.getLayoutResult(t);e=new s.i(i),this.element.onEndPageLayout(e)}return e},e.prototype.getLayoutResult=function(t){return new r.d(t.page,t.bounds)},e.prototype.getNextShapeBounds=function(t,e){var i=e.bounds;return t.y=t.y+i.height,t.height=t.height-i.height,t},e.prototype.layoutOnPage=function(t,e,i,r){var n=new u;e=this.checkCorrectCurrentBounds(t,e,r);var s=this.fitsToBounds(e,i),a=!(r.format.break===o.b.FitElement&&!s&&t===r.page),h=!1;if(a){var l=this.getDrawBounds(e,i);this.drawShape(t.graphics,e,l),n.bounds=this.getPageResultBounds(e,i),h=e.height>=i.height}return n.end=h||r.format.layout===o.a.OnePage,n.page=t,n},e.prototype.getDrawBounds=function(t,e){var i=t;return i.y=i.y-e.y,i.height=i.height+e.y,i},e.prototype.drawShape=function(t,e,i){var r=t.save();try{t.setClip(e),this.element.drawGraphicsHelper(t,new n.a(i.x,i.y))}finally{t.restore(r)}},e.prototype.checkCorrectCurrentBounds=function(t,e,i){var r=t.graphics.clientSize;return e.width=e.width>0?e.width:r.width-e.x,e.height=e.height>0?e.height:r.height-e.y,this.isPdfGrid&&(e.height=e.height-this.bottomCellPadding),e},e.prototype.getPageResultBounds=function(t,e){var i=t;return i.height=Math.min(i.height,e.height),i},e.prototype.fitsToBounds=function(t,e){return e.height<=t.height},e.index=0,e.splitDiff=0,e.last=!1,e.borderWidth=0,e}(r.a),u=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(15),n=i(0),o=i(122),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e,i,o,s,a,h,u,l){var c=t.call(this)||this;return c.startAngle=0,c.sweepAngle=0,void 0===e||(e instanceof n.c&&void 0!==i&&void 0!==o?(c=t.call(this,e)||this,c.startAngle=i,c.sweepAngle=o):e instanceof r.a?o instanceof n.c?(c=t.call(this,e,i,o)||this,c.startAngle=s,c.sweepAngle=a):(c=t.call(this,e,i,o,s,a,h)||this,c.startAngle=u,c.sweepAngle=l):(c=t.call(this,e,i,o,s)||this,c.startAngle=a,c.sweepAngle=h)),c}return s(e,t),e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(15),n=i(0),o=i(101),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e,i,o,s,a,h){var u=t.call(this)||this;return u.bounds=new n.c(0,0,0,0),void 0===e||(e instanceof r.a?(u=t.call(this,e,i)||this,o instanceof n.c?u.bounds=o:u.bounds=new n.c(o,s,a,h)):e instanceof n.c?u.bounds=e:u.bounds=new n.c(e,i,o,s)),u}return s(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this.bounds.x},set:function(t){this.bounds.x=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.bounds.y},set:function(t){this.bounds.y=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.bounds.width},set:function(t){this.bounds.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bounds.height},set:function(t){this.bounds.height=t},enumerable:!0,configurable:!0}),e.prototype.getBoundsInternal=function(){return this.bounds},e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return Object.defineProperty(t.prototype,"empty",{get:function(){return this.index===this.width&&this.width===this.charCode&&0===this.charCode},enumerable:!0,configurable:!0}),t.prototype.compareTo=function(t){var e=t;return this.index-e.index},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return Object.defineProperty(t.prototype,"isItalic",{get:function(){return 0!=(2&this.macStyle)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBold",{get:function(){return 0!=(1&this.macStyle)},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return O});var r=i(139),n=i(10),o=i(136),s=i(135),a=i(129),h=i(133),u=i(130),l=i(123),c=i(137),d=i(132),f=i(125),p=i(126),g=i(128),m=i(131),y=i(124),b=i(134),w=i(140),v=i(127),S=i(0),P=i(28),C=i(7),B=i(143),O=function(){function t(t){this.int32Size=4,this.isTtcFont=!1,this.isMacTtf=!1,this.metricsName="",this.isMacTTF=!1,this.missedGlyphs=0,this.tableNames=["cvt ","fpgm","glyf","head","hhea","hmtx","loca","maxp","prep"],this.entrySelectors=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4],this.fontData=t,this.initialize()}return Object.defineProperty(t.prototype,"macintosh",{get:function(){return null!==this.macintoshDictionary&&void 0!==this.macintoshDictionary||(this.macintoshDictionary=new n.a),this.macintoshDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"microsoft",{get:function(){return null!==this.microsoftDictionary&&void 0!==this.microsoftDictionary||(this.microsoftDictionary=new n.a),this.microsoftDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"macintoshGlyphs",{get:function(){return null!==this.internalMacintoshGlyphs&&void 0!==this.internalMacintoshGlyphs||(this.internalMacintoshGlyphs=new n.a),this.internalMacintoshGlyphs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"microsoftGlyphs",{get:function(){return null!==this.internalMicrosoftGlyphs&&void 0!==this.internalMicrosoftGlyphs||(this.internalMicrosoftGlyphs=new n.a),this.internalMicrosoftGlyphs},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){void 0===this.metrics&&(this.metrics=new h.a),this.readFontDictionary();var t=this.readNameTable(),e=this.readHeadTable();this.initializeFontName(t),this.metrics.macStyle=e.macStyle},t.prototype.readFontDictionary=function(){this.offset=0;var t=(this.checkPreambula(),this.readInt16(this.offset));this.readInt16(this.offset),this.readInt16(this.offset),this.readInt16(this.offset);void 0===this.tableDirectory&&(this.tableDirectory=new n.a);for(var e=0;e<t;++e){var i=new r.a,o=this.readString(this.int32Size);i.checksum=this.readInt32(this.offset),i.offset=this.readInt32(this.offset),i.length=this.readInt32(this.offset),this.tableDirectory.setValue(o,i)}this.lowestPosition=this.offset,this.isTtcFont||this.fixOffsets()},t.prototype.fixOffsets=function(){for(var t=Number.MAX_VALUE,e=this.tableDirectory.keys(),i=0;i<e.length;i++){var r=this.tableDirectory.getValue(e[i]),o=r.offset;if(t>o&&(t=o)<=this.lowestPosition)break}var s=t-this.lowestPosition;if(0!==s){for(var a=new n.a,i=0;i<e.length;i++){var r=this.tableDirectory.getValue(e[i]);r.offset-=s,a.setValue(e[i],r)}this.tableDirectory=a}},t.prototype.checkPreambula=function(){var t=this.readInt32(this.offset);if(this.isMacTtf=1953658213===t,65536!==t&&1953658213!==t&&1330926671!==t){this.isTtcFont=!0,this.offset=0;if("ttcf"!==this.readString(4))throw new Error("Can not read TTF font data");this.offset+=4;if(this.readInt32(this.offset)<0)throw new Error("Can not read TTF font data");this.offset=this.readInt32(this.offset),t=this.readInt32(this.offset)}return t},t.prototype.readNameTable=function(){var t=this.getTable("name");this.offset=t.offset;var e=new o.a;e.formatSelector=this.readUInt16(this.offset),e.recordsCount=this.readUInt16(this.offset),e.offset=this.readUInt16(this.offset),e.nameRecords=[];for(var i=this.offset,r=0;r<e.recordsCount;r++){this.offset=i;var n=new s.a;n.platformID=this.readUInt16(this.offset),n.encodingID=this.readUInt16(this.offset),n.languageID=this.readUInt16(this.offset),n.nameID=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.offset=this.readUInt16(this.offset),this.offset=t.offset+e.offset+n.offset;var a=0===n.platformID||3===n.platformID;n.name=this.readString(n.length,a),e.nameRecords[r]=n,i+=12}return e},t.prototype.readHeadTable=function(){var t=this.getTable("head");this.offset=t.offset;var e=new a.a;return e.version=this.readFixed(this.offset),e.fontRevision=this.readFixed(this.offset),e.checkSumAdjustment=this.readUInt32(this.offset),e.magicNumber=this.readUInt32(this.offset),e.flags=this.readUInt16(this.offset),e.unitsPerEm=this.readUInt16(this.offset),e.created=this.readInt64(this.offset),e.modified=this.readInt64(this.offset),e.xMin=this.readInt16(this.offset),e.yMin=this.readInt16(this.offset),e.xMax=this.readInt16(this.offset),e.yMax=this.readInt16(this.offset),e.macStyle=this.readUInt16(this.offset),e.lowestReadableSize=this.readUInt16(this.offset),e.fontDirectionHint=this.readInt16(this.offset),e.indexToLocalFormat=this.readInt16(this.offset),e.glyphDataFormat=this.readInt16(this.offset),e},t.prototype.readHorizontalHeaderTable=function(){var t=this.getTable("hhea");this.offset=t.offset;var e=new u.a;return e.version=this.readFixed(this.offset),e.ascender=this.readInt16(this.offset),e.descender=this.readInt16(this.offset),e.lineGap=this.readInt16(this.offset),e.advanceWidthMax=this.readUInt16(this.offset),e.minLeftSideBearing=this.readInt16(this.offset),e.minRightSideBearing=this.readInt16(this.offset),e.xMaxExtent=this.readInt16(this.offset),e.caretSlopeRise=this.readInt16(this.offset),e.caretSlopeRun=this.readInt16(this.offset),this.offset+=10,e.metricDataFormat=this.readInt16(this.offset),e.numberOfHMetrics=this.readUInt16(this.offset),e},t.prototype.readOS2Table=function(){var t=this.getTable("OS/2");this.offset=t.offset;var e=new l.a;return e.version=this.readUInt16(this.offset),e.xAvgCharWidth=this.readInt16(this.offset),e.usWeightClass=this.readUInt16(this.offset),e.usWidthClass=this.readUInt16(this.offset),e.fsType=this.readInt16(this.offset),e.ySubscriptXSize=this.readInt16(this.offset),e.ySubscriptYSize=this.readInt16(this.offset),e.ySubscriptXOffset=this.readInt16(this.offset),e.ySubscriptYOffset=this.readInt16(this.offset),e.ySuperscriptXSize=this.readInt16(this.offset),e.ySuperscriptYSize=this.readInt16(this.offset),e.ySuperscriptXOffset=this.readInt16(this.offset),e.ySuperscriptYOffset=this.readInt16(this.offset),e.yStrikeoutSize=this.readInt16(this.offset),e.yStrikeoutPosition=this.readInt16(this.offset),e.sFamilyClass=this.readInt16(this.offset),e.panose=this.readBytes(10),e.ulUnicodeRange1=this.readUInt32(this.offset),e.ulUnicodeRange2=this.readUInt32(this.offset),e.ulUnicodeRange3=this.readUInt32(this.offset),e.ulUnicodeRange4=this.readUInt32(this.offset),e.vendorIdentifier=this.readBytes(4),e.fsSelection=this.readUInt16(this.offset),e.usFirstCharIndex=this.readUInt16(this.offset),e.usLastCharIndex=this.readUInt16(this.offset),e.sTypoAscender=this.readInt16(this.offset),e.sTypoDescender=this.readInt16(this.offset),e.sTypoLineGap=this.readInt16(this.offset),e.usWinAscent=this.readUInt16(this.offset),e.usWinDescent=this.readUInt16(this.offset),e.ulCodePageRange1=this.readUInt32(this.offset),e.ulCodePageRange2=this.readUInt32(this.offset),e.version>1?(e.sxHeight=this.readInt16(this.offset),e.sCapHeight=this.readInt16(this.offset),e.usDefaultChar=this.readUInt16(this.offset),e.usBreakChar=this.readUInt16(this.offset),e.usMaxContext=this.readUInt16(this.offset)):(e.sxHeight=0,e.sCapHeight=0,e.usDefaultChar=0,e.usBreakChar=0,e.usMaxContext=0),e},t.prototype.readPostTable=function(){var t=this.getTable("post");this.offset=t.offset;var e=new c.a;return e.formatType=this.readFixed(this.offset),e.italicAngle=this.readFixed(this.offset),e.underlinePosition=this.readInt16(this.offset),e.underlineThickness=this.readInt16(this.offset),e.isFixedPitch=this.readUInt32(this.offset),e.minType42=this.readUInt32(this.offset),e.maxType42=this.readUInt32(this.offset),e.minType1=this.readUInt32(this.offset),e.maxType1=this.readUInt32(this.offset),e},t.prototype.readWidthTable=function(t,e){var i=this.getTable("hmtx");this.offset=i.offset;for(var r=[],n=0;n<t;n++){var o=new d.a;o.advanceWidth=this.readUInt16(this.offset),o.lsb=this.readInt16(this.offset);var s=1e3*o.advanceWidth/e;r.push(Math.floor(s))}return r},t.prototype.readCmapTable=function(){var t=this.getTable("cmap");this.offset=t.offset;var e=new p.a;e.version=this.readUInt16(this.offset),e.tablesCount=this.readUInt16(this.offset);for(var i=this.offset,r=[],n=0;n<e.tablesCount;n++){this.offset=i;var o=new f.a;o.platformID=this.readUInt16(this.offset),o.encodingID=this.readUInt16(this.offset),o.offset=this.readUInt32(this.offset),i=this.offset,this.readCmapSubTable(o),r[n]=o}return r},t.prototype.readCmapSubTable=function(t){var e=this.getTable("cmap");this.offset=e.offset+t.offset;var i=this.readUInt16(this.offset),r=this.getCmapEncoding(t.platformID,t.encodingID);r===C.h.Macintosh?C.i.Macintosh:C.i.Microsoft;if(r!==C.h.Unknown)switch(i){case C.g.Apple:this.readAppleCmapTable(t,r);break;case C.g.Microsoft:this.readMicrosoftCmapTable(t,r);break;case C.g.Trimmed:this.readTrimmedCmapTable(t,r)}},t.prototype.readAppleCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=new y.a;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),null!==this.maxMacIndex&&void 0!==this.maxMacIndex||(this.maxMacIndex=0);for(var n=0;n<256;++n){var o=new g.a;o.index=this.readByte(this.offset),o.width=this.getWidth(o.index),o.charCode=n,this.macintosh.setValue(n,o),this.addGlyph(o,e),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},t.prototype.readMicrosoftCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=e===C.h.Unicode?this.microsoft:this.macintosh,n=new b.a;n.format=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.version=this.readUInt16(this.offset),n.segCountX2=this.readUInt16(this.offset),n.searchRange=this.readUInt16(this.offset),n.entrySelector=this.readUInt16(this.offset),n.rangeShift=this.readUInt16(this.offset);var o=n.segCountX2/2;n.endCount=this.readUshortArray(o),n.reservedPad=this.readUInt16(this.offset),n.startCount=this.readUshortArray(o),n.idDelta=this.readUshortArray(o),n.idRangeOffset=this.readUshortArray(o);var s=n.length/2-8-4*o;n.glyphID=this.readUshortArray(s);for(var a=0,h=0,u=0;u<o;u++)for(var l=n.startCount[u];l<=n.endCount[u]&&65535!==l;l++){if(0===n.idRangeOffset[u])a=l+n.idDelta[u]&65535;else{if((h=u+n.idRangeOffset[u]/2-o+l-n.startCount[u])>=n.glyphID.length)continue;a=n.glyphID[h]+n.idDelta[u]&65535}var c=new g.a;c.index=a,c.width=this.getWidth(c.index);var d=e===C.h.Symbol&&61440==(65280&l)?255&l:l;c.charCode=d,r.setValue(d,c),this.addGlyph(c,e)}},t.prototype.readTrimmedCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=new w.a;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),r.firstCode=this.readUInt16(this.offset),r.entryCount=this.readUInt16(this.offset);for(var n=0;n<r.entryCount;++n){var o=new g.a;o.index=this.readUInt16(this.offset),o.width=this.getWidth(o.index),o.charCode=n+r.firstCode,this.macintosh.setValue(n,o),this.addGlyph(o,e),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},t.prototype.initializeFontName=function(t){for(var e=0;e<t.recordsCount;e++){var i=t.nameRecords[e];if(1===i.nameID?this.metrics.fontFamily=i.name:6===i.nameID&&(this.metrics.postScriptName=i.name),null!==this.metrics.fontFamily&&void 0!==this.metrics.fontFamily&&null!==this.metrics.postScriptName&&void 0!==this.metrics.postScriptName)break}},t.prototype.getTable=function(t){var e,i=new r.a;return this.tableDirectory.containsKey(t)&&(e=this.tableDirectory.getValue(t)),null!==e&&void 0!==e&&(i=e),i},t.prototype.getWidth=function(t){return t=t<this.width.length?t:this.width.length-1,this.width[t]},t.prototype.getCmapEncoding=function(t,e){var i=C.h.Unknown;return t==C.i.Microsoft&&e==C.j.Undefined?i=C.h.Symbol:t==C.i.Microsoft&&e==C.j.Unicode?i=C.h.Unicode:t==C.i.Macintosh&&e==C.k.Roman&&(i=C.h.Macintosh),i},t.prototype.addGlyph=function(t,e){var i=null;switch(e){case C.h.Unicode:i=this.microsoftGlyphs;break;case C.h.Macintosh:case C.h.Symbol:i=this.macintoshGlyphs}i.setValue(t.index,t)},t.prototype.initializeMetrics=function(t,e,i,r,n,o){this.initializeFontName(t);for(var s=!1,a=0;a<o.length;a++){var h=o[a];if(this.getCmapEncoding(h.platformID,h.encodingID)===C.h.Symbol){s=!0;break}}this.metrics.isSymbol=s,this.metrics.macStyle=e.macStyle,this.metrics.isFixedPitch=0!==n.isFixedPitch,this.metrics.italicAngle=n.italicAngle;var u=1e3/e.unitsPerEm;this.metrics.winAscent=r.sTypoAscender*u,this.metrics.macAscent=i.ascender*u,this.metrics.capHeight=0!==r.sCapHeight?r.sCapHeight:.7*e.unitsPerEm*u,this.metrics.winDescent=r.sTypoDescender*u,this.metrics.macDescent=i.descender*u,this.metrics.leading=(r.sTypoAscender-r.sTypoDescender+r.sTypoLineGap)*u,this.metrics.lineGap=Math.ceil(i.lineGap*u);var l=e.xMin*u,c=Math.ceil(this.metrics.macAscent+this.metrics.lineGap),d=e.xMax*u,f=this.metrics.macDescent;this.metrics.fontBox=new S.d(l,c,d,f),this.metrics.stemV=80,this.metrics.widthTable=this.updateWidth(),this.metrics.contains=this.tableDirectory.containsKey("CFF"),this.metrics.subScriptSizeFactor=e.unitsPerEm/r.ySubscriptYSize,this.metrics.superscriptSizeFactor=e.unitsPerEm/r.ySuperscriptYSize},t.prototype.updateWidth=function(){var t=[];if(this.metrics.isSymbol)for(var e=0;e<256;e++){var i=this.getGlyph(String.fromCharCode(e));t[e]=i.empty?0:i.width}else for(var r=[],n=String.fromCharCode(32),e=0;e<256;e++){r[0]=e;var o=this.getString(r,0,r.length),s=o.length>0?o[0]:"?",i=this.getGlyph(s);i.empty?(i=this.getGlyph(n),t[e]=i.empty?0:i.width):t[e]=i.width}return t},t.prototype.getDefaultGlyph=function(){return this.getGlyph(P.a.whiteSpace)},t.prototype.getString=function(t,e,i){for(var r="",n=0;n<i;n++)r+=String.fromCharCode(t[n+e]);return r},t.prototype.readLocaTable=function(t){var e=this.getTable("loca");this.offset=e.offset;var i=new m.a,r=null;if(t){var n=e.length/2;r=[];for(var o=0;o<n;o++)r[o]=2*this.readUInt16(this.offset)}else{var n=e.length/4;r=[];for(var o=0;o<n;o++)r[o]=this.readUInt32(this.offset)}return i.offsets=r,i},t.prototype.updateGlyphChars=function(t,e){t.containsKey(0)||t.setValue(0,0);for(var i=new n.a,r=t.keys(),o=0;o<r.length;o++)i.setValue(r[o],t.getValue(r[o]));for(var o=0;o<r.length;o++){var s=r[o];this.processCompositeGlyph(t,s,e)}},t.prototype.processCompositeGlyph=function(t,e,i){if(e<i.offsets.length-1){var r=i.offsets[e];if(r!==i.offsets[e+1]){var n=this.getTable("glyf");this.offset=n.offset+r;var o=new v.a;if(o.numberOfContours=this.readInt16(this.offset),o.xMin=this.readInt16(this.offset),o.yMin=this.readInt16(this.offset),o.xMax=this.readInt16(this.offset),o.yMax=this.readInt16(this.offset),o.numberOfContours<0)for(var s=0;;){var a=this.readUInt16(this.offset),h=this.readUInt16(this.offset);if(t.containsKey(h)||t.setValue(h,0),0==(a&C.m.MoreComponents))break;s=0!=(a&C.m.Arg1And2AreWords)?4:2,0!=(a&C.m.WeHaveScale)?s+=2:0!=(a&C.m.WeHaveAnXyScale)?s+=4:0!=(a&C.m.WeHaveTwoByTwo)&&(s+=8),this.offset+=s}}}},t.prototype.generateGlyphTable=function(t,e,i,r){i=[];var n=t.keys();n.sort(function(t,e){return t-e});for(var o=0,s=0;s<n.length;s++){var a=n[s];e.offsets.length>0&&(o+=e.offsets[a+1]-e.offsets[a])}var h=this.align(o);r=[];for(var s=0;s<h;s++)r.push(0);for(var u=0,l=0,c=this.getTable("glyf"),s=0;s<e.offsets.length;s++)if(i.push(u),l<n.length&&n[l]===s){++l,i[s]=u;var d=e.offsets[s],f=e.offsets[s+1]-d;if(f>0){this.offset=c.offset+d;var p=this.read(r,u,f);r=p.buffer,u+=f}}return{glyphTableSize:o,newLocaTable:i,newGlyphTable:r}},t.prototype.updateLocaTable=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : newLocaTable");for(var r=e?2*t.length:4*t.length,n=this.align(r),o=new B.a(n),s=0;s<t.length;s++){var a=t[s];e?(a/=2,o.writeShort(a)):o.writeInt(a)}return{newLocaUpdated:o.data,newLocaSize:r}},t.prototype.align=function(t){return t+3&-4},t.prototype.getFontProgram=function(t,e,i,r){if(null===t)throw new Error("Argument Null Exception : newLocaTableOut");if(null===e)throw new Error("Argument Null Exception : newGlyphTable");var n=(this.tableNames,this.getFontProgramLength(t,e,0)),o=n.fontProgramLength,s=n.numTables,a=new B.a(o);a.writeInt(65536),a.writeShort(s);var h=this.entrySelectors[s];return a.writeShort(16*(1<<(31&h))),a.writeShort(h),a.writeShort(16*(s-(1<<(31&h)))),this.writeCheckSums(a,s,t,e,i,r),this.writeGlyphs(a,t,e),a.data},t.prototype.getFontProgramLength=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : newLocaTableOut");if(null===e)throw new Error("Argument Null Exception : newGlyphTable");i=2;for(var r=this.tableNames,n=0,o=0;o<r.length;o++){var s=r[o];if("glyf"!==s&&"loca"!==s){var a=this.getTable(s);a.empty||(++i,n+=this.align(a.length))}}return n+=t.length,n+=e.length,n+=16*i+12,{fontProgramLength:n,numTables:i}},t.prototype.writeCheckSums=function(t,e,i,r,n,o){if(null===t)throw new Error("Argument Null Exception : writer");if(null===i)throw new Error("Argument Null Exception : newLocaTableOut");if(null===r)throw new Error("Argument Null Exception : newGlyphTable");for(var s=this.tableNames,a=16*e+12,h=0,u=0;u<s.length;u++){var l=s[u],c=this.getTable(l);if(!c.empty){if(t.writeString(l),"glyf"===l){var d=this.calculateCheckSum(r);t.writeInt(d),h=n}else if("loca"===l){var d=this.calculateCheckSum(i);t.writeInt(d),h=o}else t.writeInt(c.checksum),h=c.length;t.writeUInt(a),t.writeUInt(h),a+=this.align(h)}}},t.prototype.calculateCheckSum=function(t){if(null===t)throw new Error("Argument Null Exception : bytes");for(var e=0,i=0,r=0,n=0,o=0,s=0;s<(t.length+1)/4;s++)o+=255&t[e++],n+=255&t[e++],r+=255&t[e++],i+=255&t[e++];var a=i;return a+=r<<8,a+=n<<16,a+=o<<24},t.prototype.writeGlyphs=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : writer");if(null===e)throw new Error("Argument Null Exception : newLocaTableOut");if(null===i)throw new Error("Argument Null Exception : newGlyphTable");for(var r=this.tableNames,n=0;n<r.length;n++){var o=r[n],s=this.getTable(o);if(!s.empty)if("glyf"===o)t.writeBytes(i);else if("loca"===o)t.writeBytes(e);else{for(var a=this.align(s.length),h=[],u=0;u<a;u++)h.push(0);this.offset=s.offset;var l=this.read(h,0,s.length);t.writeBytes(l.buffer)}}},t.prototype.setOffset=function(t){this.offset=t},t.prototype.createInternals=function(){this.metrics=new h.a;var t=this.readNameTable(),e=this.readHeadTable();this.bIsLocaShort=0===e.indexToLocalFormat;var i=this.readHorizontalHeaderTable(),r=this.readOS2Table(),n=this.readPostTable();this.width=this.readWidthTable(i.numberOfHMetrics,e.unitsPerEm);var o=this.readCmapTable();this.initializeMetrics(t,e,i,r,n,o)},t.prototype.getGlyph=function(t){if("number"==typeof t){var e=null;this.metrics.isSymbol||null==this.microsoftGlyphs?this.metrics.isSymbol&&null!=this.macintoshGlyphs&&this.macintoshGlyphs.containsKey(t)&&(e=this.macintoshGlyphs.getValue(t)):this.microsoftGlyphs.containsKey(t)&&(e=this.microsoftGlyphs.getValue(t));var i=null!=e?e:this.getDefaultGlyph();return i}var r=null,n=t.charCodeAt(0);this.metrics.isSymbol||null===this.microsoft?(this.metrics.isSymbol&&null!==this.macintosh||this.isMacTTF)&&(0!==this.maxMacIndex?n%=this.maxMacIndex+1:n=61440==(65280&n)?255&n:n,this.macintosh.containsKey(n)&&(r=this.macintosh.getValue(n),this.isFontPresent=!0)):this.microsoft.containsKey(n)?(r=this.microsoft.getValue(n),n!==P.a.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!0)):n!==P.a.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!1),t===P.a.whiteSpace&&null===r&&(r=new g.a);var i=null!==r?r:this.getDefaultGlyph();return i},t.prototype.getGlyphChars=function(t){if(null===t||void 0===t)throw new Error("Argument Null Exception : chars");for(var e=new n.a,i=t.keys(),r=0;r<i.length;r++){var o=i[r],s=this.getGlyph(o);s.empty||e.setValue(s.index,o.charCodeAt(0))}return e},t.prototype.getAllGlyphs=function(){for(var t=[],e=new g.a,i=0,r=0;r<this.width.length;r++){var n=this.width[r];e.index=i,e.width=n,t.push(e),i++}return t},t.prototype.readFontProgram=function(t){var e=this.getGlyphChars(t),i=this.readLocaTable(this.bIsLocaShort);e.size()<t.size()&&(this.missedGlyphs=t.size()-e.size()),this.updateGlyphChars(e,i);var r=this.generateGlyphTable(e,i,null,null),n=r.glyphTableSize,o=r.newLocaTable,s=r.newGlyphTable,a=this.updateLocaTable(o,this.bIsLocaShort,null),h=a.newLocaSize,u=a.newLocaUpdated;return this.getFontProgram(u,s,n,h)},t.prototype.convertString=function(t){if(null===t)throw new Error("Argument Null Exception : text");for(var e="",i=0,r=0;r<t.length;r++){var n=t[r],o=this.getGlyph(n);o.empty||(e+=String.fromCharCode(o.index),i++)}return e},t.prototype.getCharWidth=function(t){var e=this.getGlyph(t);return e=e.empty?this.getDefaultGlyph():e,e.empty?0:e.width},t.prototype.readString=function(t,e){if(void 0===e)return this.readString(t,!1);var i="";if(e)for(var r=0;r<t;r++)r%2!=0&&(i+=String.fromCharCode(this.fontData[this.offset])),this.offset+=1;else for(var r=0;r<t;r++)i+=String.fromCharCode(this.fontData[this.offset]),this.offset+=1;return i},t.prototype.readFixed=function(t){return this.readInt16(t)+this.readInt16(t+2)/16384},t.prototype.readInt32=function(t){var e=this.fontData[t+3],i=this.fontData[t+2],r=this.fontData[t+1],n=this.fontData[t];return this.offset+=4,e+(i<<8)+(r<<16)+(n<<24)},t.prototype.readUInt32=function(t){var e=this.fontData[t+3],i=this.fontData[t+2],r=this.fontData[t+1],n=this.fontData[t];return this.offset+=4,e|i<<8|r<<16|n<<24},t.prototype.readInt16=function(t){var e=(this.fontData[t]<<8)+this.fontData[t+1];return e=32768&e?e-65536:e,this.offset+=2,e},t.prototype.readInt64=function(t){var e=this.readInt32(t+4),i=4294967296*this.readInt32(t)+e;return e<0&&(i+=4294967296),i},t.prototype.readUInt16=function(t){var e=this.fontData[t]<<8|this.fontData[t+1];return this.offset+=2,e},t.prototype.readUshortArray=function(t){for(var e=[],i=0;i<t;i++)e[i]=this.readUInt16(this.offset);return e},t.prototype.readBytes=function(t){for(var e=[],i=0;i<t;i++)e.push(this.fontData[this.offset]),this.offset+=1;return e},t.prototype.readByte=function(t){var e=this.fontData[t];return this.offset+=1,e},t.prototype.read=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : buffer");var r=0,n=0;do{for(var o=0;o<i-r&&this.offset+o<this.fontData.length;o++)t[e+o]=this.fontData[this.offset+o];n=i-r,this.offset+=n,r+=n}while(r<i);return{buffer:t,written:r}},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return Object.defineProperty(t.prototype,"empty",{get:function(){return this.offset===this.length&&this.length===this.checksum&&0===this.checksum},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";var r=i(38);i.d(e,"a",function(){return r.a});i(48),i(39),i(29)},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.updateProportionsHelper(t)}return t.prototype.convertUnits=function(t,e,i){return this.convertFromPixels(this.convertToPixels(t,e),i)},t.prototype.convertToPixels=function(t,e){var i=e;return t*this.proportions[i]},t.prototype.convertFromPixels=function(t,e){var i=e;return t/this.proportions[i]},t.prototype.updateProportionsHelper=function(t){this.proportions=[t/2.54,t/6,1,t/72,t,t/300,t/25.4]},t.horizontalResolution=96,t.verticalResolution=96,t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.int32Size=4,this.int16Size=2,this.int64Size=8,this.bufferLength=t,this.buffer=[]}return Object.defineProperty(t.prototype,"data",{get:function(){if(this.buffer.length<this.bufferLength)for(var t=this.bufferLength-this.buffer.length,e=0;e<t;e++)this.buffer.push(0);return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return void 0!==this.internalPosition&&null!==this.internalPosition||(this.internalPosition=0),this.internalPosition},enumerable:!0,configurable:!0}),t.prototype.writeShort=function(t){var e=[(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeInt=function(t){var e=(4278190080&t)>>24;e=e<0?256+e:e;var i=(16711680&t)>>16;i=i<0?256+i:i;var r=(65280&t)>>8;r=r<0?256+r:r;var n=255&t;n=n<0?256+n:n;var o=[(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t];this.flush(o)},t.prototype.writeUInt=function(t){var e=[(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeString=function(t){if(null==t)throw new Error("Argument Null Exception : value");for(var e=[],i=0;i<t.length;i++)e.push(t.charCodeAt(i));this.flush(e)},t.prototype.writeBytes=function(t){this.flush(t)},t.prototype.flush=function(t){if(null===t)throw new Error("Argument Null Exception : buff");for(var e=this.position,i=0;i<t.length;i++)this.buffer[e]=t[i],e++;this.internalPosition+=t.length},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(61);i.d(e,"PdfAction",function(){return r.a});var n=i(62);i.d(e,"PdfUriAction",function(){return n.a});var o=i(63);i.d(e,"PdfActionLinkAnnotation",function(){return o.a});var s=i(65);i.d(e,"PdfAnnotation",function(){return s.a});var a=i(64);i.d(e,"PdfAnnotationCollection",function(){return a.a});var h=i(103);i.d(e,"PdfDocumentLinkAnnotation",function(){return h.a});var u=i(42);i.d(e,"PdfLinkAnnotation",function(){return u.a});var l=i(43);i.d(e,"PdfTextWebLink",function(){return l.a});var c=i(66);i.d(e,"PdfUriAnnotation",function(){return c.a});var d=i(10);i.d(e,"Dictionary",function(){return d.a});var f=i(67);i.d(e,"defaultToString",function(){return f.a});var p=i(44);i.d(e,"PdfCatalog",function(){return p.a});var g=i(20);i.d(e,"PdfDocument",function(){return g.a});var m=i(68);i.d(e,"PdfDocumentBase",function(){return m.a});var y=i(45);i.d(e,"PdfDocumentTemplate",function(){return y.a});var b=i(69);i.d(e,"PdfViewerPreferences",function(){return b.a}),i.d(e,"PdfPageMode",function(){return b.b}),i.d(e,"PdfPageLayout",function(){return b.c}),i.d(e,"DuplexMode",function(){return b.d}),i.d(e,"PageScalingMode",function(){return b.e});var w=i(106);i.d(e,"PdfPageNumberField",function(){return w.a});var v=i(104);i.d(e,"PdfCompositeField",function(){return v.a});var S=i(105);i.d(e,"PdfPageCountField",function(){return S.a});var P=i(0);i.d(e,"PointF",function(){return P.a}),i.d(e,"SizeF",function(){return P.b}),i.d(e,"RectangleF",function(){return P.c}),i.d(e,"Rectangle",function(){return P.d});var C=i(73);i.d(e,"PdfCacheCollection",function(){return C.a});var B=i(74);i.d(e,"PdfCollection",function(){return B.a});var O=i(107);i.d(e,"PdfDestination",function(){return O.a});var x=i(71);i.d(e,"PdfFunction",function(){return x.a});var L=i(72);i.d(e,"PdfSampledFunction",function(){return L.a});var j=i(70);i.d(e,"PdfDestinationMode",function(){return j.a});var V=i(76);i.d(e,"ProcedureSets",function(){return V.a});var k=i(2);i.d(e,"PdfHorizontalAlignment",function(){return k.a}),i.d(e,"PdfVerticalAlignment",function(){return k.b}),i.d(e,"PdfTextAlignment",function(){return k.c}),i.d(e,"TextRenderingMode",function(){return k.d}),i.d(e,"PdfLineJoin",function(){return k.e}),i.d(e,"PdfLineCap",function(){return k.f}),i.d(e,"PdfDashStyle",function(){return k.g}),i.d(e,"PdfFillMode",function(){return k.h}),i.d(e,"PdfColorSpace",function(){return k.i}),i.d(e,"PdfBlendMode",function(){return k.j}),i.d(e,"PdfGraphicsUnit",function(){return k.k}),i.d(e,"PdfGridImagePosition",function(){return k.l}),i.d(e,"PdfTextDirection",function(){return k.m});var T=i(9);i.d(e,"PdfColor",function(){return T.a});var R=i(24);i.d(e,"PdfGraphics",function(){return R.a}),i.d(e,"GetResourceEventHandler",function(){return R.b}),i.d(e,"PdfGraphicsState",function(){return R.c});var M=i(82);i.d(e,"PdfMargins",function(){return M.a});var N=i(15);i.d(e,"PdfPen",function(){return N.a});var I=i(40);i.d(e,"PdfResources",function(){return I.a}),i.d(e,"Guid",function(){return I.b});var A=i(83);i.d(e,"PdfTransformationMatrix",function(){return A.a}),i.d(e,"Matrix",function(){return A.b});var D=i(11);i.d(e,"PdfBrush",function(){return D.a});var E=i(108);i.d(e,"PdfBrushes",function(){return E.a});var F=i(18);i.d(e,"PdfSolidBrush",function(){return F.a});var G=i(109);i.d(e,"PdfLinearGradientBrush",function(){return G.a});var _=i(110);i.d(e,"PdfRadialGradientBrush",function(){return _.a});var z=i(46);i.d(e,"PdfTilingBrush",function(){return z.a});var W=i(26);i.d(e,"PdfGradientBrush",function(){return W.a});var H=i(34);i.d(e,"PdfColorBlend",function(){return H.a});var U=i(75);i.d(e,"PdfBlend",function(){return U.a});var K=i(27);i.d(e,"PdfTemplate",function(){return K.a});var q=i(35);i.d(e,"PdfLayoutElement",function(){return q.a});var Y=i(112);i.d(e,"PdfPath",function(){return Y.a});var X=i(111);i.d(e,"PdfArc",function(){return X.a});var J=i(78);i.d(e,"PdfTextElement",function(){return J.a});var Z=i(12);i.d(e,"ElementLayouter",function(){return Z.a}),i.d(e,"PdfLayoutFormat",function(){return Z.b}),i.d(e,"PdfLayoutParams",function(){return Z.c}),i.d(e,"PdfLayoutResult",function(){return Z.d});var $=i(77);i.d(e,"TextLayouter",function(){return $.a}),i.d(e,"TextPageLayoutResult",function(){return $.b}),i.d(e,"PdfTextLayoutResult",function(){return $.c});var Q=i(21);i.d(e,"PdfLayoutType",function(){return Q.a}),i.d(e,"PdfLayoutBreakType",function(){return Q.b}),i.d(e,"PathPointType",function(){return Q.c});var tt=i(7);i.d(e,"PdfFontStyle",function(){return tt.a}),i.d(e,"PdfFontFamily",function(){return tt.b}),i.d(e,"PdfFontType",function(){return tt.c}),i.d(e,"PdfWordWrapType",function(){return tt.d}),i.d(e,"PdfSubSuperScript",function(){return tt.e}),i.d(e,"FontEncoding",function(){return tt.f}),i.d(e,"TtfCmapFormat",function(){return tt.g}),i.d(e,"TtfCmapEncoding",function(){return tt.h}),i.d(e,"TtfPlatformID",function(){return tt.i}),i.d(e,"TtfMicrosoftEncodingID",function(){return tt.j}),i.d(e,"TtfMacintoshEncodingID",function(){return tt.k}),i.d(e,"FontDescriptorFlags",function(){return tt.l}),i.d(e,"TtfCompositeGlyphFlags",function(){return tt.m});var et=i(22);i.d(e,"PdfFont",function(){return et.a});var it=i(36);i.d(e,"PdfFontMetrics",function(){return it.a}),i.d(e,"WidthTable",function(){return it.b}),i.d(e,"StandardWidthTable",function(){return it.c});var rt=i(37);i.d(e,"PdfStandardFont",function(){return rt.a});var nt=i(79);i.d(e,"PdfStandardFontMetricsFactory",function(){return nt.a});var ot=i(23);i.d(e,"PdfStringFormat",function(){return ot.a});var st=i(14);i.d(e,"PdfStringLayouter",function(){return st.a}),i.d(e,"PdfStringLayoutResult",function(){return st.b}),i.d(e,"LineInfo",function(){return st.c}),i.d(e,"LineType",function(){return st.d});var at=i(28);i.d(e,"StringTokenizer",function(){return at.a});var ht=i(113);i.d(e,"PdfTrueTypeFont",function(){return ht.a});var ut=i(47);i.d(e,"RtlRenderer",function(){return ut.a});var lt=i(81);i.d(e,"ArabicShapeRenderer",function(){return lt.a}),i.d(e,"ArabicShape",function(){return lt.b});var ct=i(80);i.d(e,"Bidi",function(){return ct.a}),i.d(e,"RtlCharacters",function(){return ct.b});var dt=i(38);i.d(e,"ByteArray",function(){return dt.a});var ft=i(48);i.d(e,"ImageFormat",function(){return ft.a}),i.d(e,"ImageDecoder",function(){return ft.b});var pt=i(39);i.d(e,"PdfBitmap",function(){return pt.a});var gt=i(29);i.d(e,"PdfImage",function(){return gt.a});var mt=i(49);i.d(e,"PdfTransparency",function(){return mt.a});var yt=i(50);i.d(e,"ObjectStatus",function(){return yt.a});var bt=i(84);i.d(e,"ObjectType",function(){return bt.a});var wt=i(51);i.d(e,"PdfCrossTable",function(){return wt.a}),i.d(e,"RegisteredObject",function(){return wt.b});var vt=i(1);i.d(e,"DictionaryProperties",function(){return vt.a});var St=i(85);i.d(e,"PdfMainObjectCollection",function(){return St.a}),i.d(e,"ObjectInfo",function(){return St.b});var Pt=i(16);i.d(e,"Operators",function(){return Pt.a});var Ct=i(86);i.d(e,"PdfStreamWriter",function(){return Ct.a});var Bt=i(87);i.d(e,"PdfWriter",function(){return Bt.a});var Ot=i(19);i.d(e,"PdfPageOrientation",function(){return Ot.a}),i.d(e,"PdfPageRotateAngle",function(){return Ot.b}),i.d(e,"PdfNumberStyle",function(){return Ot.c}),i.d(e,"PdfDockStyle",function(){return Ot.d}),i.d(e,"PdfAlignmentStyle",function(){return Ot.e}),i.d(e,"TemplateType",function(){return Ot.f});var xt=i(88);i.d(e,"PageAddedEventArgs",function(){return xt.a});var Lt=i(89);i.d(e,"PdfDocumentPageCollection",function(){return Lt.a});var jt=i(25);i.d(e,"PdfPage",function(){return jt.a});var Vt=i(52);i.d(e,"PdfPageBase",function(){return Vt.a});var kt=i(54);i.d(e,"PdfPageLayer",function(){return kt.a});var Tt=i(53);i.d(e,"PdfPageLayerCollection",function(){return Tt.a});var Rt=i(90);i.d(e,"PdfPageSettings",function(){return Rt.a});var Mt=i(91);i.d(e,"PdfPageSize",function(){return Mt.a});var Nt=i(114);i.d(e,"PdfPageTemplateElement",function(){return Nt.a});var It=i(94);i.d(e,"PdfSection",function(){return It.a}),i.d(e,"PageSettingsState",function(){return It.b});var At=i(55);i.d(e,"PdfSectionCollection",function(){return At.a});var Dt=i(92);i.d(e,"PdfSectionPageCollection",function(){return Dt.a});var Et=i(93);i.d(e,"PdfSectionTemplate",function(){return Et.a});var Ft=i(6);i.d(e,"PdfArray",function(){return Ft.a});var Gt=i(4);i.d(e,"PdfDictionary",function(){return Gt.a}),i.d(e,"SaveSectionCollectionEventHandler",function(){return Gt.b}),i.d(e,"SaveDescendantFontEventHandler",function(){return Gt.c}),i.d(e,"SaveFontDictionaryEventHandler",function(){return Gt.d}),i.d(e,"SaveAnnotationEventHandler",function(){return Gt.e}),i.d(e,"SaveSectionEventHandler",function(){return Gt.f}),i.d(e,"SaveTemplateEventHandler",function(){return Gt.g});var _t=i(3);i.d(e,"PdfName",function(){return _t.a});var zt=i(5);i.d(e,"PdfNumber",function(){return zt.a});var Wt=i(8);i.d(e,"PdfReference",function(){return Wt.a}),i.d(e,"PdfReferenceHolder",function(){return Wt.b});var Ht=i(13);i.d(e,"PdfStream",function(){return Ht.a}),i.d(e,"SaveCmapEventHandler",function(){return Ht.b}),i.d(e,"SaveFontProgramEventHandler",function(){return Ht.c});var Ut=i(17);i.d(e,"InternalEnum",function(){return Ut.a}),i.d(e,"PdfString",function(){return Ut.b});var Kt=i(31);i.d(e,"PdfGridStyleBase",function(){return Kt.a}),i.d(e,"PdfGridStyle",function(){return Kt.b}),i.d(e,"PdfGridCellStyle",function(){return Kt.c}),i.d(e,"PdfGridRowStyle",function(){return Kt.d}),i.d(e,"PdfHorizontalOverflowType",function(){return Kt.e});var qt=i(30);i.d(e,"PdfBorders",function(){return qt.a}),i.d(e,"PdfPaddings",function(){return qt.b});var Yt=i(58);i.d(e,"PdfBorderOverlapStyle",function(){return Yt.a});var Xt=i(41);i.d(e,"PdfGridLayouter",function(){return Xt.a}),i.d(e,"PdfGridLayoutResult",function(){return Xt.b}),i.d(e,"PdfGridLayoutFormat",function(){return Xt.c}),i.d(e,"GridCellEventArgs",function(){return Xt.d}),i.d(e,"PdfGridBeginCellDrawEventArgs",function(){return Xt.e}),i.d(e,"PdfGridEndCellDrawEventArgs",function(){return Xt.f}),i.d(e,"PdfCancelEventArgs",function(){return Xt.g}),i.d(e,"BeginPageLayoutEventArgs",function(){return Xt.h}),i.d(e,"EndPageLayoutEventArgs",function(){return Xt.i}),i.d(e,"PdfGridBeginPageLayoutEventArgs",function(){return Xt.j}),i.d(e,"PdfGridEndPageLayoutEventArgs",function(){return Xt.k}),i.d(e,"RowLayoutResult",function(){return Xt.l});var Jt=i(57);i.d(e,"PdfGrid",function(){return Jt.a});var Zt=i(95);i.d(e,"PdfGridColumn",function(){return Zt.a}),i.d(e,"PdfGridColumnCollection",function(){return Zt.b});var $t=i(96);i.d(e,"PdfGridRow",function(){return $t.a}),i.d(e,"PdfGridRowCollection",function(){return $t.b}),i.d(e,"PdfGridHeaderCollection",function(){return $t.c});var Qt=i(56);i.d(e,"PdfGridCell",function(){return Qt.a}),i.d(e,"PdfGridCellCollection",function(){return Qt.b})},function(e,i){e.exports=t},function(t,i){t.exports=e}])});
|
|
10
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionCompression"),require("SyncfusionFileUtils")):"function"==typeof define&&define.amd?define(["SyncfusionCompression","SyncfusionFileUtils"],e):"object"==typeof exports?exports.SyncfusionPdfExport=e(require("SyncfusionCompression"),require("SyncfusionFileUtils")):t.SyncfusionPdfExport=e(t.SyncfusionCompression,t.SyncfusionFileUtils)}(this,function(t,e){return function(t){function e(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,r){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=144)}([function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"d",function(){return s});var r=function(){function t(t,e){void 0===t?(this.x=0,this.y=0):(this.x=null!==t?t:0,this.y=null!==e?e:0)}return t}(),n=function(){function t(t,e){void 0===e?(this.height=0,this.width=0):(this.height=null!==e?e:0,this.width=null!==t?t:0)}return t}(),o=function(){function t(t,e,i,o){if(typeof t==typeof t&&void 0===t)this.x=0,this.y=0,this.height=0,this.width=0;else if(t instanceof r&&e instanceof n&&void 0===i){var s=t;this.x=s.x,this.y=s.y;var a=e;this.height=a.height,this.width=a.width}else{var h=t,u=e,l=i,c=o;this.x=h,this.y=u,this.height=c,this.width=l}}return t}(),s=function(){function t(t,e,i,r){this.left=t,this.top=e,this.right=i,this.bottom=r}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topLeft",{get:function(){return new r(this.left,this.top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return new n(this.width,this.height)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.topLeft+"x"+this.size},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){this.pages="Pages",this.kids="Kids",this.count="Count",this.resources="Resources",this.type="Type",this.size="Size",this.mediaBox="MediaBox",this.parent="Parent",this.root="Root",this.decodeParms="DecodeParms",this.filter="Filter",this.font="Font",this.type1="Type1",this.baseFont="BaseFont",this.encoding="Encoding",this.subtype="Subtype",this.contents="Contents",this.procset="ProcSet",this.colorSpace="ColorSpace",this.extGState="ExtGState",this.pattern="Pattern",this.xObject="XObject",this.length="Length",this.width="Width",this.height="Height",this.bitsPerComponent="BitsPerComponent",this.image="Image",this.dctdecode="DCTDecode",this.columns="Columns",this.blackIs1="BlackIs1",this.k="K",this.s="S",this.predictor="Predictor",this.deviceRgb="DeviceRGB",this.next="Next",this.action="Action",this.link="Link",this.a="A",this.annot="Annot",this.p="P",this.c="C",this.rect="Rect",this.uri="URI",this.annots="Annots",this.ca="ca",this.CA="CA",this.xyz="XYZ",this.fit="Fit",this.dest="Dest",this.BM="BM",this.flatedecode="FlateDecode",this.rotate="Rotate",this.bBox="BBox",this.form="Form",this.w="W",this.cIDFontType2="CIDFontType2",this.cIDToGIDMap="CIDToGIDMap",this.identity="Identity",this.dw="DW",this.fontDescriptor="FontDescriptor",this.cIDSystemInfo="CIDSystemInfo",this.fontName="FontName",this.flags="Flags",this.fontBBox="FontBBox",this.missingWidth="MissingWidth",this.stemV="StemV",this.italicAngle="ItalicAngle",this.capHeight="CapHeight",this.ascent="Ascent",this.descent="Descent",this.leading="Leading",this.avgWidth="AvgWidth",this.fontFile2="FontFile2",this.maxWidth="MaxWidth",this.xHeight="XHeight",this.stemH="StemH",this.registry="Registry",this.ordering="Ordering",this.supplement="Supplement",this.type0="Type0",this.identityH="Identity-H",this.toUnicode="ToUnicode",this.descendantFonts="DescendantFonts",this.background="Background",this.shading="Shading",this.matrix="Matrix",this.antiAlias="AntiAlias",this.function="Function",this.extend="Extend",this.shadingType="ShadingType",this.coords="Coords",this.domain="Domain",this.range="Range",this.functionType="FunctionType",this.bitsPerSample="BitsPerSample",this.patternType="PatternType",this.paintType="PaintType",this.tilingType="TilingType",this.xStep="XStep",this.yStep="YStep",this.viewerPreferences="ViewerPreferences",this.centerWindow="CenterWindow",this.displayTitle="DisplayTitle",this.fitWindow="FitWindow",this.hideMenuBar="HideMenubar",this.hideToolBar="HideToolbar",this.hideWindowUI="HideWindowUI",this.pageMode="PageMode",this.pageLayout="PageLayout",this.duplex="Duplex",this.printScaling="PrintScaling"}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"d",function(){return s}),i.d(e,"e",function(){return a}),i.d(e,"f",function(){return h}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return l}),i.d(e,"i",function(){return c}),i.d(e,"j",function(){return d}),i.d(e,"k",function(){return f}),i.d(e,"l",function(){return p}),i.d(e,"m",function(){return g});var r;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(r||(r={}));var n;!function(t){t[t.Top=0]="Top",t[t.Middle=1]="Middle",t[t.Bottom=2]="Bottom"}(n||(n={}));var o;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Justify=3]="Justify"}(o||(o={}));var s;!function(t){t[t.Fill=0]="Fill",t[t.Stroke=1]="Stroke",t[t.FillStroke=2]="FillStroke",t[t.None=3]="None",t[t.ClipFlag=4]="ClipFlag",t[t.ClipFill=4]="ClipFill",t[t.ClipStroke=5]="ClipStroke",t[t.ClipFillStroke=6]="ClipFillStroke",t[t.Clip=7]="Clip"}(s||(s={}));var a;!function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(a||(a={}));var h;!function(t){t[t.Flat=0]="Flat",t[t.Round=1]="Round",t[t.Square=2]="Square"}(h||(h={}));var u;!function(t){t[t.Solid=0]="Solid",t[t.Dash=1]="Dash",t[t.Dot=2]="Dot",t[t.DashDot=3]="DashDot",t[t.DashDotDot=4]="DashDotDot",t[t.Custom=5]="Custom"}(u||(u={}));var l;!function(t){t[t.Winding=0]="Winding",t[t.Alternate=1]="Alternate"}(l||(l={}));var c;!function(t){t[t.Rgb=0]="Rgb",t[t.Cmyk=1]="Cmyk",t[t.GrayScale=2]="GrayScale",t[t.Indexed=3]="Indexed"}(c||(c={}));var d;!function(t){t[t.Normal=0]="Normal",t[t.Multiply=1]="Multiply",t[t.Screen=2]="Screen",t[t.Overlay=3]="Overlay",t[t.Darken=4]="Darken",t[t.Lighten=5]="Lighten",t[t.ColorDodge=6]="ColorDodge",t[t.ColorBurn=7]="ColorBurn",t[t.HardLight=8]="HardLight",t[t.SoftLight=9]="SoftLight",t[t.Difference=10]="Difference",t[t.Exclusion=11]="Exclusion",t[t.Hue=12]="Hue",t[t.Saturation=13]="Saturation",t[t.Color=14]="Color",t[t.Luminosity=15]="Luminosity"}(d||(d={}));var f;!function(t){t[t.Centimeter=0]="Centimeter",t[t.Pica=1]="Pica",t[t.Pixel=2]="Pixel",t[t.Point=3]="Point",t[t.Inch=4]="Inch",t[t.Document=5]="Document",t[t.Millimeter=6]="Millimeter"}(f||(f={}));var p;!function(t){t[t.Fit=0]="Fit",t[t.Center=1]="Center",t[t.Stretch=2]="Stretch",t[t.Tile=3]="Tile"}(p||(p={}));var g;!function(t){t[t.None=0]="None",t[t.LeftToRight=1]="LeftToRight",t[t.RightToLeft=2]="RightToLeft"}(g||(g={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.stringStartMark="/",this.internalValue="",this.isSaving6=!1,this.position6=-1,this.internalValue=this.normalizeValue(t)}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status6},set:function(t){this.status6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving6},set:function(t){this.isSaving6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index6},set:function(t){this.index6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position6},set:function(t){this.position6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.internalValue},set:function(t){var e=t;null!==t&&t.length>0?(e=t,this.internalValue=this.normalizeValue(e)):this.internalValue=e},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.toString())},t.prototype.toString=function(){return this.stringStartMark+this.escapeString(this.value)},t.prototype.clone=function(e){var i=new t;return i.value=this.internalValue,i},t.prototype.escapeString=function(e){for(var i="",r=0,n=e.length;r<n;r++){var o=e[r];t.delimiters.indexOf(o);i+=o}return i},t.prototype.normalizeValue=function(t,e){return t},t.delimiters="()<>[]{}/%}",t.replacements=[" ","\t","\n","\r"],t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return h}),i.d(e,"c",function(){return u}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return c}),i.d(e,"f",function(){return d}),i.d(e,"g",function(){return f});var r=i(10),n=i(3),o=i(16),s=i(1),a=function(){function t(t){if(this.position7=-1,this.primitiveItems=new r.a,this.prefix="<<",this.suffix=">>",this.resources=[],this.object=null,this.archive=!0,this.isResource=!1,void 0===t)this.primitiveItems=new r.a,this.encrypt=!0,this.dictionaryProperties=new s.a;else{this.primitiveItems=new r.a;for(var e=t.items.keys(),i=t.items.values(),n=0;n<t.items.size();n++)this.primitiveItems.setValue(e[n],i[n]);this.status=t.status,this.freezeChanges(this),this.encrypt=!0,this.dictionaryProperties=new s.a}}return Object.defineProperty(t.prototype,"items",{get:function(){return this.primitiveItems},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status7},set:function(t){this.status7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving7},set:function(t){this.isSaving7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index7},set:function(t){this.index7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position7},set:function(t){this.position7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Count",{get:function(){return this.primitiveItems.size()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Dictionary",{get:function(){return this},enumerable:!0,configurable:!0}),t.prototype.getArchive=function(){return this.archive},t.prototype.setArchive=function(t){this.archive=t},t.prototype.setEncrypt=function(t){this.encrypt=t,this.modify()},t.prototype.getEncrypt=function(){return this.encrypt},t.prototype.freezeChanges=function(t){this.bChanged=!1},t.prototype.clone=function(e){return new t},t.prototype.modify=function(){this.bChanged=!0},t.prototype.remove=function(t){"string"!=typeof t?(this.primitiveItems.remove(t.value),this.modify()):this.remove(new n.a(t))},t.prototype.containsKey=function(t){return this.primitiveItems.containsKey(t.toString())},t.prototype.onBeginSave=function(){this.beginSave.sender.beginSave()},t.prototype.onFontDictionaryBeginSave=function(){this.fontDictionaryBeginSave.sender.fontDictionaryBeginSave()},t.prototype.onDescendantFontBeginSave=function(){this.descendantFontBeginSave.sender.descendantFontBeginSave()},t.prototype.onTemplateBeginSave=function(){this.pageBeginDrawTemplate.sender.pageBeginSave()},t.prototype.onBeginAnnotationSave=function(){this.annotationBeginSave.sender.beginSave()},t.prototype.onSectionBeginSave=function(t){var e=this.sectionBeginSave;e.sender.beginSave(e.state,t)},t.prototype.save=function(t,e){void 0===e?this.save(t,!0):(t.write(this.prefix),void 0!==this.beginSave&&this.onBeginSave(),void 0!==this.descendantFontBeginSave&&this.onDescendantFontBeginSave(),void 0!==this.fontDictionaryBeginSave&&this.onFontDictionaryBeginSave(),void 0!==this.annotationBeginSave&&this.onBeginAnnotationSave(),void 0!==this.sectionBeginSave&&this.onSectionBeginSave(t),void 0!==this.pageBeginDrawTemplate&&this.onTemplateBeginSave(),this.Count>0&&this.saveItems(t),t.write(this.suffix),t.write(o.a.newLine))},t.prototype.saveItems=function(t){t.write(o.a.newLine);for(var e=this.primitiveItems.keys(),i=this.primitiveItems.values(),r=0;r<e.length;r++){var s=e[r];new n.a(s).save(t),t.write(o.a.whiteSpace);i[r].save(t),t.write(o.a.newLine)}},t}(),h=function(){function t(t){this.sender=t}return t}(),u=function(){function t(t){this.sender=t}return t}(),l=function(){function t(t){this.sender=t}return t}(),c=function(){function t(t){this.sender=t}return t}(),d=function(){function t(t,e){this.sender=t,this.state=e}return t}(),f=function(){function t(t){this.sender=t}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.position5=-1,this.value=t}return Object.defineProperty(t.prototype,"intValue",{get:function(){return this.value},set:function(t){this.value=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInteger",{get:function(){return this.integer},set:function(t){this.integer=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status5},set:function(t){this.status5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving5},set:function(t){this.isSaving5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index5},set:function(t){this.index5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position5},set:function(t){this.position5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.intValue.toString())},t.prototype.clone=function(e){return new t(this.value)},t.floatToString=function(t){var e=t.toFixed(2);return"0.00"===e&&(e=".00"),e},t.min=function(t,e,i){var r=Math.min(t,e);return Math.min(i,r)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(5),n=i(16),o=function(){function t(e){if(this.startMark="[",this.endMark="]",this.position9=-1,this.clonedObject9=null,this.isFont=!1,void 0===e)this.internalElements=[];else if(void 0===e||e instanceof t){var i=e;this.internalElements=[];for(var n=0;n<i.elements.length;n++)this.internalElements.push(i.elements[n])}else for(var o=e,n=0;n<o.length;n++){var s=new r.a(o[n]);this.add(s)}}return t.prototype.items=function(t){return this.internalElements[t]},Object.defineProperty(t.prototype,"count",{get:function(){return this.internalElements.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status9},set:function(t){this.status9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving9},set:function(t){this.isSaving9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.clonedObject9},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position9},set:function(t){this.position9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index9},set:function(t){this.index9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CrossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.internalElements},enumerable:!0,configurable:!0}),t.prototype.add=function(t){void 0===this.internalElements&&(this.internalElements=[]),this.internalElements.push(t),this.markedChange()},t.prototype.markedChange=function(){this.bChanged=!0},t.prototype.contains=function(t){for(var e=0;e<this.internalElements.length;e++){var i=this.internalElements[e],r=t;if(null!=i&&void 0!==i&&null!=r&&void 0!==r&&i.value===r.value)return!0}return!1},t.prototype.getItems=function(t){return this.internalElements[t]},t.prototype.save=function(t){t.write(this.startMark);for(var e=0,i=this.count;e<i;e++)this.getItems(e).save(t),e+1!==i&&t.write(n.a.whiteSpace);t.write(this.endMark)},t.prototype.clone=function(e){this.clonedObject9=null;for(var i=new t,r=0;r<this.internalElements.length;r++){var n=this.internalElements[r];i.add(n.clone(e))}return i.pdfCrossTable=e,this.clonedObject9=i,i},t.fromRectangle=function(e){return new t([e.x,e.y,e.width,e.height])},t.prototype.insert=function(t,e){if(t<this.internalElements.length&&t>0){for(var i=[],r=0;r<t;r++)i.push(this.internalElements[r]);i.push(e);for(var r=t;r<this.internalElements.length;r++)i.push(this.internalElements[r]);this.internalElements=i}else this.internalElements.push(e);this.markChanged()},t.prototype.indexOf=function(t){return this.internalElements.indexOf(t)},t.prototype.remove=function(t){var e=this.internalElements.indexOf(t);this.internalElements[e]=null,this.markChanged()},t.prototype.removeAt=function(t){if(this.internalElements.length>t){for(var e=[],i=0;i<t;i++)e.push(this.internalElements[i]);for(var i=t+1;i<this.internalElements.length;i++)e.push(this.internalElements[i]);this.internalElements=e}this.markChanged()},t.prototype.clear=function(){this.internalElements=[],this.markChanged()},t.prototype.markChanged=function(){this.bChanged=!0},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"d",function(){return s}),i.d(e,"e",function(){return a}),i.d(e,"f",function(){return h}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return l}),i.d(e,"i",function(){return c}),i.d(e,"j",function(){return d}),i.d(e,"k",function(){return f}),i.d(e,"l",function(){return p}),i.d(e,"m",function(){return g});var r;!function(t){t[t.Regular=0]="Regular",t[t.Bold=1]="Bold",t[t.Italic=2]="Italic",t[t.Underline=4]="Underline",t[t.Strikeout=8]="Strikeout"}(r||(r={}));var n;!function(t){t[t.Helvetica=0]="Helvetica",t[t.Courier=1]="Courier",t[t.TimesRoman=2]="TimesRoman",t[t.Symbol=3]="Symbol",t[t.ZapfDingbats=4]="ZapfDingbats"}(n||(n={}));var o;!function(t){t[t.Standard=0]="Standard",t[t.TrueType=1]="TrueType",t[t.TrueTypeEmbedded=2]="TrueTypeEmbedded"}(o||(o={}));var s;!function(t){t[t.None=0]="None",t[t.Word=1]="Word",t[t.WordOnly=2]="WordOnly",t[t.Character=3]="Character"}(s||(s={}));var a;!function(t){t[t.None=0]="None",t[t.SuperScript=1]="SuperScript",t[t.SubScript=2]="SubScript"}(a||(a={}));var h;!function(t){t[t.Unknown=0]="Unknown",t[t.StandardEncoding=1]="StandardEncoding",t[t.MacRomanEncoding=2]="MacRomanEncoding",t[t.MacExpertEncoding=3]="MacExpertEncoding",t[t.WinAnsiEncoding=4]="WinAnsiEncoding",t[t.PdfDocEncoding=5]="PdfDocEncoding",t[t.IdentityH=6]="IdentityH"}(h||(h={}));var u;!function(t){t[t.Apple=0]="Apple",t[t.Microsoft=4]="Microsoft",t[t.Trimmed=6]="Trimmed"}(u||(u={}));var l;!function(t){t[t.Unknown=0]="Unknown",t[t.Symbol=1]="Symbol",t[t.Unicode=2]="Unicode",t[t.Macintosh=3]="Macintosh"}(l||(l={}));var c;!function(t){t[t.AppleUnicode=0]="AppleUnicode",t[t.Macintosh=1]="Macintosh",t[t.Iso=2]="Iso",t[t.Microsoft=3]="Microsoft"}(c||(c={}));var d;!function(t){t[t.Undefined=0]="Undefined",t[t.Unicode=1]="Unicode"}(d||(d={}));var f;!function(t){t[t.Roman=0]="Roman",t[t.Japanese=1]="Japanese",t[t.Chinese=2]="Chinese"}(f||(f={}));var p;!function(t){t[t.FixedPitch=1]="FixedPitch",t[t.Serif=2]="Serif",t[t.Symbolic=4]="Symbolic",t[t.Script=8]="Script",t[t.Nonsymbolic=32]="Nonsymbolic",t[t.Italic=64]="Italic",t[t.ForceBold=262144]="ForceBold"}(p||(p={}));var g;!function(t){t[t.Arg1And2AreWords=1]="Arg1And2AreWords",t[t.ArgsAreXyValues=2]="ArgsAreXyValues",t[t.RoundXyToGrid=4]="RoundXyToGrid",t[t.WeHaveScale=8]="WeHaveScale",t[t.Reserved=16]="Reserved",t[t.MoreComponents=32]="MoreComponents",t[t.WeHaveAnXyScale=64]="WeHaveAnXyScale",t[t.WeHaveTwoByTwo=128]="WeHaveTwoByTwo",t[t.WeHaveInstructions=256]="WeHaveInstructions",t[t.UseMyMetrics=512]="UseMyMetrics"}(g||(g={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return l}),i.d(e,"b",function(){return c});var r=i(1),n=i(13),o=i(6),s=i(5),a=i(3),h=i(4),u=i(17),l=function(){function t(t,e){this.index3=-1,this.position3=-1,this.objNumber=0,this.genNumber=0,"number"==typeof t&&"number"==typeof e?(this.objNumber=t,this.genNumber=e):(this.objNumber=Number(t),this.genNumber=Number(e))}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status3},set:function(t){this.status3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving3},set:function(t){this.isSaving3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index3},set:function(t){this.index3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position3},set:function(t){this.position3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.toString())},t.prototype.toString=function(){return this.objNumber.toString()+" "+this.genNumber.toString()+" R"},t.prototype.clone=function(t){return null},t}(),c=function(){function t(t,e){this.index4=-1,this.position4=-1,this.objectIndex=-1,this.dictionaryProperties=new r.a,this.initialize(t)}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status4},set:function(t){this.status4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving4},set:function(t){this.isSaving4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index4},set:function(t){this.index4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position4},set:function(t){this.position4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"object",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.objectIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),t.prototype.initialize=function(t){if(t instanceof o.a||t instanceof h.a||t instanceof a.a||t instanceof s.a||t instanceof n.a||t instanceof l||t instanceof u.b)this.primitiveObject=t;else{var e=t;this.initialize(e.element)}},t.prototype.save=function(t){var e=(t.position,t.document.crossTable);this.object.isSaving=!0;var i=null;i=e.getReference(this.object),i.save(t)},t.prototype.clone=function(t){return null},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(2),n=i(16),o=i(10),s=i(5),a=i(6),h=function(){function t(e,i,r,n){void 0===e?void 0!==i&&void 0!==r&&void 0!==n?this.assignRGB(i,r,n):this.filled=!1:e instanceof t?(this.redColor=e.r,this.greenColor=e.g,this.blueColor=e.b,this.grayColor=e.gray,this.alpha=e.alpha,this.filled=0!==this.alpha):"number"==typeof e&&void 0===i&&void 0===r&&void 0===n?(e<0&&(e=0),e>1&&(e=1),this.redColor=e*t.maxColourChannelValue,this.greenColor=e*t.maxColourChannelValue,this.blueColor=e*t.maxColourChannelValue,this.cyanColor=e,this.magentaColor=e,this.yellowColor=e,this.blackColor=e,this.grayColor=e,this.alpha=t.maxColourChannelValue,this.filled=!0):void 0===n?this.assignRGB(e,i,r):this.assignRGB(i,r,n,e)}return t.prototype.assignRGB=function(e,i,r,n){void 0===e||void 0===i||void 0===r?this.filled=!1:(this.cyanColor=0,this.magentaColor=0,this.yellowColor=0,this.blackColor=0,this.grayColor=0,this.redColor=e,this.greenColor=i,this.blueColor=r,this.alpha=void 0===n?t.maxColourChannelValue:n,this.filled=!0,this.assignCMYK(e,i,r))},t.prototype.assignCMYK=function(e,i,r){var n=e/t.maxColourChannelValue,o=i/t.maxColourChannelValue,a=r/t.maxColourChannelValue,h=s.a.min(1-n,1-o,1-a),u=1===h?0:(1-n-h)/(1-h),l=1===h?0:(1-o-h)/(1-h),c=1===h?0:(1-a-h)/(1-h);this.blackColor=h,this.cyanColor=u,this.magentaColor=l,this.yellowColor=c},Object.defineProperty(t.prototype,"r",{get:function(){return this.redColor},set:function(t){this.redColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"red",{get:function(){return this.r/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this.blueColor},set:function(t){this.blueColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"blue",{get:function(){return this.b/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"c",{get:function(){return this.cyanColor},set:function(t){this.cyanColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"k",{get:function(){return this.blackColor},set:function(t){this.blackColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"m",{get:function(){return this.magentaColor},set:function(t){this.magentaColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.yellowColor},set:function(t){this.yellowColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return this.greenColor},set:function(t){this.greenColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"green",{get:function(){return this.g/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gray",{get:function(){return(this.redColor+this.greenColor+this.blueColor)/(3*t.maxColourChannelValue)},set:function(e){this.grayColor=e<0?0:e>1?1:e,this.r=this.grayColor*t.maxColourChannelValue,this.g=this.grayColor*t.maxColourChannelValue,this.b=this.grayColor*t.maxColourChannelValue,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.filled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a",{get:function(){return this.alpha},set:function(t){this.alpha=t<0?0:t,this.filled=!0},enumerable:!0,configurable:!0}),t.prototype.toString=function(t,e){if(this.isEmpty)return"";var i="";switch(t){case r.i.Rgb:i=this.rgbToString(e);break;case r.i.GrayScale:i=this.grayScaleToString(e);break;case r.i.Cmyk:i=this.cmykToString(e)}return i},t.prototype.grayScaleToString=function(e){var i=this.gray,r="",o=null;return o=e?t.grayStringsSroke.containsKey(i)?t.grayStringsSroke.getValue(i):null:t.grayStringsFill.containsKey(i)?t.grayStringsFill.getValue(i):null,null==o?e&&(r=i.toString()+" G",t.grayStringsSroke.setValue(i,r)):r=o.toString(),r+n.a.newLine},t.prototype.rgbToString=function(e){var i=this.r,r=this.g,o=this.b,s=(i<<16)+(r<<8)+o;e&&(s+=1<<24);var a="",h=null;if(t.rgbStrings.containsKey(s)&&(h=t.rgbStrings.getValue(s)),null==h){var u=i/t.maxColourChannelValue,l=r/t.maxColourChannelValue,c=o/t.maxColourChannelValue;a=e?u.toString()+" "+l.toString()+" "+c.toString()+" RG":u.toString()+" "+l.toString()+" "+c.toString()+" rg",t.rgbStrings.setValue(s,a)}else a=h.toString();return a+n.a.newLine},t.prototype.cmykToString=function(t){var e=this.c,i=this.m,r=this.y,o=this.b;return e.toString()+" "+i.toString()+" "+r.toString()+" "+o.toString()+" K"+n.a.newLine},t.prototype.toArray=function(t){var e=new a.a;switch(t){case r.i.Rgb:e.add(new s.a(this.red)),e.add(new s.a(this.green)),e.add(new s.a(this.blue))}return e},t.rgbStrings=new o.a,t.grayStringsSroke=new o.a,t.grayStringsFill=new o.a,t.maxColourChannelValue=255,t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(67),n=function(){function t(t){this.table={},this.nElements=0,this.toStr=t||r.a}return t.prototype.getValue=function(t){var e=this.table["$"+this.toStr(t)];if(void 0!==e)return e.value},t.prototype.setValue=function(t,e){var i,r="$"+this.toStr(t);this.table[r];return this.nElements++,i=void 0,this.table[r]={key:t,value:e},i},t.prototype.remove=function(t){var e="$"+this.toStr(t),i=this.table[e];return delete this.table[e],this.nElements--,i.value},t.prototype.keys=function(){for(var t=[],e=Object.keys(this.table),i=0;i<e.length;i++){var r=this.table[e[i]];t.push(r.key)}return t},t.prototype.values=function(){for(var t=[],e=Object.keys(this.table),i=0;i<e.length;i++){var r=this.table[e[i]];t.push(r.value)}return t},t.prototype.containsKey=function(t){return!(void 0===this.getValue(t))},t.prototype.clear=function(){this.table={},this.nElements=0},t.prototype.size=function(){return this.nElements},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t.prototype.clone=function(){return this},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return a});var r=i(0),n=function(){function t(t){this.layoutElement=t}return Object.defineProperty(t.prototype,"elements",{get:function(){return this.layoutElement},enumerable:!0,configurable:!0}),t.prototype.getElement=function(){return this.layoutElement},t.prototype.layout=function(t){return this.layoutInternal(t)},t.prototype.Layouter=function(t){return this.layoutInternal(t)},t.prototype.getNextPage=function(t){return t.section.add()},t.prototype.getPaginateBounds=function(t){if(null==t)throw new Error("ArgumentNullException : param");return t.format.usePaginateBounds?t.format.paginateBounds:new r.c(t.bounds.x,0,t.bounds.width,t.bounds.height)},t}(),o=function(){function t(t){void 0===t||(this.break=t.break,this.layout=t.layout,this.paginateBounds=t.paginateBounds,this.boundsSet=t.usePaginateBounds)}return Object.defineProperty(t.prototype,"layout",{get:function(){return this.layoutType},set:function(t){this.layoutType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"break",{get:function(){return this.breakType},set:function(t){this.breakType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paginateBounds",{get:function(){return void 0===this.layoutPaginateBounds&&null==this.layoutPaginateBounds&&(this.layoutPaginateBounds=new r.c(0,0,0,0)),this.layoutPaginateBounds},set:function(t){this.layoutPaginateBounds=t,this.boundsSet=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"usePaginateBounds",{get:function(){return this.boundsSet},enumerable:!0,configurable:!0}),t}(),s=function(){function t(){}return Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},set:function(t){this.pdfPage=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return new r.c(this.layoutBounds.x,this.layoutBounds.y,this.layoutBounds.width,this.layoutBounds.height)},set:function(t){this.layoutBounds=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.layoutFormat},set:function(t){this.layoutFormat=t},enumerable:!0,configurable:!0}),t}(),a=function(){function t(t,e){this.pdfPage=t,this.layoutBounds=e}return Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.layoutBounds},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return c}),i.d(e,"b",function(){return d}),i.d(e,"c",function(){return f});var r=i(4),n=i(5),o=i(16),s=i(3),a=i(6),h=i(8),u=i(145),l=(i.n(u),this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}()),c=function(t){function e(e,i){var r=t.call(this,e)||this;return r.dicPrefix="stream",r.dicSuffix="endstream",r.clonedObject2=null,r.bCompress=!0,void 0!==e||void 0!==i?(r.dataStream2=[],r.dataStream2=i,r.bCompress2=!1):(r.dataStream2=[],r.bCompress2=!0),r}return l(e,t),Object.defineProperty(e.prototype,"internalStream",{get:function(){return this.dataStream2},set:function(t){this.dataStream2=[],this.dataStream2=t,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compress",{get:function(){return this.bCompress},set:function(t){this.bCompress=t,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.dataStream2},set:function(t){this.dataStream2=[],this.dataStream2=t,this.modify()},enumerable:!0,configurable:!0}),e.prototype.clearStream=function(){this.internalStream=[],this.items.containsKey(this.dictionaryProperties.filter)&&this.remove(this.dictionaryProperties.filter),this.bCompress=!0,this.modify()},e.prototype.write=function(t){if(null==t)throw new Error("ArgumentNullException:text");if(t.length<=0)throw new Error("ArgumentException: Can not write an empty string, text");this.dataStream2.push(t),this.modify()},e.prototype.writeBytes=function(t){if(null===t)throw new Error("ArgumentNullException:data");if(t.length<=0)throw new Error("ArgumentException: Can not write an empty bytes, data");for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);this.dataStream2.push(e),this.modify()},e.prototype.onCmapBeginSave=function(){this.cmapBeginSave.sender.cmapBeginSave()},e.prototype.onFontProgramBeginSave=function(){this.fontProgramBeginSave.sender.fontProgramBeginSave()},e.prototype.compressContent=function(t,e){if(this.bCompress){for(var i=[],r=0;r<t.length;r++)i.push(t.charCodeAt(r));var n=new Uint8Array(i),o=new u.CompressedStreamWriter;o.write(n,0,n.length),o.close(),t=o.getCompressedString,this.addFilter(this.dictionaryProperties.flatedecode)}return t},e.prototype.addFilter=function(t){var e=this.items.getValue(this.dictionaryProperties.filter);if(e instanceof h.b){e=e.object}var i=e,r=e;null!=r&&(i=new a.a,i.insert(0,r),this.items.setValue(this.dictionaryProperties.filter,i)),r=new s.a(t),null==i?this.items.setValue(this.dictionaryProperties.filter,r):i.insert(0,r)},e.prototype.save=function(e){void 0!==this.cmapBeginSave&&this.onCmapBeginSave(),void 0!==this.fontProgramBeginSave&&this.onFontProgramBeginSave();for(var i="",r=0;r<this.data.length;r++)i+=this.data[r];i.length>1&&!this.isResource&&(i="q\r\n"+i+"Q\r\n"),i=this.compressContent(i,e);var s=i.length;this.items.setValue(this.dictionaryProperties.length,new n.a(s)),t.prototype.save.call(this,e,!1),e.write(this.dicPrefix),e.write(o.a.newLine),i.length>0&&e.write(i),e.write(o.a.newLine),e.write(this.dicSuffix),e.write(o.a.newLine)},e.bytesToString=function(t){for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return e},e}(r.a),d=function(){function t(t){this.sender=t}return t}(),f=function(){function t(t){this.sender=t}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return h}),i.d(e,"c",function(){return u}),i.d(e,"d",function(){return r});var r,n=i(0),o=i(7),s=i(28),a=function(){function t(){this.isOverloadWithPosition=!1}return t.prototype.layout=function(t,e,i,r,o,s,a){if(r instanceof n.c){this.initialize(t,e,i,r,o),this.isOverloadWithPosition=s,this.clientSize=a;var h=this.doLayout();return this.clear(),h}this.initialize(t,e,i,r),this.isOverloadWithPosition=o,this.clientSize=s;var h=this.doLayout();return this.clear(),h},t.prototype.initialize=function(t,e,i,r,o){if("number"==typeof o){if(null==t)throw new Error("ArgumentNullException:text");if(null==e)throw new Error("ArgumentNullException:font");this.text=t,this.font=e,this.format=i,this.size=new n.b(r.width,r.height),this.rectangle=r,this.pageHeight=o,this.reader=new s.a(t)}else this.initialize(t,e,i,new n.c(new n.a(0,0),r),0)},t.prototype.clear=function(){this.font=null,this.format=null,this.reader.close(),this.reader=null,this.text=null},t.prototype.doLayout=function(){for(var t=new h,e=new h,i=[],r=this.reader.peekLine(),n=this.getLineIndent(!0);null!=r;){if(null!==(e=this.layoutLine(r,n))||void 0!==e){var o=0,s=this.copyToResult(t,e,i,o),a=s.success;if(o=s.numInserted,!a){this.reader.read(o);break}}this.reader.readLine(),r=this.reader.peekLine(),n=this.getLineIndent(!1)}return this.finalizeResult(t,i),t},t.prototype.getLineIndent=function(t){var e=0;return null!=this.format&&(e=t?this.format.firstLineIndent:this.format.paragraphIndent,e=this.size.width>0?Math.min(this.size.width,e):e),e},t.prototype.getLineHeight=function(){var t=this.font.height;return null!=this.format&&0!==this.format.lineSpacing&&(t=this.format.lineSpacing+this.font.height),t},t.prototype.getLineWidth=function(t){return this.font.getLineWidth(t,this.format)},t.prototype.layoutLine=function(t,e){var i=new h;i.layoutLineHeight=this.getLineHeight();var n=[],a=this.size.width,u=this.getLineWidth(t)+e,l=r.FirstParagraphLine,c=!0;if(a<=0||Math.round(u)<=Math.round(a))this.addToLineResult(i,n,t,u,r.NewLineBreak|l);else{var d="",f="";u=e;var p=e,g=new s.a(t),m=g.peekWord();for(m.length!==g.length&&" "===m&&(f+=m,d+=m,g.position+=1,m=g.peekWord());null!=m;){f+=m;var y=this.getLineWidth(f.toString())+p;if(" "===f.toString()&&(f="",y=0),y>a){if(this.getWrapType()===o.d.None)break;if(f.length===m.length){if(this.getWrapType()===o.d.WordOnly){i.textRemainder=t.substring(g.position);break}if(1===f.length){d+=m;break}c=!1,f="",m=g.peek().toString();continue}if(this.getLineWidth(m.toString())>a?this.format.wordWrap=o.d.Character:void 0!==this.format&&null!==this.format&&(this.format.wordWrap=o.d.Word),this.getWrapType()===o.d.Character&&c)c=!1,f="",f+=d.toString(),m=g.peek().toString();else{var b=d.toString();" "!==b&&this.addToLineResult(i,n,b,u,r.LayoutBreak|l),this.isOverloadWithPosition&&(a=this.clientSize.width),f="",d="",u=0,p=0,y=0,l=r.None,m=c?m:g.peekWord(),c=!0}}else d+=m,u=y,c?(g.readWord(),m=g.peekWord()):(g.read(),m=g.peek().toString())}if(d.length>0){var b=d.toString();this.addToLineResult(i,n,b,u,r.NewLineBreak|r.LastParagraphLine)}g.close()}i.layoutLines=[];for(var w=0;w<n.length;w++)i.layoutLines.push(n[w]);return n=[],i},t.prototype.addToLineResult=function(t,e,i,r,n){var o=new u;o.text=i,o.width=r,o.lineType=n,e.push(o);var s=t.actualSize;s.height+=this.getLineHeight(),s.width=Math.max(s.width,r),t.size=s},t.prototype.copyToResult=function(t,e,i,r){var n=!0,o=null!=this.format&&!this.format.lineLimit,s=t.actualSize.height,a=this.size.height;if(this.pageHeight>0&&a+this.rectangle.y>this.pageHeight&&(a=this.rectangle.y-this.pageHeight,a=Math.max(a,-a)),r=0,null!=e.lines)for(var h=0,u=e.lines.length;h<u;h++){var l=s+e.lineHeight;if(!(l<=a||a<=0||o)){n=!1;break}var c=e.lines[h];r+=c.text.length,c=this.trimLine(c,0===i.length),i.push(c);var d=t.actualSize;d.width=Math.max(d.width,c.width),t.size=d,s=l}if(s!=t.size.height){var f=t.actualSize;f.height=s,t.size=f}return{success:n,numInserted:r}},t.prototype.finalizeResult=function(t,e){t.layoutLines=[];for(var i=0;i<e.length;i++)t.layoutLines.push(e[i]);t.layoutLineHeight=this.getLineHeight(),this.reader.end||(t.textRemainder=this.reader.readToEnd()),e=[]},t.prototype.trimLine=function(t,e){var i=t.text,n=t.width;t.lineType,r.FirstParagraphLine,null==this.format||this.format.rightToLeft,s.a.spaces;return i=i.trim(),i.length!==t.text.length&&(n=this.getLineWidth(i),(t.lineType&r.FirstParagraphLine)>0&&(n+=this.getLineIndent(e))),t.text=i,t.width=n,t},t.prototype.getWrapType=function(){return null!=this.format?this.format.wordWrap:o.d.Word},t}(),h=function(){function t(){}return Object.defineProperty(t.prototype,"remainder",{get:function(){return this.textRemainder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualSize",{get:function(){return void 0===this.size&&(this.size=new n.b(0,0)),this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lines",{get:function(){return this.layoutLines},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this.layoutLineHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return null==this.layoutLines||0===this.layoutLines.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.empty?0:this.layoutLines.length},enumerable:!0,configurable:!0}),t}(),u=function(){function t(){}return Object.defineProperty(t.prototype,"lineType",{get:function(){return this.type},set:function(t){this.type=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.content},set:function(t){this.content=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.lineWidth},set:function(t){this.lineWidth=t},enumerable:!0,configurable:!0}),t}();!function(t){t[t.None=0]="None",t[t.NewLineBreak=1]="NewLineBreak",t[t.LayoutBreak=2]="LayoutBreak",t[t.FirstParagraphLine=4]="FirstParagraphLine",t[t.LastParagraphLine=8]="LastParagraphLine"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(9),n=i(18),o=i(2),s=i(11),a=function(){function t(t,e){this.pdfColor=new r.a(0,0,0),this.dashOffsetValue=0,this.penDashPattern=[0],this.pdfDashStyle=o.g.Solid,this.pdfLineCap=0,this.pdfLineJoin=0,this.penWidth=1,this.internalMiterLimit=0,this.colorSpace=o.i.Rgb,t instanceof s.a?this.setBrush(t):t instanceof r.a&&(this.color=t),"number"==typeof e&&(this.width=e)}return Object.defineProperty(t.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashOffset",{get:function(){return void 0===this.dashOffsetValue||null==this.dashOffsetValue?0:this.dashOffsetValue},set:function(t){this.dashOffsetValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashPattern",{get:function(){return this.penDashPattern},set:function(t){this.penDashPattern=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashStyle",{get:function(){return this.pdfDashStyle},set:function(t){if(this.pdfDashStyle!==t)switch(this.pdfDashStyle=t,this.pdfDashStyle){case o.g.Custom:break;case o.g.Dash:this.penDashPattern=[3,1];break;case o.g.Dot:this.penDashPattern=[1,1];break;case o.g.DashDot:this.penDashPattern=[3,1,1,1];break;case o.g.DashDotDot:this.penDashPattern=[3,1,1,1,1,1];break;case o.g.Solid:break;default:this.pdfDashStyle=o.g.Solid,this.penDashPattern=[0]}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCap",{get:function(){return this.pdfLineCap},set:function(t){this.pdfLineCap=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this.pdfLineJoin},set:function(t){this.pdfLineJoin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"miterLimit",{get:function(){return this.internalMiterLimit},set:function(t){this.internalMiterLimit=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.penWidth},set:function(t){this.penWidth=t},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this},t.prototype.setBrush=function(t){var e=t;null!=e&&e instanceof n.a&&(this.color=e.color,this.pdfBrush=e),this.color=e.color,this.pdfBrush=e},t.prototype.monitorChanges=function(t,e,i,r,n,o){r=!0,this.dashControl(t,r,e),e.setLineWidth(this.width),e.setLineJoin(this.lineJoin),e.setLineCap(this.lineCap);var s=this.miterLimit;s>0&&e.setMiterLimit(s);this.pdfBrush;return e.setColorAndSpace(this.color,n,!0),!0},t.prototype.dashControl=function(t,e,i){e=!0;var r=this.width,n=this.getPattern();return i.setLineDashPattern(n,this.dashOffset*r),e},t.prototype.getPattern=function(){for(var t=this.dashPattern,e=0;e<t.length;++e)t[e]*=this.width;return t},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){this.forTest="test",this.forTest=t.obj}return t.obj="obj",t.endObj="endobj",t.r="R",t.whiteSpace=" ",t.slash="/",t.newLine="\r\n",t.stream="stream",t.endStream="endstream",t.xref="xref",t.f="f",t.n="n",t.trailer="trailer",t.startxref="startxref",t.eof="%%EOF",t.header="%PDF-1.5",t.beginText="BT",t.endText="ET",t.beginPath="m",t.appendLineSegment="l",t.stroke="S",t.fill="f",t.fillEvenOdd="f*",t.fillStroke="B",t.fillStrokeEvenOdd="B*",t.appendbeziercurve="c",t.appendRectangle="re",t.saveState="q",t.restoreState="Q",t.paintXObject="Do",t.modifyCtm="cm",t.modifyTM="Tm",t.setLineWidth="w",t.setLineCapStyle="J",t.setLineJoinStyle="j",t.setDashPattern="d",t.setFlatnessTolerance="i",t.closePath="h",t.closeStrokePath="s",t.closeFillStrokePath="b",t.setCharacterSpace="Tc",t.setWordSpace="Tw",t.setHorizontalScaling="Tz",t.setTextLeading="TL",t.setFont="Tf",t.setRenderingMode="Tr",t.setTextRise="Ts",t.setTextScaling="Tz",t.setCoords="Td",t.goToNextLine="T*",t.setText="Tj",t.setTextWithFormatting="TJ",t.setTextOnNewLine="'",t.selectcolorspaceforstroking="CS",t.selectcolorspacefornonstroking="cs",t.setrbgcolorforstroking="RG",t.setrbgcolorfornonstroking="rg",t.setcmykcolorforstroking="K",t.setcmykcolorfornonstroking="k",t.setgraycolorforstroking="G",t.setgraycolorfornonstroking="g",t.clipPath="W",t.clipPathEvenOdd="W*",t.endPath="n",t.setGraphicsState="gs",t.comment="%",t.evenOdd="*",t.setMiterLimit="M",t.setColorAndPattern="scn",t.setColorAndPatternStroking="SCN",t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n});var r;!function(t){!function(t){t[t.None=0]="None",t[t.Ascii=1]="Ascii",t[t.Unicode=2]="Unicode"}(t.ForceEncoding||(t.ForceEncoding={}));var e;!function(t){t[t.StringValue=0]="StringValue",t[t.ByteBuffer=1]="ByteBuffer"}(e||(e={}))}(r||(r={}));var n=function(){function t(t){if(this.bHex=!1,this.position1=-1,this.clonedObject1=null,this.bDecrypted=!1,this.isParentDecrypted=!1,this.isPacked=!1,this.isFormField=!1,this.isColorSpace=!1,this.isHexString=!0,void 0===t)this.bHex=!1;else if(!(t.length>0&&"0xfeff"===t[0])){this.stringValue=t,this.data=[];for(var e=0;e<t.length;++e)this.data.push(t.charCodeAt(e))}}return Object.defineProperty(t.prototype,"hex",{get:function(){return this.bHex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.stringValue},set:function(t){this.stringValue=t,this.data=null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status1},set:function(t){this.status1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving1},set:function(t){this.isSaving1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index1},set:function(t){this.index1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.clonedObject1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position1},set:function(t){this.position1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CrossTable",{get:function(){return this.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"converted",{get:function(){return this.bConverted},set:function(t){this.bConverted=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"encode",{get:function(){return this.bForceEncoding},set:function(t){this.bForceEncoding=t},enumerable:!0,configurable:!0}),t.bytesToHex=function(t){if(null==t)return"";return""},t.prototype.save=function(e){if(null===e)throw new Error("ArgumentNullException : writer");void 0!==this.encode&&this.encode===r.ForceEncoding.Ascii?e.write(this.pdfEncode()):e.write(t.stringMark[0]+this.value+t.stringMark[1])},t.prototype.pdfEncode=function(){var e="";if(void 0!==this.encode&&this.encode===r.ForceEncoding.Ascii){for(var i=this.escapeSymbols(this.value),n=0;n<i.length;n++)e+=String.fromCharCode(i[n]);e=t.stringMark[0]+e+t.stringMark[1]}else e=this.value;return e},t.prototype.escapeSymbols=function(t){for(var e=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);switch(r){case 40:case 41:e.push(92),e.push(r);break;case 13:e.push(92),e.push(114);break;case 92:e.push(92),e.push(r);break;default:e.push(r)}}return e},t.prototype.clone=function(e){if(null!==this.clonedObject1&&this.clonedObject1.CrossTable===e)return this.clonedObject1;this.clonedObject1=null;var i=new t(this.stringValue);return i.bHex=this.bHex,i.crossTable=e,i.isColorSpace=this.isColorSpace,this.clonedObject1=i,i},t.toUnicodeArray=function(t,e){if(null==t)throw new Error("Argument Null Exception : value");for(var i=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);i.push(n/256>>>0),i.push(255&n)}return i},t.byteToString=function(t){if(null==t)throw new Error("Argument Null Exception : stream");for(var e="",i=0;i<t.length;++i)e+=String.fromCharCode(t[i]);return e},t.stringMark="()",t.hexStringMark="<>",t.hexFormatPattern="{0:X2}",t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(9),n=i(2),o=i(11),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e){var i=t.call(this)||this;return i.pdfColor=e,i}return s(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),e.prototype.monitorChanges=function(t,e,i,r,n){if(null==e)throw new Error("ArgumentNullException:streamWriter");var o=!1;if(null==t)return o=!0,e.setColorAndSpace(this.pdfColor,n,!1),o;return o=!0,e.setColorAndSpace(this.pdfColor,n,!1),o},e.prototype.resetChanges=function(t){t.setColorAndSpace(new r.a(0,0,0),n.i.Rgb,!1)},e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"d",function(){return s}),i.d(e,"e",function(){return a}),i.d(e,"f",function(){return h});var r;!function(t){t[t.Portrait=0]="Portrait",t[t.Landscape=1]="Landscape"}(r||(r={}));var n;!function(t){t[t.RotateAngle0=0]="RotateAngle0",t[t.RotateAngle90=1]="RotateAngle90",t[t.RotateAngle180=2]="RotateAngle180",t[t.RotateAngle270=3]="RotateAngle270"}(n||(n={}));var o;!function(t){t[t.None=0]="None",t[t.Numeric=1]="Numeric",t[t.LowerLatin=2]="LowerLatin",t[t.LowerRoman=3]="LowerRoman",t[t.UpperLatin=4]="UpperLatin",t[t.UpperRoman=5]="UpperRoman"}(o||(o={}));var s;!function(t){t[t.None=0]="None",t[t.Bottom=1]="Bottom",t[t.Top=2]="Top",t[t.Left=3]="Left",t[t.Right=4]="Right",t[t.Fill=5]="Fill"}(s||(s={}));var a;!function(t){t[t.None=0]="None",t[t.TopLeft=1]="TopLeft",t[t.TopCenter=2]="TopCenter",t[t.TopRight=3]="TopRight",t[t.MiddleLeft=4]="MiddleLeft",t[t.MiddleCenter=5]="MiddleCenter",t[t.MiddleRight=6]="MiddleRight",t[t.BottomLeft=7]="BottomLeft",t[t.BottomCenter=8]="BottomCenter",t[t.BottomRight=9]="BottomRight"}(a||(a={}));var h;!function(t){t[t.None=0]="None",t[t.Top=1]="Top",t[t.Bottom=2]="Bottom",t[t.Left=3]="Left",t[t.Right=4]="Right"}(h||(h={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return y});var r=i(87),n=i(85),o=i(68),s=i(51),a=i(44),h=i(90),u=i(55),l=i(89),c=i(73),d=i(2),f=i(45),p=i(7),g=i(37),m=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),y=function(t){function e(i){var r=t.call(this)||this;r.defaultMargin=40,r.streamWriter=null,r.document=r;var o=!1;void 0===i?(e.cacheCollection=new c.a,o=!1):o=i;var h=new n.a;r.setMainObjectCollection(h);var d=new s.a;d.isMerging=o,d.document=r,r.setCrossTable(d);var f=new a.a;return r.setCatalog(f),h.add(f),f.position=-1,r.sectionCollection=new u.a(r),r.documentPageCollection=new l.a(r),f.pages=r.sectionCollection,r}return m(e,t),Object.defineProperty(e,"defaultFont",{get:function(){return null==this.defaultStandardFont&&(this.defaultStandardFont=new g.a(p.b.Helvetica,8)),this.defaultStandardFont},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sections",{get:function(){return this.sectionCollection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSettings",{get:function(){return null==this.settings&&(this.settings=new h.a(this.defaultMargin)),this.settings},set:function(t){this.settings=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pages",{get:function(){return this.documentPageCollection},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cache",{get:function(){return void 0===e.cacheCollection||null==e.cacheCollection?new c.a:e.cacheCollection},set:function(t){this.cacheCollection=t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"enableCache",{get:function(){return this.isCacheEnabled},set:function(t){this.isCacheEnabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.pdfColorSpace===d.i.Rgb||this.pdfColorSpace===d.i.Cmyk||this.pdfColorSpace===d.i.GrayScale?this.pdfColorSpace:d.i.Rgb},set:function(t){t===d.i.Rgb||t===d.i.Cmyk||t===d.i.GrayScale?this.pdfColorSpace=t:this.pdfColorSpace=d.i.Rgb},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new f.a),this.pageTemplate},set:function(t){this.pageTemplate=t},enumerable:!0,configurable:!0}),e.prototype.docSave=function(t,e,i){if(this.checkPagesPresence(),null===t)throw new Error("ArgumentNullException : stream");this.streamWriter=t;var n=new r.a(t);if(n.document=this,"boolean"==typeof e&&void 0===i)return this.crossTable.save(n);this.crossTable.save(n,e)},e.prototype.checkPagesPresence=function(){0===this.pages.count&&this.pages.add()},e.prototype.destroy=function(){this.catalog=void 0,this.colorSpace=void 0,this.currentSavingObj=void 0,this.documentPageCollection=void 0,this.isStreamCopied=void 0,this.pageSettings=void 0,this.pageTemplate=void 0,this.pdfColorSpace=void 0,this.sectionCollection=void 0,e.cache.destroy(),this.crossTable.pdfObjects.destroy(),e.cache=void 0,this.streamWriter.destroy()},e.defaultStandardFont=null,e.isCacheEnabled=!0,e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return o});var r;!function(t){t[t.Paginate=0]="Paginate",t[t.OnePage=1]="OnePage"}(r||(r={}));var n;!function(t){t[t.FitPage=0]="FitPage",t[t.FitElement=1]="FitElement",t[t.FitColumnsToPage=2]="FitColumnsToPage"}(n||(n={}));var o;!function(t){t[t.Start=0]="Start",t[t.Line=1]="Line",t[t.Bezier3=3]="Bezier3",t[t.Bezier=3]="Bezier",t[t.PathTypeMask=7]="PathTypeMask",t[t.DashMode=16]="DashMode",t[t.PathMarker=32]="PathMarker",t[t.CloseSubpath=128]="CloseSubpath"}(o||(o={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(7),n=i(0),o=i(23),s=i(14),a=i(28),h=function(){function t(t,e){this.fontStyle=r.a.Regular,"number"==typeof t&&void 0===e?this.fontSize=t:(this.fontSize=t,this.setStyle(e))}return Object.defineProperty(t.prototype,"name",{get:function(){return this.metrics.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.fontSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.metrics.getHeight(null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.fontStyle},set:function(t){this.fontStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return(this.style&r.a.Bold)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return(this.style&r.a.Italic)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strikeout",{get:function(){return(this.style&r.a.Strikeout)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return(this.style&r.a.Underline)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"metrics",{get:function(){return this.fontMetrics},set:function(t){this.fontMetrics=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pdfFontInternals},enumerable:!0,configurable:!0}),t.prototype.measureString=function(t,e,i,r,a){if("string"==typeof t&&void 0===e)return this.measureString(t,null);if("string"==typeof t&&(e instanceof o.a||null==e)&&void 0===i&&void 0===r){var h=e;return this.measureString(t,h,0,0)}if("string"==typeof t&&(e instanceof o.a||null==e)&&"number"==typeof i&&"number"==typeof r){var h=e;return this.measureString(t,0,h,i,r)}if("string"==typeof t&&"number"==typeof e&&(i instanceof o.a||null==i)&&"number"==typeof r&&"number"==typeof a){var u=new n.b(e,0),l=i;return this.measureString(t,u,l,r,a)}if(null==t)throw Error('ArgumentNullException("text")');var h=e,l=i,c=new s.a,d=c.layout(t,this,l,h,!1,new n.b(0,0));return r=t.length,a=d.empty?0:d.lines.length,d.actualSize},t.prototype.equalsTo=function(t){return this.equalsToFont(t)},t.prototype.getInternals=function(){return this.pdfFontInternals},t.prototype.setInternals=function(t){if(null==t)throw new Error("ArgumentNullException:internals");this.pdfFontInternals=t},t.prototype.setStyle=function(t){this.fontStyle=t},t.prototype.applyFormatSettings=function(t,e,i){var r=i;if(null!=e&&i>0&&(0!==e.characterSpacing&&(r+=(t.length-1)*e.characterSpacing),0!==e.wordSpacing)){var n=a.a.spaces;r+=a.a.getCharsCount(t,n)*e.wordSpacing}return r},t.charSizeMultiplier=.001,t.syncObject=new Object,t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(2),n=i(7),o=function(){function t(t,e){this.scalingFactor=100,this.wordWrapType=n.d.Word,this.internalLineLimit=!0,this.wordWrapType=n.d.Word,void 0!==t&&"string"!=typeof t&&(this.textAlignment=t),void 0!==e&&(this.verticalAlignment=e)}return Object.defineProperty(t.prototype,"alignment",{get:function(){return this.textAlignment},set:function(t){this.textAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textDirection",{get:function(){return this.direction},set:function(t){this.direction=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineAlignment",{get:function(){return void 0===this.verticalAlignment||null==this.verticalAlignment?r.b.Top:this.verticalAlignment},set:function(t){this.verticalAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightToLeft",{get:function(){return void 0!==this.isRightToLeft&&null!=this.isRightToLeft&&this.isRightToLeft},set:function(t){this.isRightToLeft=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"characterSpacing",{get:function(){return void 0===this.internalCharacterSpacing||null==this.internalCharacterSpacing?0:this.internalCharacterSpacing},set:function(t){this.internalCharacterSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordSpacing",{get:function(){return void 0===this.internalWordSpacing||null==this.internalWordSpacing?0:this.internalWordSpacing},set:function(t){this.internalWordSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineSpacing",{get:function(){return void 0===this.leading||null==this.leading?0:this.leading},set:function(t){this.leading=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clipPath",{get:function(){return void 0!==this.clip&&null!=this.clip&&this.clip},set:function(t){this.clip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subSuperScript",{get:function(){return void 0===this.pdfSubSuperScript||null==this.pdfSubSuperScript?n.e.None:this.pdfSubSuperScript},set:function(t){this.pdfSubSuperScript=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paragraphIndent",{get:function(){return void 0===this.internalParagraphIndent||null==this.internalParagraphIndent?0:this.internalParagraphIndent},set:function(t){this.internalParagraphIndent=t,this.firstLineIndent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineLimit",{get:function(){return this.internalLineLimit},set:function(t){this.internalLineLimit=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"measureTrailingSpaces",{get:function(){return void 0!==this.trailingSpaces&&null!=this.trailingSpaces&&this.trailingSpaces},set:function(t){this.trailingSpaces=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noClip",{get:function(){return void 0!==this.isNoClip&&null!=this.isNoClip&&this.isNoClip},set:function(t){this.isNoClip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordWrap",{get:function(){return this.wordWrapType},set:function(t){this.wordWrapType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScalingFactor",{get:function(){return this.scalingFactor},set:function(t){if(t<=0)throw new Error("ArgumentOutOfRangeException:The scaling factor cant be less of equal to zero, ScalingFactor");this.scalingFactor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstLineIndent",{get:function(){return void 0===this.initialLineIndent||null==this.initialLineIndent?0:this.initialLineIndent},set:function(t){this.initialLineIndent=t},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return j}),i.d(e,"b",function(){return V}),i.d(e,"c",function(){return k});var r=i(2),n=i(7),o=i(86),s=i(15),a=i(11),h=i(18),u=i(22),l=i(83),c=i(0),d=i(76),f=i(17),p=i(23),g=i(32),m=i(49),y=i(14),b=i(1),w=i(28),v=i(115),S=i(97),P=i(16),C=i(102),B=i(47),O=i(21),x=i(26),L=i(46),j=function(){function t(t,e,i){this.currentColorSpace=r.i.Rgb,this.previousTextRenderingMode=r.d.Fill,this.previousCharacterSpacing=0,this.previousWordSpacing=0,this.previousTextScaling=100,this.procedureSets=new d.a,this.isNormalRender=!0,this.isUseFontSize=!1,this.isItalic=!1,this.isEmfTextScaled=!1,this.isEmf=!1,this.isEmfPlus=!1,this.isBaselineFormat=!0,this.emfScalingFactor=new c.b(0,0),this.colorSpaceChanged=!1,this.dictionaryProperties=new b.a,this.isOverloadWithPosition=!1,this.isPointOverload=!1,this.currentColorSpaces=["RGB","CMYK","GrayScale","Indexed"],this.isImageOptimized=!1,this.graphicsState=[],this.istransparencySet=!1,this.internalAutomaticFields=null,this.startCutIndex=-1,this.getResources=e,this.canvasSize=t,i instanceof o.a?this.pdfStreamWriter=i:this.pdfStreamWriter=new o.a(i),this.initialize()}return Object.defineProperty(t.prototype,"stringLayoutResult",{get:function(){return this.pdfStringLayoutResult},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.canvasSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mediaBoxUpperRightBound",{get:function(){return void 0===this.internalMediaBoxUpperRightBound&&(this.internalMediaBoxUpperRightBound=0),this.internalMediaBoxUpperRightBound},set:function(t){this.internalMediaBoxUpperRightBound=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientSize",{get:function(){return new c.b(this.clipBounds.width,this.clipBounds.height)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.currentColorSpace},set:function(t){this.currentColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"streamWriter",{get:function(){return this.pdfStreamWriter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrix",{get:function(){return null==this.transformationMatrix&&(this.transformationMatrix=new l.a),this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layer",{get:function(){return this.pageLayer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pageLayer.page},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"automaticFields",{get:function(){return null!=this.internalAutomaticFields&&void 0!==this.internalAutomaticFields||(this.internalAutomaticFields=new v.a),this.internalAutomaticFields},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.bStateSaved=!1,this.currentPen=null,this.currentBrush=null,this.currentFont=null,this.currentColorSpace=r.i.Rgb,this.bCSInitialized=!1,this.transformationMatrix=null,this.previousTextRenderingMode=-1,this.previousCharacterSpacing=-1,this.previousWordSpacing=-1,this.previousTextScaling=-100,this.currentStringFormat=null,this.clipBounds=new c.c(new c.a(0,0),this.size),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)},t.prototype.drawPdfTemplate=function(t,e,i){if(void 0===i){if(null==t)throw Error("ArgumentNullException-template");this.drawPdfTemplate(t,e,t.size)}else{if(null==t)throw Error("ArgumentNullException-template");var r=t.width>0?i.width/t.width:1,n=t.height>0?i.height/t.height:1,o=!(1===r&&1===n),s=this.save(),a=new l.a;null!=this.pageLayer&&this.getTranslateTransform(e.x,e.y+i.height,a),o&&this.getScaleTransform(r,n,a),this.pdfStreamWriter.modifyCtm(a);var h=this.getResources.getResources(),u=h.getName(t);this.pdfStreamWriter.executeObject(u),this.restore(s);var d=t.graphics;if(null!=d)for(var f=0;f<d.automaticFields.automaticFields.length;f++){var p=d.automaticFields.automaticFields[f],g=new c.a(p.location.x+e.x,p.location.y+e.y),m=0==t.size.width?0:i.width/t.size.width,y=0==t.size.height?0:i.height/t.size.height;this.automaticFields.add(new S.a(p.field,g,m,y)),this.page.dictionary.modify()}this.getResources.getResources().requireProcedureSet(this.procedureSets.imageB),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageC),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageI),this.getResources.getResources().requireProcedureSet(this.procedureSets.text)}},t.prototype.drawString=function(t,e,i,r,n,o,h,l,d){if("string"==typeof t&&e instanceof u.a&&(i instanceof s.a||null===i)&&(r instanceof a.a||null===r)&&"number"==typeof n&&"number"==typeof o&&(h instanceof p.a||null===h)&&void 0===l)this.isOverloadWithPosition=!0,this.drawString(t,e,i,r,n,o,this.clientSize.width-n,0,h);else{var f=i,g=r,m=n,b=o,w=h,v=l,S=d,P=new y.a,C=P.layout(t,e,S,new c.b(w,v),this.isOverloadWithPosition,this.clientSize);if(!C.empty){var B=this.checkCorrectLayoutRectangle(C.actualSize,m,b,S);w<=0&&(m=B.x,w=B.width),v<=0&&(b=B.y,v=B.height),this.drawStringLayoutResult(C,e,f,g,new c.c(m,b,w,v),S),this.isEmfTextScaled=!1,this.emfScalingFactor=new c.b(0,0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),this.isNormalRender=!0,this.pdfStringLayoutResult=C,this.isUseFontSize=!1}},t.prototype.drawLine=function(t,e,i,r,n){if(e instanceof c.a){var o=e,s=i;this.drawLine(t,o.x,o.y,s.x,s.y)}else{var o=e,s=i,a=r,h=n;this.stateControl(t,null,null);var u=this.streamWriter;u.beginPath(o,s),u.appendLineSegment(a,h),u.strokePath(),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)}},t.prototype.drawRectangle=function(t,e,i,r,n,o){if(t instanceof s.a&&"number"==typeof e){var u=i;this.drawRectangle(t,null,e,u,r,n)}else if(t instanceof a.a&&"number"==typeof e){var u=i;this.drawRectangle(null,t,e,u,r,n)}else{var u=i,l=r,d=n,f=o;if(e instanceof L.a){this.bCSInitialized=!1;var p=this.matrix.matrix.offsetX+u,g=void 0;g=null!=this.layer&&null!=this.layer.page?this.layer.page.size.height-this.matrix.matrix.offsetY+l:this.clientSize.height-this.matrix.matrix.offsetY+l,e.location=new c.a(p,g),e.graphics.colorSpace=this.colorSpace}else e instanceof x.a&&(e.colorSpace=this.colorSpace);e instanceof h.a&&e.color.isEmpty&&(e=null);var m=t,y=e;this.stateControl(m,y,null),this.streamWriter.appendRectangle(u,l,d,f),this.drawPathHelper(m,y,!1)}},t.prototype.drawRoundedRectangle=function(t,e,i,n,o,s,a){if(null===t)throw new Error("pen");if(null===e)throw new Error("brush");if(0===a)this.drawRectangle(t,e,i,n,o,s);else{var h=[i,n,o,s],u=2*a,l=[u,u],c=[h[0],h[1],l[0],l[1]];this._pathPoints=[],this._pathTypes=[];var d=!0;d=this._addArc(c[0],c[1],c[2],c[3],180,90,d),c[0]=h[0]+h[2]-u,d=this._addArc(c[0],c[1],c[2],c[3],270,90,d),c[1]=h[1]+h[3]-u,d=this._addArc(c[0],c[1],c[2],c[3],0,90,d),c[0]=h[0],d=this._addArc(c[0],c[1],c[2],c[3],90,90,d);var f=this._pathPoints.length-1,p=this._pathTypes[f];p|=O.c.CloseSubpath,this._pathTypes[f]=p,this._drawPath(t,e,this._pathPoints,this._pathTypes,r.h.Alternate),this._pathPoints=[],this._pathTypes=[]}},t.prototype._addArc=function(t,e,i,r,n,o,s){for(var a=this._getBezierArcPoints(t,e,t+i,e+r,n,o),h=0;h<a.length;h+=8){var u=[a[h],a[h+1],a[h+2],a[h+3],a[h+4],a[h+5],a[h+6],a[h+7]];s=this._addArcPoints(u,O.c.Bezier3,s)}return s},t.prototype._addArcPoints=function(t,e,i){for(var r=0;r<t.length;r++){var n=new c.a(t[r],t[r+1]);0===r?0===this._pathPoints.length||i?(this._addPoint(n,O.c.Start),i=!1):n.x===this._getLastPoint().x&&n.y===this._getLastPoint().y||this._addPoint(n,O.c.Line):this._addPoint(n,e),r++}return i},t.prototype._getLastPoint=function(){var t=new c.a(0,0),e=this._pathPoints.length;return e>0&&(t.x=this._pathPoints[e-1].x,t.y=this._pathPoints[e-1].y),t},t.prototype._addPoint=function(t,e){this._pathPoints.push(t),this._pathTypes.push(e)},t.prototype._getBezierArcPoints=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){var s=void 0;s=e,e=r,r=s}var a,h;Math.abs(o)<=90?(a=o,h=1):(h=Math.ceil(Math.abs(o)/90),a=o/h);for(var u=(t+i)/2,l=(e+r)/2,c=(i-t)/2,d=(r-e)/2,f=a*(Math.PI/360),p=Math.abs(4/3*(1-Math.cos(f))/Math.sin(f)),g=[],m=0;m<h;m++){var y=(n+m*a)*(Math.PI/180),b=(n+(m+1)*a)*(Math.PI/180),w=Math.cos(y),v=Math.cos(b),S=Math.sin(y),P=Math.sin(b);a>0?g.push(u+c*w,l-d*S,u+c*(w-p*S),l-d*(S+p*w),u+c*(v+p*P),l-d*(P-p*v),u+c*v,l-d*P):g.push(u+c*w,l-d*S,u+c*(w+p*S),l-d*(S-p*w),u+c*(v-p*P),l-d*(P+p*v),u+c*v,l-d*P)}return g},t.prototype.drawPathHelper=function(t,e,i,n){if("boolean"==typeof i){var o=i;this.drawPathHelper(t,e,r.h.Winding,o)}else{var o=i,s=null!=t,a=null!=e,h=o===r.h.Alternate;s&&a?this.streamWriter.fillStrokePath(h):s||a?s?this.streamWriter.strokePath():this.streamWriter.fillPath(h):this.streamWriter.endPath()}},t.prototype.drawImage=function(t,e,i,r,n){if("number"==typeof e&&"number"==typeof i&&void 0===r){var o=t.physicalDimension;this.drawImage(t,e,i,o.width,o.height)}else{var s=e,a=i,h=n;t.save();var u=new l.a;this.getTranslateTransform(s,a+h,u),this.getScaleTransform(r,n,u),this.pdfStreamWriter.write("q"),this.pdfStreamWriter.modifyCtm(u);var c=this.getResources.getResources();void 0!==this.pageLayer&&null!=this.page&&(c.document=this.page.document);var d=c.getName(t);void 0!==this.pageLayer&&this.page.setResources(c),this.pdfStreamWriter.executeObject(d),this.pdfStreamWriter.write(P.a.restoreState),this.pdfStreamWriter.write(P.a.newLine);var f=this.getResources.getResources();f.requireProcedureSet(this.procedureSets.imageB),f.requireProcedureSet(this.procedureSets.imageC),f.requireProcedureSet(this.procedureSets.imageI),f.requireProcedureSet(this.procedureSets.text)}},t.prototype.getLineBounds=function(t,e,i,r,n){var o;if(!e.empty&&t<e.lineCount&&t>=0){var s=e.lines[t],a=this.getTextVerticalAlignShift(e.actualSize.height,r.height,n),h=a+r.y+e.lineHeight*t,u=s.width,l=this.getHorizontalAlignShift(u,r.width,n),d=this.getLineIndent(s,n,r,0===t);l+=this.rightToLeft(n)?0:d;var f=r.x+l,p=this.shouldJustify(s,r.width,n)?r.width-d:u-d,g=e.lineHeight;o=new c.c(f,h,p,g)}else o=new c.c(0,0,0,0);return o},t.prototype.checkCorrectLayoutRectangle=function(t,e,i,n){var o=new c.c(e,i,t.width,t.width);if(null!=n){switch(n.alignment){case r.c.Center:o.x-=o.width/2;break;case r.c.Right:o.x-=o.width}switch(n.lineAlignment){case r.b.Middle:o.y-=o.height/2;break;case r.b.Bottom:o.y-=o.height}}return o},t.prototype.setLayer=function(t){this.pageLayer=t;var e=t.page;null!=e&&void 0!==e&&(e.beginSave=this.pageSave)},t.prototype.pageSave=function(t){if(null!=t.graphics.automaticFields)for(var e=0;e<t.graphics.automaticFields.automaticFields.length;e++){var i=t.graphics.automaticFields.automaticFields[e];i.field.performDraw(t.graphics,i.location,i.scalingX,i.scalingY)}},t.prototype.drawStringLayoutResult=function(t,e,i,r,o,s){if(t.empty)throw new Error("ArgumentNullException:result");this.applyStringSettings(e,i,r,s,o);var a=null!=s?s.horizontalScalingFactor:100;a===this.previousTextScaling||this.isEmfTextScaled||(this.pdfStreamWriter.setTextScaling(a),this.previousTextScaling=a);var h=null==s||0===s.lineSpacing?e.height:s.lineSpacing+e.height,u=null!=s&&s.subSuperScript===n.e.SubScript,l=0;l=u?h-(e.height+e.metrics.getDescent(s)):h-e.metrics.getAscent(s),this.shift=l,this.pdfStreamWriter.startNextLine(o.x,o.y-l),this.pdfStreamWriter.setLeading(+h);for(var d=0,f="",p=0;p<t.lines.length;p++)if(d+=t.lineHeight,o.y+d>this.clientSize.height){this.startCutIndex=p;break}for(var g=this.startCutIndex;g<t.lines.length&&g>=0;g++)f+=t.lines[g].text;var m=new c.c(o.x,o.y,o.width,o.height);if(this.drawLayoutResult(t,e,s,o),this.underlineStrikeoutText(i,r,t,e,m,s),this.isEmfPlus=!1,this.isUseFontSize=!1,-1!==this.startCutIndex){this.getNextPage().graphics.drawString(f,e,i,r,o.x,0,o.width,0,s)}},t.prototype.getNextPage=function(){var t=this.currentPage.section,e=t.indexOf(this.currentPage);return e===t.count-1?t.add():t.getPages()[e+1]},t.prototype.setClip=function(t,e){void 0===e?this.setClip(t,r.h.Winding):(this.pdfStreamWriter.appendRectangle(t),this.pdfStreamWriter.clipPath(e===r.h.Alternate))},t.prototype.applyStringSettings=function(t,e,i,r,n){i instanceof L.a?(this.bCSInitialized=!1,i.graphics.colorSpace=this.colorSpace):i instanceof x.a&&(this.bCSInitialized=!1,i.colorSpace=this.colorSpace);var o=this.getTextRenderingMode(e,i,r);this.stateControl(e,i,t,r),this.pdfStreamWriter.beginText(),o!==this.previousTextRenderingMode&&(this.pdfStreamWriter.setTextRenderingMode(o),this.previousTextRenderingMode=o);var s=null!=r?r.characterSpacing:0;s===this.previousCharacterSpacing||this.isEmfTextScaled||(this.pdfStreamWriter.setCharacterSpacing(s),this.previousCharacterSpacing=s);var a=null!=r?r.wordSpacing:0;a!==this.previousWordSpacing&&(this.pdfStreamWriter.setWordSpacing(a),this.previousWordSpacing=a)},t.prototype.getTextVerticalAlignShift=function(t,e,i){var n=0;if(e>=0&&null!=i&&i.lineAlignment!==r.b.Top)switch(i.lineAlignment){case r.b.Middle:n=(e-t)/2;break;case r.b.Bottom:n=e-t}return n},t.prototype.drawLayoutResult=function(t,e,i,r){var n=this.getTextVerticalAlignShift(t.actualSize.height,r.height,i);0!==n&&this.pdfStreamWriter.startNextLine(0,n);for(var o=e,s=null!=o&&o.isUnicode,a=(null!=o&&o.isEmbedFont,t.lines),h=0,u=a.length;h<u&&h!==this.startCutIndex;h++){var l=a[h],c=(l.text,l.width),d=this.getHorizontalAlignShift(c,r.width,i),f=this.getLineIndent(l,i,r,0===h);d+=this.rightToLeft(i)?0:f,0===d||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(d,0),s?this.drawUnicodeLine(l,r,e,i):this.drawAsciiLine(l,r,e,i),0===d||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(-d,0),this.isOverloadWithPosition&&a.length>1&&(this.pdfStreamWriter.startNextLine(-r.x,0),r.x=0,r.width=this.clientSize.width,this.isOverloadWithPosition=!1,this.isPointOverload=!0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),0!==n&&this.pdfStreamWriter.startNextLine(0,-(n-t.lineHeight)),this.pdfStreamWriter.endText()},t.prototype.drawAsciiLine=function(t,e,i,r){this.justifyLine(t,e.width,r);var n="";if(-1!==t.text.indexOf("(")||-1!==t.text.indexOf(")"))for(var o=0;o<t.text.length;o++)"("===t.text[o]?n+="\\(":")"===t.text[o]?n+="\\)":n+=t.text[o];""===n&&(n=t.text);var s="("+n+")";this.pdfStreamWriter.showNextLineText(new f.b(s))},t.prototype.drawUnicodeLine=function(t,e,i,n){var o=t.text,s=(t.width,null!==n&&void 0!==n&&n.rightToLeft),a=null!==n&&void 0!==n&&(0!==n.wordSpacing||n.alignment===r.c.Justify),h=i,u=this.justifyLine(t,e.width,n),l=new B.a;if(s||null!==n&&void 0!==n&&n.textDirection!==r.m.None){var c=null,d=null!==n&&void 0!==n&&n.alignment===r.c.Right;c=null!==n&&void 0!==n&&n.textDirection!==r.m.None?l.layout(o,h,n.textDirection===r.m.RightToLeft,a,n):l.layout(o,h,d,a,n);var f=null;f=c.length>1?null!==n&&void 0!==n&&n.textDirection!==r.m.None?l.splitLayout(o,h,n.textDirection===r.m.RightToLeft,a,n):l.splitLayout(o,h,d,a,n):[o],this.drawUnicodeBlocks(c,f,h,n,u)}else if(a){var p=this.breakUnicodeLine(o,h,null),c=p.tokens,f=p.words;this.drawUnicodeBlocks(c,f,h,n,u)}else{var g=this.convertToUnicode(o,h),m=this.getUnicodeString(g);this.streamWriter.showNextLineText(m)}},t.prototype.drawUnicodeBlocks=function(t,e,i,r,n){if(null==t)throw new Error("Argument Null Exception : blocks");if(null==e)throw new Error("Argument Null Exception : words");if(null==i)throw new Error("Argument Null Exception : font");this.streamWriter.startNextLine();var o=0,s=0,a=0,h=0;try{null!==r&&void 0!==r&&(a=r.firstLineIndent,h=r.paragraphIndent,r.firstLineIndent=0,r.paragraphIndent=0);var u=i.getCharWidth(w.a.whiteSpace,r)+n,l=null!=r?r.characterSpacing:0;u+=l+(null!==r&&void 0!==r&&0===n?r.wordSpacing:0);for(var c=0;c<t.length;c++){var d=t[c],f=e[c],p=0;if(0!==o&&this.streamWriter.startNextLine(o,0),f.length>0){p+=i.measureString(f,r).width,p+=l;var g=this.getUnicodeString(d);this.streamWriter.showText(g)}c!==t.length-1&&(o=p+u,s+=o)}s>0&&this.streamWriter.startNextLine(-s,0)}finally{null!==r&&void 0!==r&&(r.firstLineIndent=a,r.paragraphIndent=h)}},t.prototype.breakUnicodeLine=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : line");i=t.split(null);for(var r=[],n=0;n<i.length;n++){var o=i[n],s=this.convertToUnicode(o,e);r[n]=s}return{tokens:r,words:i}},t.prototype.getUnicodeString=function(t){if(null===t)throw new Error("Argument Null Exception : token");var e=new f.b(t);return e.converted=!0,e.encode=f.a.ForceEncoding.Ascii,e},t.prototype.convertToUnicode=function(t,e){var i=null;if(null==t)throw new Error("Argument Null Exception : text");if(null==e)throw new Error("Argument Null Exception : ttfFont");if(e.fontInternal instanceof C.a){var r=e.fontInternal.ttfReader;e.setSymbols(t),i=r.convertString(t);var n=f.b.toUnicodeArray(i,!1);i=f.b.byteToString(n)}return i},t.prototype.justifyLine=function(t,e,i){var r=t.text,n=t.width,o=this.shouldJustify(t,e,i),s=null!=i&&0!==i.wordSpacing,a=w.a.spaces,h=w.a.getCharsCount(r,a),u=0;if(o){s&&(n-=h*i.wordSpacing);u=(e-n)/h,this.pdfStreamWriter.setWordSpacing(u)}else s?this.pdfStreamWriter.setWordSpacing(i.wordSpacing):this.pdfStreamWriter.setWordSpacing(0);return u},t.prototype.reset=function(t){this.canvasSize=t,this.streamWriter.clear(),this.initialize(),this.initializeCoordinates()},t.prototype.shouldJustify=function(t,e,i){var n=t.text,o=t.width,s=null!=i&&i.alignment===r.c.Justify,a=e>=0&&o<e,h=w.a.spaces,u=w.a.getCharsCount(n,h),l=u>0&&n[0]!==w.a.whiteSpace,c=(t.lineType&y.d.LayoutBreak)>0;return s&&a&&l&&(c||i.alignment===r.c.Justify)},t.prototype.underlineStrikeoutText=function(t,e,i,r,n,o){if(r.underline||r.strikeout){var s=this.createUnderlineStikeoutPen(t,e,r,o);if(null!=s){var a=this.getTextVerticalAlignShift(i.actualSize.height,n.height,o),h=0;h=n.y+a+r.metrics.getAscent(o)+1.5*s.width;for(var u=n.y+a+r.metrics.getHeight(o)/2+1.5*s.width,l=i.lines,c=0,d=i.lineCount;c<d;c++){var f=l[c],p=(f.text,f.width),g=this.getHorizontalAlignShift(p,n.width,o),m=this.getLineIndent(f,o,n,0===c);g+=this.rightToLeft(o)?0:m;var y=n.x+g,b=this.shouldJustify(f,n.width,o)?y+n.width-m:y+p-m;if(r.underline){var w=h;this.drawLine(s,y,w,b,w),h+=i.lineHeight}if(r.strikeout){var w=u;this.drawLine(s,y,w,b,w),u+=i.lineHeight}this.isPointOverload&&l.length>1&&(n.x=0,n.width=this.clientSize.width)}this.isPointOverload=!1}}},t.prototype.createUnderlineStikeoutPen=function(t,e,i,r){var n=i.metrics.getSize(r)/20,o=null;return null!=t?o=new s.a(t.color,n):null!=e&&(o=new s.a(e,n)),o},t.prototype.getTextRenderingMode=function(t,e,i){var n=r.d.None;return n=null!=t&&null!=e?r.d.FillStroke:null!=t?r.d.Stroke:r.d.Fill,null!=i&&i.clipPath&&(n|=r.d.ClipFlag),n},t.prototype.getLineIndent=function(t,e,i,r){var n=0,o=(t.lineType&y.d.FirstParagraphLine)>0;return null!=e&&o&&(n=r?e.firstLineIndent:e.paragraphIndent,n=i.width>0?Math.min(i.width,n):n),n},t.prototype.getHorizontalAlignShift=function(t,e,i){var n=0;if(e>=0&&null!=i&&i.alignment!==r.c.Left)switch(i.alignment){case r.c.Center:n=(e-t)/2;break;case r.c.Right:n=e-t}return n},t.prototype.rightToLeft=function(t){var e=null!==t&&void 0!==t&&t.rightToLeft;return null!==t&&void 0!==t&&t.textDirection!==r.m.None&&void 0!==t.textDirection&&(e=!0),e},t.prototype.stateControl=function(t,e,i,r){if(void 0===r)this.stateControl(t,e,i,null);else{e instanceof x.a&&(this.bCSInitialized=!1,e.colorSpace=this.colorSpace),e instanceof L.a&&(this.bCSInitialized=!1,e.graphics.colorSpace=this.colorSpace);if(null!==e){void 0!==this.pageLayer&&null!=this.pageLayer&&!1===this.colorSpaceChanged&&(this.lastDocumentCS=this.pageLayer.page.document.colorSpace,this.lastGraphicsCS=this.pageLayer.page.graphics.colorSpace,this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace,this.colorSpaceChanged=!0),this.initCurrentColorSpace(this.currentColorSpace)}else if(null!=t){void 0!==this.pageLayer&&null!=this.pageLayer&&(this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace),this.initCurrentColorSpace(this.currentColorSpace)}this.penControl(t,!1),this.brushControl(e,!1),this.fontControl(i,r,!1)}},t.prototype.initCurrentColorSpace=function(t){this.getResources.getResources();this.bCSInitialized||(this.currentColorSpace!=r.i.GrayScale?(this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!0),this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!1),this.bCSInitialized=!0):(this.pdfStreamWriter.setColorSpace("DeviceGray",!0),this.pdfStreamWriter.setColorSpace("DeviceGray",!1),this.bCSInitialized=!0))},t.prototype.penControl=function(t,e){null!=t&&(this.currentPen=t,t.monitorChanges(this.currentPen,this.pdfStreamWriter,this.getResources,e,this.colorSpace,this.matrix.clone()),this.currentPen=t.clone())},t.prototype.brushControl=function(t,e){if(null!=t&&void 0!==t){var i=t.clone(),r=i;if(!(null===r||void 0===r||t instanceof h.a||t instanceof L.a)){var n=r.matrix,o=this.matrix.clone();null!=n&&(n.multiply(o),o=n),r.matrix=o}this.currentBrush=r;i.monitorChanges(this.currentBrush,this.pdfStreamWriter,this.getResources,e,this.colorSpace),this.currentBrush=t,t=null}},t.prototype.fontControl=function(t,e,i){if(null!=t){var r=null!=e?e.subSuperScript:n.e.None,o=null!=this.currentStringFormat?this.currentStringFormat.subSuperScript:n.e.None;if(i||t!==this.currentFont||r!==o){var s=this.getResources.getResources();this.currentFont=t,this.currentStringFormat=e;var a=t.metrics.getSize(e);this.isEmfTextScaled=!1;var h=s.getName(t);this.pdfStreamWriter.setFont(t,h,a)}}},t.prototype.setTransparency=function(t,e,i){if(void 0===e)this.istransparencySet=!0,this.setTransparency(t,t,r.j.Normal);else if("number"==typeof e&&void 0===i)this.setTransparency(t,e,r.j.Normal);else{null==this.trasparencies&&(this.trasparencies=new g.a);var n=null,o=new T(t,e,i);this.trasparencies.containsKey(o)&&(n=this.trasparencies.getValue(o)),null==n&&(n=new m.a(t,e,i),this.trasparencies.setValue(o,n));var s=this.getResources.getResources(),a=s.getName(n),h=this.streamWriter;h.setGraphicsState(a)}},t.prototype.clipTranslateMargins=function(t,e,i,r,n,o){if(t instanceof c.c&&void 0===e)this.clipBounds=t,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(t),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(t.x,t.y);else if("number"==typeof t){var s=new c.c(i,r,this.size.width-i-n,this.size.height-r-o);this.clipBounds=s,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(s),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(t,e)}},t.prototype.updateY=function(t){return-t},t.prototype.translateTransform=function(t,e){var i=new l.a;this.getTranslateTransform(t,e,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},t.prototype.getTranslateTransform=function(t,e,i){return i.translate(t,this.updateY(e)),i},t.prototype.scaleTransform=function(t,e){var i=new l.a;this.getScaleTransform(t,e,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},t.prototype.getScaleTransform=function(t,e,i){return null==i&&(i=new l.a),i.scale(t,e),i},t.prototype.rotateTransform=function(t){var e=new l.a;this.getRotateTransform(t,e),this.pdfStreamWriter.modifyCtm(e),this.matrix.multiply(e)},t.prototype.initializeCoordinates=function(){this.pdfStreamWriter.writeComment("Change co-ordinate system to left/top."),this.mediaBoxUpperRightBound!==-this.size.height&&null==this.cropBox&&(this.mediaBoxUpperRightBound===this.size.height||0===this.mediaBoxUpperRightBound?this.translateTransform(0,this.updateY(this.size.height)):this.translateTransform(0,this.updateY(this.mediaBoxUpperRightBound)))},t.prototype.getRotateTransform=function(t,e){return null!=e&&void 0!==e||(e=new l.a),e.rotate(this.updateY(t)),e},t.prototype.save=function(){var t=new k(this,this.matrix.clone());return t.brush=this.currentBrush,t.pen=this.currentPen,t.font=this.currentFont,t.colorSpace=this.currentColorSpace,t.characterSpacing=this.previousCharacterSpacing,t.wordSpacing=this.previousWordSpacing,t.textScaling=this.previousTextScaling,t.textRenderingMode=this.previousTextRenderingMode,this.graphicsState.push(t),this.pdfStreamWriter.saveGraphicsState(),t},t.prototype.restore=function(t){if(void 0===t)this.graphicsState.length>0&&this.doRestoreState();else if(-1!==this.graphicsState.indexOf(t))for(;0!==this.graphicsState.length;){var e=this.doRestoreState();if(e===t)break}},t.prototype.doRestoreState=function(){var t=this.graphicsState.pop();return this.transformationMatrix=t.matrix,this.currentBrush=t.brush,this.currentPen=t.pen,this.currentFont=t.font,this.currentColorSpace=t.colorSpace,this.previousCharacterSpacing=t.characterSpacing,this.previousWordSpacing=t.wordSpacing,this.previousTextScaling=t.textScaling,this.previousTextRenderingMode=t.textRenderingMode,this.pdfStreamWriter.restoreGraphicsState(),t},t.prototype.drawPath=function(t,e,i){this._drawPath(t,e,i.pathPoints,i.pathTypes,i.fillMode)},t.prototype._drawPath=function(t,e,i,r,n){e instanceof L.a?(this.bCSInitialized=!1,e.graphics.colorSpace=this.colorSpace):e instanceof x.a&&(this.bCSInitialized=!1,e.colorSpace=this.colorSpace),this.stateControl(t,e,null),this.buildUpPath(i,r),this.drawPathHelper(t,e,n,!1)},t.prototype.drawArc=function(t,e,i,r,n,o,s){e instanceof c.c?this.drawArc(t,e.x,e.y,e.width,e.height,i,r):0!==s&&(this.stateControl(t,null,null),this.constructArcPath(e,i,e+r,i+n,o,s),this.drawPathHelper(t,null,!1))},t.prototype.buildUpPath=function(e,i){for(var r=e.length,n=0;n<r;++n){var o=0,s=e[n];switch(i[n]&t.pathTypesValuesMask){case O.c.Start:this.pdfStreamWriter.beginPath(s.x,s.y);break;case O.c.Bezier3:var a=new c.a(0,0),h=new c.a(0,0),u=this.getBezierPoints(e,i,n,a,h);this.pdfStreamWriter.appendBezierSegment(s,u.p2,u.p3),n=u.i;break;case O.c.Line:this.pdfStreamWriter.appendLineSegment(s);break;default:throw new Error("ArithmeticException - Incorrect path formation.")}o=i[n],this.checkFlags(o)}},t.prototype.getBezierPoints=function(e,i,r,n,o){if(++r,(i[r]&t.pathTypesValuesMask)!==O.c.Bezier3)throw new Error("ArgumentException : errorMsg");if(n=e[r],++r,(i[r]&t.pathTypesValuesMask)!==O.c.Bezier3)throw new Error("ArgumentException : errorMsg");return o=e[r],{i:r,p2:n,p3:o}},t.prototype.checkFlags=function(t){(t&O.c.CloseSubpath)===O.c.CloseSubpath&&this.pdfStreamWriter.closePath()},t.prototype.constructArcPath=function(t,e,i,r,n,o){var s=this.getBezierArc(t,e,i,r,n,o);if(0!==s.length){var a=[s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7]];this.pdfStreamWriter.beginPath(a[0],a[1]);var h=0;for(h=0;h<s.length;h+=8)a=[s[h],s[h+1],s[h+2],s[h+3],s[h+4],s[h+5],s[h+6],s[h+7]],this.pdfStreamWriter.appendBezierSegment(a[2],a[3],a[4],a[5],a[6],a[7])}},t.prototype.getBezierArc=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){var s=void 0;s=e,e=r,r=s}var a,h;Math.abs(o)<=90?(a=o,h=1):(h=Math.ceil(Math.abs(o)/90),a=o/h);for(var u=(t+i)/2,l=(e+r)/2,c=(i-t)/2,d=(r-e)/2,f=a*(Math.PI/360),p=Math.abs(4/3*(1-Math.cos(f))/Math.sin(f)),g=[],m=0;m<h;m++){var y=(n+m*a)*(Math.PI/180),b=(n+(m+1)*a)*(Math.PI/180),w=Math.cos(y),v=Math.cos(b),S=Math.sin(y),P=Math.sin(b);a>0?g.push(u+c*w,l-d*S,u+c*(w-p*S),l-d*(S+p*w),u+c*(v+p*P),l-d*(P-p*v),u+c*v,l-d*P):g.push(u+c*w,l-d*S,u+c*(w+p*S),l-d*(S-p*w),u+c*(v-p*P),l-d*(P+p*v),u+c*v,l-d*P)}return g},t.pathTypesValuesMask=15,t.transparencyObject=!1,t}(),V=function(){function t(t){this.sender=t}return t.prototype.getResources=function(){return this.sender.getResources()},t}(),k=function(){function t(t,e){if(this.internalTextRenderingMode=r.d.Fill,this.internalCharacterSpacing=0,this.internalWordSpacing=0,this.internalTextScaling=100,this.pdfColorSpace=r.i.Rgb,void 0!==t){this.pdfGraphics=t;var i=[];t.matrix.matrix.elements.forEach(function(t){i.push(t)}),this.transformationMatrix=new l.a,this.transformationMatrix.matrix=new l.b(i)}}return Object.defineProperty(t.prototype,"graphics",{get:function(){return this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"characterSpacing",{get:function(){return this.internalCharacterSpacing},set:function(t){this.internalCharacterSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordSpacing",{get:function(){return this.internalWordSpacing},set:function(t){this.internalWordSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textScaling",{get:function(){return this.internalTextScaling},set:function(t){this.internalTextScaling=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pen",{get:function(){return this.pdfPen},set:function(t){this.pdfPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this.pdfBrush},set:function(t){this.pdfBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.pdfFont},set:function(t){this.pdfFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(t){this.pdfColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textRenderingMode",{get:function(){return this.internalTextRenderingMode},set:function(t){this.internalTextRenderingMode=t},enumerable:!0,configurable:!0}),t}(),T=function(){function t(t,e,i){this.alphaPen=t,this.alphaBrush=e,this.blendMode=i}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return c});var r=i(52),n=i(4),o=i(3),s=i(8),a=i(0),h=i(64),u=i(54),l=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),c=function(t){function e(){var e=t.call(this,new n.a)||this;return e.annotationCollection=null,e.beginSave=null,e.initialize(),e}return l(e,t),Object.defineProperty(e.prototype,"document",{get:function(){return null!==this.section&&null!==this.section.parent?this.section.parent.document:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){var t=this.defaultLayer.graphics;return t.currentPage=this,t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"crossTable",{get:function(){if(null===this.section)throw new Error("PdfDocumentException : Page is not created");return null===this.section.parent?this.section.parentDocument.crossTable:this.section.parent.document.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.section.pageSettings.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"origin",{get:function(){return this.section.pageSettings.origin},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"annotations",{get:function(){return null==this.annotationCollection&&(this.annotationCollection=new h.a(this),this.dictionary.items.setValue(this.dictionaryProperties.annots,this.annotationCollection.element),this.annotationCollection.annotations=this.dictionary.items.getValue(this.dictionaryProperties.annots)),this.annotationCollection},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){this.dictionary.items.setValue(this.dictionaryProperties.type,new o.a("Page")),this.dictionary.pageBeginDrawTemplate=new n.g(this)},e.prototype.setSection=function(t){this.section=t,this.dictionary.items.setValue(this.dictionaryProperties.parent,new s.b(t))},e.prototype.resetProgress=function(){this.isProgressOn=!1},e.prototype.getClientSize=function(){var t=this.section.getActualBounds(this,!0);return new a.b(t.width,t.height)},e.prototype.pageBeginSave=function(){var t=this.document;void 0!==typeof t&&null!=t&&this.drawPageTemplates(t),null!=this.beginSave&&void 0!==this.beginSave&&this.beginSave(this)},e.prototype.drawPageTemplates=function(t){if(this.section.containsTemplates(t,this,!1)){var e=new u.a(this,!1);if(this.layers.insert(0,e),this.section.drawTemplates(this,e,t,!1),null!==e.graphics&&void 0!==e.graphics)for(var i=0;i<e.graphics.automaticFields.automaticFields.length;i++){var r=e.graphics.automaticFields.automaticFields[i];r.field.performDraw(e.graphics,r.location,r.scalingX,r.scalingY)}}if(this.section.containsTemplates(t,this,!0)){var n=new u.a(this,!1);this.layers.add(n),this.section.drawTemplates(this,n,t,!0)}},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return p});var r=i(2),n=i(9),o=i(11),s=i(4),a=i(1),h=i(33),u=i(6),l=i(3),c=i(5),d=i(8),f=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),p=function(t){function e(e){var i=t.call(this)||this;return i.mbackground=new n.a(255,255,255),i.mbStroking=!1,i.mfunction=null,i.dictionaryProperties=new a.a,i.mpatternDictionary=new s.a,i.mpatternDictionary.items.setValue(i.dictionaryProperties.type,new l.a(i.dictionaryProperties.pattern)),i.mpatternDictionary.items.setValue(i.dictionaryProperties.patternType,new c.a(2)),i.shading=e,i.colorSpace=r.i.Rgb,i}return f(e,t),Object.defineProperty(e.prototype,"background",{get:function(){return this.mbackground},set:function(t){this.mbackground=t;var e=this.shading;t.isEmpty?e.remove(this.dictionaryProperties.background):e.items.setValue(this.dictionaryProperties.background,t.toArray(this.colorSpace))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"antiAlias",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.antiAlias).value},set:function(t){var e=this.shading,i=e.items.getValue(this.dictionaryProperties.antiAlias);null==i&&void 0===i?(i=new h.a(t),e.items.setValue(this.dictionaryProperties.antiAlias,i)):i.value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"function",{get:function(){return this.mfunction},set:function(t){this.mfunction=t,null!=t&&void 0!==t?this.shading.items.setValue(this.dictionaryProperties.function,new d.b(this.mfunction)):this.shading.remove(this.dictionaryProperties.function)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bBox",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.bBox)},set:function(t){var e=this.shading;null==t&&void 0===t?e.remove(this.dictionaryProperties.bBox):e.items.setValue(this.dictionaryProperties.bBox,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.mcolorSpace},set:function(t){var e=this.shading.items.getValue(this.dictionaryProperties.colorSpace);if(t!==this.mcolorSpace||null==e){this.mcolorSpace=t;var i=this.colorSpaceToDeviceName(t);this.shading.items.setValue(this.dictionaryProperties.colorSpace,new l.a(i))}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroking",{get:function(){return this.mbStroking},set:function(t){this.mbStroking=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patternDictionary",{get:function(){return null==this.mpatternDictionary&&(this.mpatternDictionary=new s.a),this.mpatternDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shading",{get:function(){return this.mshading},set:function(t){if(null==t)throw new Error("ArgumentNullException : Shading");t!==this.mshading&&(this.mshading=t,this.patternDictionary.items.setValue(this.dictionaryProperties.shading,new d.b(this.mshading)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matrix",{get:function(){return this.mmatrix},set:function(t){if(null==t)throw new Error("ArgumentNullException : Matrix");if(t!==this.mmatrix){this.mmatrix=t.clone();var e=new u.a(this.mmatrix.matrix.elements);this.mpatternDictionary.items.setValue(this.dictionaryProperties.matrix,e)}},enumerable:!0,configurable:!0}),e.prototype.monitorChanges=function(t,i,r,n,o){var s=!1;if(t instanceof e){this.colorSpace!==o&&(this.colorSpace=o,this.resetFunction()),i.setColorSpace("Pattern",this.mbStroking);var a=r.getResources(),h=a.getName(this);i.setColourWithPattern(null,h,this.mbStroking),s=!0}return s},e.prototype.resetChanges=function(t){},e.prototype.colorSpaceToDeviceName=function(t){var e;switch(t){case r.i.Rgb:e="DeviceRGB"}return e},e.prototype.resetPatternDictionary=function(t){this.mpatternDictionary=t},e.prototype.cloneAntiAliasingValue=function(t){if(null==t)throw new Error("ArgumentNullException : brush");var e=this.shading,i=e.items.getValue(this.dictionaryProperties.antiAlias);null!=i&&t.shading.items.setValue(this.dictionaryProperties.antiAlias,new h.a(i.value))},e.prototype.cloneBackgroundValue=function(t){var e=this.background;e.isEmpty||(t.background=e)},Object.defineProperty(e.prototype,"element",{get:function(){return this.patternDictionary},enumerable:!0,configurable:!0}),e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return l});var r=i(13),n=i(1),o=i(6),s=i(24),a=i(40),h=i(3),u=i(0),l=function(){function t(t,e){if(this.dictionaryProperties=new n.a,this.writeTransformation=!0,void 0===t);else if(t instanceof u.b&&void 0===e){this.content=new r.a;var i=new u.b(t.width,t.height);this.setSize(i),this.initialize()}else this.content=new r.a,this.setSize(new u.b(t,e)),this.initialize()}return Object.defineProperty(t.prototype,"size",{get:function(){return this.templateSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.size.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.size.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){if(null==this.pdfGraphics||void 0===this.pdfGraphics){var t=new s.b(this),e=new s.a(this.size,t,this.content);this.pdfGraphics=e,this.pdfGraphics.initializeCoordinates()}return this.pdfGraphics},enumerable:!0,configurable:!0}),t.prototype.getResources=function(){return null==this.resources&&(this.resources=new a.a,this.content.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},t.prototype.initialize=function(){this.addType(),this.addSubType()},t.prototype.addType=function(){var t=new h.a(this.dictionaryProperties.xObject);this.content.items.setValue(this.dictionaryProperties.type,t)},t.prototype.addSubType=function(){var t=new h.a(this.dictionaryProperties.form);this.content.items.setValue(this.dictionaryProperties.subtype,t)},t.prototype.reset=function(t){void 0===t?(null!=this.resources&&(this.resources=null,this.content.remove(this.dictionaryProperties.resources)),null!=this.graphics&&this.graphics.reset(this.size)):(this.setSize(t),this.reset())},t.prototype.setSize=function(t){var e=new u.c(new u.a(0,0),t),i=o.a.fromRectangle(e);this.content.items.setValue(this.dictionaryProperties.bBox,i),this.templateSize=t},Object.defineProperty(t.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){if(this.currentPosition=0,null==t)throw new Error("ArgumentNullException:text");this.text=t}return Object.defineProperty(t.prototype,"length",{get:function(){return this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.currentPosition===this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.currentPosition},set:function(t){this.currentPosition=t},enumerable:!0,configurable:!0}),t.getCharsCount=function(t,e){if("string"==typeof e){if(null==t)throw new Error("ArgumentNullException:wholeText");for(var i=0,r=0;-1!==(r=t.indexOf(e,r));)i++,r++;return i}if(null==t)throw new Error("ArgumentNullException:text");if(null==e)throw new Error("ArgumentNullException:symbols");for(var n=0,o=0,s=t.length;o<s;o++){var a=t[o];this.contains(e,a)&&n++}return n},t.prototype.readLine=function(){for(var t=this.currentPosition;t<this.length;){var e=this.text[t];switch(e){case"\r":case"\n":var i=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t+1,"\r"===e&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i}t++}if(t>this.currentPosition){var r=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,r}return null},t.prototype.peekLine=function(){var t=this.currentPosition,e=this.readLine();return this.currentPosition=t,e},t.prototype.readWord=function(){for(var t=this.currentPosition;t<this.length;){var e=this.text[t];switch(e){case"\r":case"\n":var i=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t+1,"\r"===e&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i;case" ":case"\t":t===this.currentPosition&&t++;var r=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,r}t++}if(t>this.currentPosition){var n=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,n}return null},t.prototype.peekWord=function(){var t=this.currentPosition,e=this.readWord();return this.currentPosition=t,e},t.prototype.read=function(t){if(void 0===t){var e="0";return this.end||(e=this.text[this.currentPosition],this.currentPosition++),e}for(var i=0,r="";!this.end&&i<t;){var e=this.read();r+=e,i++}return r},t.prototype.peek=function(){var t="0";return this.end||(t=this.text[this.currentPosition]),t},t.prototype.close=function(){this.text=null},t.prototype.readToEnd=function(){var t;return t=0===this.currentPosition?this.text:this.text.substr(this.currentPosition,this.length-this.currentPosition),this.currentPosition=this.length,t},t.contains=function(t,e){for(var i=!1,r=0;r<t.length;r++)if(t[r]===e){i=!0;break}return i},t.whiteSpace=" ",t.tab="\t",t.spaces=[t.whiteSpace,t.tab],t.whiteSpacePattern="^[ \t]+$",t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return s});var r=i(0),n=i(2),o=i(142),s=function(){function t(){}return Object.defineProperty(t.prototype,"width",{get:function(){return this.imageWidth},set:function(t){this.imageWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.imageHeight},set:function(t){this.imageHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{set:function(t){this.width=t.width,this.height=t.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"physicalDimension",{get:function(){return this.imagePhysicalDimension=this.getPointSize(this.width,this.height,this.horizontalResolution,this.verticalResolution),new r.b(this.width,this.height)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.imageStream},enumerable:!0,configurable:!0}),t.prototype.getPointSize=function(t,e,i,s){if(void 0===i){var a=o.a.horizontalResolution,h=o.a.verticalResolution,u=this.getPointSize(t,e,a,h);return u}var l=new o.a(i),c=new o.a(s),d=l.convertUnits(t,n.k.Pixel,n.k.Point),f=c.convertUnits(e,n.k.Pixel,n.k.Point),u=new r.b(d,f);return u},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return s}),i.d(e,"b",function(){return a});var r=i(15),n=i(2),o=i(9),s=function(){function t(){var t=new r.a(new o.a(0,0,0));t.dashStyle=n.g.Solid;var e=new r.a(new o.a(0,0,0));e.dashStyle=n.g.Solid;var i=new r.a(new o.a(0,0,0));i.dashStyle=n.g.Solid;var s=new r.a(new o.a(0,0,0));s.dashStyle=n.g.Solid,this.leftPen=t,this.rightPen=e,this.topPen=i,this.bottomPen=s}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftPen},set:function(t){this.leftPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightPen},set:function(t){this.rightPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topPen},set:function(t){this.topPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomPen},set:function(t){this.bottomPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"all",{set:function(t){this.leftPen=this.rightPen=this.topPen=this.bottomPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAll",{get:function(){return this.leftPen===this.rightPen&&this.leftPen===this.topPen&&this.leftPen===this.bottomPen},enumerable:!0,configurable:!0}),Object.defineProperty(t,"default",{get:function(){return new t},enumerable:!0,configurable:!0}),t}(),a=function(){function t(t,e,i,r){this.hasLeftPad=!1,this.hasRightPad=!1,this.hasTopPad=!1,this.hasBottomPad=!1,void 0===t?(this.leftPad=this.rightPad=5.76,this.bottomPad=this.topPad=.5):(this.leftPad=t,this.rightPad=e,this.topPad=i,this.bottomPad=r,this.hasLeftPad=!0,this.hasRightPad=!0,this.hasTopPad=!0,this.hasBottomPad=!0)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftPad},set:function(t){this.leftPad=t,this.hasLeftPad=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightPad},set:function(t){this.rightPad=t,this.hasRightPad=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topPad},set:function(t){this.topPad=t,this.hasTopPad=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomPad},set:function(t){this.bottomPad=t,this.hasBottomPad=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"all",{set:function(t){this.leftPad=this.rightPad=this.topPad=this.bottomPad=t,this.hasLeftPad=!0,this.hasRightPad=!0,this.hasTopPad=!0,this.hasBottomPad=!0},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return h}),i.d(e,"c",function(){return u}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return r});var r,n=i(30),o=i(58),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(){function t(){}return Object.defineProperty(t.prototype,"backgroundBrush",{get:function(){return this.gridBackgroundBrush},set:function(t){this.gridBackgroundBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textBrush",{get:function(){return this.gridTextBrush},set:function(t){this.gridTextBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textPen",{get:function(){return this.gridTextPen},set:function(t){this.gridTextPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.gridFont},set:function(t){this.gridFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.gridBackgroundImage},set:function(t){this.gridBackgroundImage=t},enumerable:!0,configurable:!0}),t}(),h=function(t){function e(){var e=t.call(this)||this;return e.gridBorderOverlapStyle=o.a.Overlap,e.bAllowHorizontalOverflow=!1,e.gridHorizontalOverflowType=r.LastPage,e}return s(e,t),Object.defineProperty(e.prototype,"cellSpacing",{get:function(){return void 0===this.gridCellSpacing&&(this.gridCellSpacing=0),this.gridCellSpacing},set:function(t){this.gridCellSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalOverflowType",{get:function(){return this.gridHorizontalOverflowType},set:function(t){this.gridHorizontalOverflowType=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowHorizontalOverflow",{get:function(){return this.bAllowHorizontalOverflow},set:function(t){this.bAllowHorizontalOverflow=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellPadding",{get:function(){return void 0===this.gridCellPadding&&(this.gridCellPadding=new n.b),this.gridCellPadding},set:function(t){void 0===this.gridCellPadding?(this.gridCellPadding=new n.b,this.gridCellPadding=t):this.gridCellPadding=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderOverlapStyle",{get:function(){return this.gridBorderOverlapStyle},set:function(t){this.gridBorderOverlapStyle=t},enumerable:!0,configurable:!0}),e}(a),u=function(t){function e(){var e=t.call(this)||this;return e.gridCellBorders=n.a.default,e}return s(e,t),Object.defineProperty(e.prototype,"stringFormat",{get:function(){return this.format},set:function(t){this.format=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borders",{get:function(){return this.gridCellBorders},set:function(t){this.gridCellBorders=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellPadding",{get:function(){return this.gridCellPadding},set:function(t){null!=this.gridCellPadding&&void 0!==this.gridCellPadding||(this.gridCellPadding=new n.b),this.gridCellPadding=t},enumerable:!0,configurable:!0}),e}(a),l=function(){function t(){}return Object.defineProperty(t.prototype,"backgroundBrush",{get:function(){return this.gridRowBackgroundBrush},enumerable:!0,configurable:!0}),t.prototype.setBackgroundBrush=function(t){if(this.gridRowBackgroundBrush=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.backgroundBrush=t},Object.defineProperty(t.prototype,"textBrush",{get:function(){return this.gridRowTextBrush},enumerable:!0,configurable:!0}),t.prototype.setTextBrush=function(t){if(this.gridRowTextBrush=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.textBrush=t},Object.defineProperty(t.prototype,"textPen",{get:function(){return this.gridRowTextPen},enumerable:!0,configurable:!0}),t.prototype.setTextPen=function(t){if(this.gridRowTextPen=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.textPen=t},Object.defineProperty(t.prototype,"font",{get:function(){return this.gridRowFont},enumerable:!0,configurable:!0}),t.prototype.setFont=function(t){if(this.gridRowFont=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.font=t},Object.defineProperty(t.prototype,"border",{get:function(){return void 0===this.gridRowBorder&&this.setBorder(new n.a),this.gridRowBorder},enumerable:!0,configurable:!0}),t.prototype.setBorder=function(t){if(this.gridRowBorder=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.borders=t},t.prototype.setParent=function(t){this.parent=t},Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.gridRowBackgroundImage},enumerable:!0,configurable:!0}),t.prototype.setBackgroundImage=function(t){this.gridRowBackgroundImage=t},t}();!function(t){t[t.NextPage=0]="NextPage",t[t.LastPage=1]="LastPage"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){this.mKeys=[],this.mValues=[]}return t.prototype.size=function(){return this.mKeys.length},t.prototype.add=function(t,e){if(void 0===t||null===t||void 0===e||null===e)throw new ReferenceError("Provided key or value is not valid.");if(this.mKeys.indexOf(t)<0)return this.mKeys.push(t),this.mValues.push(e),1;throw new RangeError("An item with the same key has already been added.")},t.prototype.keys=function(){return this.mKeys},t.prototype.values=function(){return this.mValues},t.prototype.getValue=function(t){if(void 0===t||null===t)throw new ReferenceError("Provided key is not valid.");var e=this.mKeys.indexOf(t);if(e<0)throw new RangeError("No item with the specified key has been added.");return this.mValues[e]},t.prototype.setValue=function(t,e){if(void 0===t||null===t)throw new ReferenceError("Provided key is not valid.");var i=this.mKeys.indexOf(t);i<0?(this.mKeys.push(t),this.mValues.push(e)):this.mValues[i]=e},t.prototype.remove=function(t){if(void 0===t||null===t)throw new ReferenceError("Provided key is not valid.");var e=this.mKeys.indexOf(t);if(e<0)throw new RangeError("No item with the specified key has been added.");return this.mKeys.splice(e,1),this.mValues.splice(e,1),!0},t.prototype.containsKey=function(t){if(void 0===t||null===t)throw new ReferenceError("Provided key is not valid.");return!(this.mKeys.indexOf(t)<0)},t.prototype.clear=function(){this.mKeys=[],this.mValues=[]},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.currentPosition=-1,this.value=t}return Object.defineProperty(t.prototype,"status",{get:function(){return this.objectStatus},set:function(t){this.objectStatus=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.saving},set:function(t){this.saving=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index},set:function(t){this.index=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.currentPosition},set:function(t){this.currentPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.boolToStr(this.value))},t.prototype.clone=function(e){return new t(this.value)},t.prototype.boolToStr=function(t){return t?"true":"false"},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(2),n=i(72),o=i(75),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e){var i=t.call(this)||this;return"number"==typeof e&&(i=t.call(this,e)||this),i}return s(e,t),Object.defineProperty(e.prototype,"colors",{get:function(){return this.mcolors},set:function(t){if(null==t)throw new Error("ArgumentNullException : Colors");this.mcolors=t},enumerable:!0,configurable:!0}),e.prototype.getFunction=function(t){var e=[0,1],i=this.getColorComponentsCount(t),r=this.getMaxComponentValue(t),o=this.setRange(i,r),s=null;if(null==this.mbrush&&void 0===this.mbrush){var a=[1],h=void 0,u=1;if(2===this.positions.length)h=2;else{var l=this.positions,c=this.getIntervals(l),d=this.gcd(c);u=d,h=1/d+1}a[0]=h;var f=this.getSamplesValues(t,h,r,u);return s=new n.a(e,o,a,f)}return s},e.prototype.cloneColorBlend=function(){var t=this;return null!=this.mcolors&&void 0!==this.mcolors&&(t.colors=this.mcolors),null!=this.positions&&void 0!==this.positions&&(t.positions=this.positions),t},e.prototype.setRange=function(t,e){for(var i=[2*t],r=0;r<t;++r)i[2*r]=0,i[2*r+1]=1;return i},e.prototype.getColorComponentsCount=function(t){var e=0;switch(t){case r.i.Rgb:e=3;break;case r.i.Cmyk:e=4;break;case r.i.GrayScale:e=1;break;default:throw new Error("ArgumentException - Unsupported color space: "+t+" colorSpace")}return e},e.prototype.getSamplesValues=function(t,e,i,n){var o;switch(t){case r.i.GrayScale:o=this.getGrayscaleSamples(e,i,n);break;case r.i.Cmyk:o=this.getCmykSamples(e,i,n);break;case r.i.Rgb:o=this.getRgbSamples(e,i,n);break;default:throw new Error("ArgumentException - Unsupported color space: "+t+" colorSpace")}return o},e.prototype.getGrayscaleSamples=function(t,e,i){for(var n=[2*t],o=0;o<t;++o){this.getNextColor(o,i,r.i.GrayScale)}return n},e.prototype.getRgbSamples=function(t,e,i){for(var n=[3*t],o=0;o<t;++o){var s=this.getNextColor(o,i,r.i.Rgb),a=3*o;n[a]=s.r,n[a+1]=s.g,n[a+2]=s.b}return n},e.prototype.getCmykSamples=function(t,e,i){for(var n=[4*t],o=0;o<t;o++){var s=this.getNextColor(o,i,r.i.Cmyk),a=4*o;n[a]=s.c*e,n[a+1]=s.m*e,n[a+2]=s.y*e,n[a+3]=s.k*e}return n},e.prototype.getNextColor=function(t,e,i){var r,n,o=e*t,s=this.getIndices(o,n,r);n=s.indexLow,r=s.indexHi;var a;if(n===r)a=this.mcolors[n];else{var h=this.positions[n],u=this.positions[r],l=this.mcolors[n],c=this.mcolors[r],d=(o-h)/(u-h);a=this.interpolate(d,l,c,i)}return a},e.prototype.getIndices=function(t,e,i){var r=this.positions;e=0,i=0;for(var n=0;n<this.mcolors.length;++n){var o=r[n];if(o===t){i=n,e=n;break}if(o>t){i=n;break}e=n,i=n}return{indexLow:e,indexHi:i}},e.prototype.getMaxComponentValue=function(t){var e=0;switch(t){case r.i.Cmyk:case r.i.Rgb:e=255;break;case r.i.GrayScale:e=65535;break;default:throw new Error("ArgumentException - Unsupported color space: "+t+"colorSpace")}return e},e.prototype.getIntervals=function(t){for(var e=t.length,i=[e-1],r=t[0],n=1;n<e;++n){var o=t[n];i[n-1]=o-r,r=o}return i},e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return s});var r=i(0),n=i(12),o=i(30),s=function(){function t(){}return Object.defineProperty(t.prototype,"raiseBeginPageLayout",{get:function(){return void 0!==this.beginPageLayout},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"raiseEndPageLayout",{get:function(){return void 0!==this.endPageLayout},enumerable:!0,configurable:!0}),t.prototype.onBeginPageLayout=function(t){this.beginPageLayout&&this.beginPageLayout(this,t)},t.prototype.onEndPageLayout=function(t){this.endPageLayout&&this.endPageLayout(this,t)},t.prototype.drawHelper=function(t,e,i,s){if(e instanceof r.a&&void 0===e.width&&void 0===i)return this.drawHelper(t,e.x,e.y);if("number"==typeof e&&"number"==typeof i&&void 0===s)return this.drawHelper(t,e,i,null);if(e instanceof r.c&&void 0!==e.width&&void 0===i)return this.drawHelper(t,e,null);if(e instanceof r.a&&void 0===e.width&&i instanceof n.b)return this.drawHelper(t,e.x,e.y,i);if("number"==typeof e&&"number"==typeof i&&(s instanceof n.b||null==s)){var a=t.graphics.clientSize.width-e,h=new r.c(e,i,a,0);return this.drawHelper(t,h,s)}if(e instanceof r.c&&void 0!==e.width&&"boolean"==typeof i)return this.bEmbedFonts=i,this.drawHelper(t,e,null);var u=new n.c,l=e,c=i;if(u.page=t,u.bounds=l,null!=u){var d=u.bounds.x,f=u.bounds.y;0===u.bounds.x&&(d=o.a.default.right.width/2),0===u.bounds.y&&(f=o.a.default.top.width/2);var p=new r.c(d,f,u.bounds.width,u.bounds.height);u.bounds=p}return u.format=null!=c?c:new n.b,this.layout(u)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return h}),i.d(e,"c",function(){return u});var r=i(22),n=i(7),o=i(6),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(){function t(){this.lineGap=0}return t.prototype.getAscent=function(t){return this.ascent*r.a.charSizeMultiplier*this.getSize(t)},t.prototype.getDescent=function(t){return this.descent*r.a.charSizeMultiplier*this.getSize(t)},t.prototype.getLineGap=function(t){return this.lineGap*r.a.charSizeMultiplier*this.getSize(t)},t.prototype.getHeight=function(t){for(var e=["cambria","candara","constantia","corbel","cariadings"],i=[],r=0;r<e.length;r++){var n=e[r];i.push(n)}return this.getDescent(t)<0?this.getAscent(t)-this.getDescent(t)+this.getLineGap(t):this.getAscent(t)+this.getDescent(t)+this.getLineGap(t)},t.prototype.getSize=function(t){var e=this.size;if(null!=t)switch(t.subSuperScript){case n.e.SubScript:e/=this.subScriptSizeFactor;break;case n.e.SuperScript:e/=this.superscriptSizeFactor}return e},t.prototype.clone=function(){var t=this;return t.widthTable=h.clone(),t},Object.defineProperty(t.prototype,"widthTable",{get:function(){return this.internalWidthTable},set:function(t){this.internalWidthTable=t},enumerable:!0,configurable:!0}),t}(),h=function(){function t(){}return t.clone=function(){return null},t}(),u=function(t){function e(e){var i=t.call(this)||this;if(null==e)throw new Error("ArgumentNullException:widths");return i.widths=e,i}return s(e,t),e.prototype.items=function(t){if(t<0||t>=this.widths.length)throw new Error("ArgumentOutOfRangeException:index, The character is not supported by the font.");return this.widths[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.widths.length},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var t=this;return t.widths=this.widths,t},e.prototype.toArray=function(){return new o.a(this.widths)},e}(h)},function(t,e,i){"use strict";i.d(e,"a",function(){return c});var r=i(7),n=i(22),o=i(20),s=i(79),a=i(4),h=i(1),u=i(3),l=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),c=function(t){function e(i,n,o){var s=t.call(this,n,void 0===o?i instanceof e?i.style:r.a.Regular:o)||this;return s.dictionaryProperties=new h.a,s.encodings=["Unknown","StandardEncoding","MacRomanEncoding","MacExpertEncoding","WinAnsiEncoding","PDFDocEncoding","IdentityH"],s.pdfFontFamily=void 0===i?r.b.Helvetica:i instanceof e?i.fontFamily:i,s.checkStyle(),s.initializeInternals(),s}return l(e,t),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.pdfFontFamily},enumerable:!0,configurable:!0}),e.prototype.checkStyle=function(){if(this.fontFamily===r.b.Symbol||this.fontFamily===r.b.ZapfDingbats){var t=this.style;t&=~(r.a.Bold|r.a.Italic),this.setStyle(t)}},e.prototype.getLineWidth=function(t,i){if(null==t)throw new Error("ArgumentNullException:line");var r=0;this.name;t=e.convert(t);for(var o=0,s=t.length;o<s;o++){var a=t[o];r+=this.getCharWidthInternal(a,i)}var h=this.metrics.getSize(i);return r*=n.a.charSizeMultiplier*h,r=this.applyFormatSettings(t,i,r)},e.prototype.equalsToFont=function(t){var e=!1,i=t;if(null!=i){var n=this.fontFamily===i.fontFamily,o=~(r.a.Underline|r.a.Strikeout),s=(this.style&o)==(i.style&o);e=n&&s}return e},e.prototype.initializeInternals=function(){o.a.cache.search(this);var t=null,e=s.a.getMetrics(this.pdfFontFamily,this.style,this.size);this.metrics=e,t=this.createInternals(),this.setInternals(t)},e.prototype.createInternals=function(){var t=new a.a;if(t.items.setValue(this.dictionaryProperties.type,new u.a(this.dictionaryProperties.font)),t.items.setValue(this.dictionaryProperties.subtype,new u.a(this.dictionaryProperties.type1)),t.items.setValue(this.dictionaryProperties.baseFont,new u.a(this.metrics.postScriptName)),this.fontFamily!==r.b.Symbol&&this.fontFamily!==r.b.ZapfDingbats){var e=this.encodings[r.f.WinAnsiEncoding];t.items.setValue(this.dictionaryProperties.encoding,new u.a(e))}return t},e.prototype.getCharWidthInternal=function(t,i){var r=0;return r=t.charCodeAt(0),"0"!==this.name&&"1"!==this.name&&"2"!==this.name&&"3"!==this.name&&"4"!==this.name||(r-=e.charOffset),r=r>=0&&128!==r?r:0,this.metrics.widthTable.items(r)},e.convert=function(t){return t},e.charOffset=32,e}(n.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.mPosition=0,this.buffer=new Uint8Array(t),this.dataView=new DataView(this.buffer.buffer)}return Object.defineProperty(t.prototype,"position",{get:function(){return this.mPosition},set:function(t){this.mPosition=t},enumerable:!0,configurable:!0}),t.prototype.read=function(t,e,i){for(var r=e;r<i;r++){var n=this.position;t.buffer[r]=this.readByte(n),this.position++}},t.prototype.getBuffer=function(t){return this.buffer[t]},t.prototype.writeFromBase64String=function(t){var e=this.encodedString(t);this.buffer=e},t.prototype.encodedString=function(t){var e,i,r,n,o,s,a,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,l=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");var c=3*t.length/4;t.charAt(t.length-1)===h.charAt(64)&&c--;for(var d=new Uint8Array(0|c);u<t.length;)n=h.indexOf(t.charAt(u++)),o=h.indexOf(t.charAt(u++)),s=h.indexOf(t.charAt(u++)),a=h.indexOf(t.charAt(u++)),e=n<<2|o>>4,i=(15&o)<<4|s>>2,r=(3&s)<<6|a,d[l++]=e,d[l++]=i,d[l++]=r;return d},t.prototype.readByte=function(t){return this.buffer[t]},Object.defineProperty(t.prototype,"internalBuffer",{get:function(){return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.buffer.byteLength},enumerable:!0,configurable:!0}),t.prototype.readNextTwoBytes=function(t){var e=t.readByte(this.position);return this.position++,e<<=8,e|=t.readByte(this.position),this.position++,e},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(48),n=i(38),o=i(1),s=i(29),a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e){var i=t.call(this)||this;return i.imageStatus=!0,i.dictionaryProperties=new o.a,i.loadImage(e),i}return a(e,t),e.prototype.loadImage=function(t){this.initializeAsync(t)},e.prototype.initializeAsync=function(t){var e=new n.a(t.length);e.writeFromBase64String(t),this.decoder=new r.b(e),this.height=this.decoder.height,this.width=this.decoder.width,this.bitsPerComponent=this.decoder.bitsPerComponent},e.prototype.save=function(){this.imageStatus=!0,this.imageStream=this.decoder.getImageDictionary()},e}(s.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return b}),i.d(e,"b",function(){return w});var r=i(4),n=i(32),o=i(3),s=i(6),a=i(8),h=i(51),u=i(22),l=i(27),c=i(11),d=i(49),f=i(39),p=i(29),g=i(26),m=i(46),y=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),b=function(t){function e(e){var i=t.call(this,e)||this;return i.properties=new r.a,i}return y(e,t),Object.defineProperty(e.prototype,"names",{get:function(){return this.getNames()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t},enumerable:!0,configurable:!0}),e.prototype.getName=function(t){var e=t.element,i=null;if(this.names.containsKey(e)&&(i=this.names.getValue(e)),null==i){var r=this.generateName();i=new o.a(r),this.names.setValue(e,i),t instanceof u.a?this.add(t,i):t instanceof l.a?this.add(t,i):t instanceof g.a||t instanceof m.a?this.add(t,i):t instanceof d.a?this.add(t,i):(t instanceof p.a||t instanceof f.a)&&this.add(t,i)}return i},e.prototype.getNames=function(){null==this.pdfNames&&(this.pdfNames=new n.a);var t=this.items.getValue(this.dictionaryProperties.font);if(null!=t){h.a.dereference(t)}return this.pdfNames},e.prototype.requireProcedureSet=function(t){if(null==t)throw new Error("ArgumentNullException:procedureSetName");var e=this.items.getValue(this.dictionaryProperties.procset);null==e&&(e=new s.a,this.items.setValue(this.dictionaryProperties.procset,e));var i=new o.a(t);e.contains(i)||e.add(i)},e.prototype.removeFont=function(t){for(var e=null,i=this.pdfNames.keys(),r=0;r<this.pdfNames.size();r++)if(this.pdfNames.getValue(i[r])===new o.a(t)){e=i[r];break}null!=e&&this.pdfNames.remove(e)},e.prototype.generateName=function(){return w.getNewGuidString()},e.prototype.add=function(t,e){if(t instanceof u.a){var i=null,n=this.items.getValue(this.dictionaryProperties.font);if(null!=n){var o=n;i=n,i=n}else i=new r.a,this.items.setValue(this.dictionaryProperties.font,i);i.items.setValue(e.value,new a.b(t.element))}else if(t instanceof l.a){var s=void 0;s=this.items.getValue(this.dictionaryProperties.xObject),null==s&&(s=new r.a,this.items.setValue(this.dictionaryProperties.xObject,s)),s.items.setValue(e.value,new a.b(t.element))}else if(t instanceof c.a){if(t instanceof g.a||t instanceof m.a){var h=t.element;if(null!=h){var f=this.items.getValue(this.dictionaryProperties.pattern);null==f&&(f=new r.a,this.items.setValue(this.dictionaryProperties.pattern,f)),f.items.setValue(e.value,new a.b(h))}}}else if(t instanceof d.a){var h=t.element,p=null;p=this.items.getValue(this.dictionaryProperties.extGState),null==p&&(p=new r.a,this.items.setValue(this.dictionaryProperties.extGState,p)),p.items.setValue(e.value,new a.b(h))}else{var s=this.Dictionary.items.getValue(this.dictionaryProperties.xObject),y=void 0;void 0!==this.pdfDocument&&(y=this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.getValue(this.dictionaryProperties.xObject));var b=(this.Dictionary.items.values(),!1),w=void 0;if(void 0===this.pdfDocument||void 0!==typeof y&&null!=y){if(void 0!==this.pdfDocument)for(var v=y.items.values(),S=0;S<v.length;S++)void 0!==v[S]&&void 0!==v[S].element&&v[S].element.data[0]===t.element.data[0]&&(w=v[S],b=!0)}else y=new r.a,this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.setValue(this.dictionaryProperties.xObject,y);if(null==s&&(s=new r.a,this.Dictionary.items.setValue(this.dictionaryProperties.xObject,s)),b&&void 0!==w)s.items.setValue(e.value,w);else{var o=new a.b(t.element);s.items.setValue(e.value,o),void 0!==this.pdfDocument&&y.items.setValue(e.value,o)}}},e}(r.a),w=function(){function t(){}return t.getNewGuidString=function(){return"aaaaaaaa-aaaa-4aaa-baaa-aaaaaaaaaaaa".replace(/[ab]/g,function(t){var e=16*Math.random()|0;return("a"===t?e:3&e|8).toString(16)})},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return p}),i.d(e,"b",function(){return g}),i.d(e,"c",function(){return m}),i.d(e,"d",function(){return y}),i.d(e,"e",function(){return b}),i.d(e,"f",function(){return w}),i.d(e,"g",function(){return v}),i.d(e,"h",function(){return S}),i.d(e,"i",function(){return P}),i.d(e,"j",function(){return C}),i.d(e,"k",function(){return B}),i.d(e,"l",function(){return O});var r=i(57),n=i(23),o=i(0),s=i(30),a=i(21),h=i(12),u=i(31),l=i(32),c=i(14),d=i(20),f=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),p=function(t){function e(e){var i=t.call(this,e)||this;return i.gridInitialWidth=0,i.gridSize=new o.b(0,0),i.parentCellIndex=0,i.tempWidth=0,i.childheight=0,i.isChildGrid=!1,i.hasRowSpanSpan=!1,i.isRearranged=!1,i.pageBounds=new o.c,i.listOfNavigatePages=[],i.flag=!0,i.columnRanges=[],i.currentLocation=new o.a(0,0),i.breakRow=!0,i.slr=null,i.remainderText=null,i.isPaginate=!1,i.isOverloadWithPosition=!1,i}return f(e,t),Object.defineProperty(e.prototype,"Grid",{get:function(){return this.elements},enumerable:!0,configurable:!0}),e.prototype.getFormat=function(t){return t},e.prototype.layoutInternal=function(t){var e=this.getFormat(t.format);if(this.gridLayoutFormat=this.getFormat(t.format),this.currentPage=t.page,null===this.currentPage)throw Error("Can not set page as null");this.currentPage.getClientSize().height,this.currentPage.getClientSize().width;this.currentPageBounds=this.currentPage.getClientSize(),this.currentGraphics=this.currentPage.graphics;var i=0;if(i=this.currentGraphics.page.section.indexOf(this.currentGraphics.page),this.listOfNavigatePages.push(i),null!=e&&e.break===a.b.FitColumnsToPage?this.currentBounds=new o.c(new o.a(t.bounds.x,t.bounds.y),new o.b(this.Grid.columns.width,this.currentGraphics.clientSize.height)):this.currentBounds=new o.c(new o.a(t.bounds.x,t.bounds.y),this.currentGraphics.clientSize),0!==this.Grid.rows.count)this.currentBounds.width=t.bounds.width>0?t.bounds.width:this.currentBounds.width-this.Grid.rows.getRow(0).cells.getCell(0).style.borders.left.width/2;else{if(0===this.Grid.headers.count)throw Error("Please add row or header into grid");this.currentBounds.width=t.bounds.width}if(this.startLocation=new o.a(t.bounds.x,t.bounds.y),t.bounds.height>0&&!this.Grid.isChildGrid&&(this.currentBounds.height=t.bounds.height),this.Grid.isChildGrid||(this.hType=this.Grid.style.horizontalOverflowType),this.Grid.style.allowHorizontalOverflow?(this.Grid.measureColumnsWidth(),this.determineColumnDrawRanges()):(this.columnRanges=[],void 0===this.Grid.isChildGrid||(this.Grid.isChildGrid,0)?this.Grid.measureColumnsWidth(new o.c(this.currentBounds.x,this.currentBounds.y,this.currentBounds.x+this.currentBounds.width,this.currentBounds.height)):this.Grid.measureColumnsWidth(this.currentBounds),this.columnRanges.push([0,this.Grid.columns.count-1])),this.Grid.hasRowSpanSpan)for(var r=0;r<this.Grid.rows.count;r++)-1===this.Grid.rows.getRow(r).height||this.Grid.rows.getRow(r).isRowHeightSet||(this.Grid.rows.getRow(r).isRowHeightSet=!0);return this.layoutOnPage(t)},e.prototype.determineColumnDrawRanges=function(){for(var t=0,e=0,i=0,r=this.currentGraphics.clientSize.width-this.currentBounds.x,n=0;n<this.Grid.columns.count;n++)if((i+=this.Grid.columns.getColumn(n).width)>=r){for(var o=0,s=t;s<=n&&!((o+=this.Grid.columns.getColumn(s).width)>r);s++)e=s;this.columnRanges.push([t,e]),t=e+1,e=t,i=e<=n?this.Grid.columns.getColumn(n).width:0}this.columnRanges.push([t,this.Grid.columns.count-1])},e.prototype.layoutOnPage=function(t){this.pageBounds.x=t.bounds.x,this.pageBounds.y=t.bounds.y,this.pageBounds.height=t.bounds.height;for(var i=this.getFormat(t.format),n=null,h=null,c=new l.a,d=t.page,f=[],p=0;p<this.columnRanges.length;p++){var g=this.columnRanges[p];this.cellStartIndex=g[0],this.cellEndIndex=g[1];var m=this.raiseBeforePageLayout(this.currentPage,this.currentBounds,this.currentRowIndex);this.currentBounds=m.currentBounds,this.currentRowIndex=m.currentRowIndex;for(var y=void 0,b=0;b<this.Grid.headers.count;b++){var w=this.Grid.headers.getHeader(b),v=this.currentBounds.y;if(this.isHeader=!0,d!=this.currentPage)for(var S=this.cellStartIndex;S<=this.cellEndIndex;S++)w.cells.getCell(S).isCellMergeContinue&&(w.cells.getCell(S).isCellMergeContinue=!1,w.cells.getCell(S).value="");var P=this.drawRow(w);v===this.currentBounds.y?(y=!0,-1===e.repeatRowIndex&&(e.repeatRowIndex=b)):y=!1,!P.isFinish&&null!==d&&i.layout!==a.a.OnePage&&y&&(this.startLocation.x=this.currentBounds.x,this.currentPage=this.getNextPageformat(i),this.startLocation.y=this.currentBounds.y,void 0!==i.paginateBounds&&0===i.paginateBounds.x&&0===i.paginateBounds.y&&0===i.paginateBounds.width&&0===i.paginateBounds.height&&(this.currentBounds.x+=this.startLocation.x),this.drawRow(w)),this.isHeader=!1}var C=0,B=(this.Grid.rows.count,void 0),O=!0;f=[];for(var x=0;x<this.Grid.rows.count;x++){var w=this.Grid.rows.getRow(x);C++,this.currentRowIndex=C-1;var L=this.currentBounds.y;d=this.currentPage,e.repeatRowIndex=-1,O&&w.grid.isChildGrid&&(L,O=!1);var j=null;if(-1==this.Grid.splitChildRowIndex)j=this.drawRow(w),w.isrowFinish=!0;else{if(!(w.grid.ParentCell.row.grid.isGridSplit&&this.Grid.splitChildRowIndex<=w.rowIndex)){if(w.isrowFinish)continue;break}j=this.drawRow(w),w.isrowFinish=!0}for(f.push(j.bounds.width),L===this.currentBounds.y?(B=!0,e.repeatRowIndex=this.Grid.rows.rowCollection.indexOf(w)):(B=!1,e.repeatRowIndex=-1);!j.isFinish&&null!=d;){var V=this.getLayoutResult();if(n=this.raisePageLayouted(V),n.cancel||B)break;if(this.Grid.allowRowBreakAcrossPages){this.currentPage=this.getNextPageformat(i),L=this.currentBounds.y;var k=new o.a(s.a.default.right.width/2,s.a.default.top.width/2);if(0===i.paginateBounds.x&&0===i.paginateBounds.y&&0===i.paginateBounds.width&&0===i.paginateBounds.height&&this.startLocation.x===k.x&&this.startLocation.y===k.y&&(this.currentBounds.x+=this.startLocation.x,this.currentBounds.y+=this.startLocation.y),this.isPaginate&&(this.startLocation.y=this.currentBounds.y,this.isPaginate=!1),this.Grid.isChildGrid&&null!=w.grid.ParentCell&&null!=this.Grid.ParentCell.row.grid.style.cellPadding&&w.rowBreakHeight+this.Grid.ParentCell.row.grid.style.cellPadding.top<this.currentBounds.height&&(this.currentBounds.y=this.Grid.ParentCell.row.grid.style.cellPadding.top),null!=w.grid.ParentCell){w.grid.ParentCell.row.isRowBreaksNextPage=!0,w.grid.ParentCell.row.rowBreakHeightValue=w.rowBreakHeight+this.Grid.ParentCell.row.grid.style.cellPadding.top+this.Grid.ParentCell.row.grid.style.cellPadding.bottom;for(var T=w.rowIndex+1;T<w.grid.rows.count;T++)w.grid.ParentCell.row.rowBreakHeightValue+=w.grid.rows.getRow(T).height}if(w.grid.isChildGrid){w.isrowFinish=!1,w.grid.splitChildRowIndex=w.rowIndex,w.grid.ParentCell.row.grid.splitChildRowIndex=w.grid.ParentCell.row.rowIndex,w.grid.ParentCell.row.grid.isGridSplit&&(w.grid.ParentCell.row.noOfPageCount+=1,w.grid.ParentCell.row.grid.isGridSplit=!1);break}if(w.noOfPageCount<1){if(-1!=w.grid.splitChildRowIndex&&(w.grid.isGridSplit=!0),null!=w.style.border&&(null!=w.style.border.left&&1!==w.style.border.left.width||null!=w.style.border.top&&1!==w.style.border.top.width)){var R=w.style.border.left.width/2,M=w.style.border.top.width/2;if(this.currentBounds.x===s.a.default.right.width/2&&this.currentBounds.y===s.a.default.right.width/2){var N=new o.c(R,M,this.currentBounds.width,this.currentBounds.height);this.currentBounds=N}}if(this.Grid.repeatHeader)for(var I=0;I<this.Grid.headers.count;I++){var A=this.Grid.headers.getHeader(I);this.drawRow(A)}if(j=this.drawRow(w),w.noOfPageCount>=1)for(var D=(w.rowBreakHeightValue,0);D<w.noOfPageCount;D++){var E=this.getLayoutResult();if(n=this.raisePageLayouted(E),this.currentPage=this.getNextPageformat(i),L=this.currentBounds.y,-1!=w.grid.splitChildRowIndex&&(w.grid.isGridSplit=!0),this.currentBounds.y=.5,this.Grid.repeatHeader)for(var F=0;F<this.Grid.headers.count;F++){var G=this.Grid.headers.getHeader(F);this.drawRow(G)}this.drawRow(w)}w.grid.splitChildRowIndex=-1,w.grid.isGridSplit=!1,j.isFinish=this.checkIsFisished(w);for(var _=0;_<w.cells.count;_++)w.cells.getCell(_).value instanceof r.a&&(w.cells.getCell(_).value.splitChildRowIndex=-1)}}}if(!j.isFinish&&null!==d&&i.layout!==a.a.OnePage&&B){this.startLocation.x=this.currentBounds.x;if(this.currentPage=this.getNextPageformat(i),this.raiseBeforePageLayout(this.currentPage,this.currentBounds,this.currentRowIndex).returnValue)break;if(null!==t.format&&!t.format.usePaginateBounds&&null!==t.bounds&&t.bounds.height>0&&!this.Grid.isChildGrid&&(this.currentBounds.height=t.bounds.height),void 0===t.format||null==t.format||void 0===t.format.usePaginateBounds||t.format.usePaginateBounds||0===t.format.paginateBounds.x&&0===t.format.paginateBounds.y&&0===t.format.paginateBounds.width&&0===t.format.paginateBounds.height||0!==t.format.paginateBounds.y?(this.currentBounds.y=null==i?0:i.paginateBounds.y,null==i||0===i.paginateBounds.x&&0===i.paginateBounds.y&&0===i.paginateBounds.height&&0===i.paginateBounds.width||(this.currentBounds.x=i.paginateBounds.x,this.currentBounds.width=i.paginateBounds.width,this.currentBounds.height=i.paginateBounds.height)):this.currentBounds.y=s.a.default.top.width/2,void 0!==t.format&&null!==t.format&&void 0!==t.format.usePaginateBounds&&!t.format.usePaginateBounds&&null!==t.bounds&&t.bounds.y>0&&!this.Grid.isChildGrid&&(this.currentBounds.y=t.bounds.y),this.startLocation.y=this.currentBounds.y,i.paginateBounds.x===i.paginateBounds.y&&i.paginateBounds.y===i.paginateBounds.height&&i.paginateBounds.height===i.paginateBounds.width&&0===i.paginateBounds.width&&(this.currentBounds.x+=this.startLocation.x),this.currentBounds.x===s.a.default.left.width/2&&(this.currentBounds.y+=this.startLocation.x),this.Grid.repeatHeader)for(var z=0;z<this.Grid.headers.count;z++){var G=this.Grid.headers.getHeader(z);this.drawRow(G)}this.drawRow(w),null===this.currentPage||c.containsKey(this.currentPage)||c.add(this.currentPage,g)}if(null!=w.NestedGridLayoutResult){this.currentPage=w.NestedGridLayoutResult.page,this.currentGraphics=this.currentPage.graphics,this.startLocation=new o.a(w.NestedGridLayoutResult.bounds.x,w.NestedGridLayoutResult.bounds.y);var W=this.ReCalculateHeight(w,w.NestedGridLayoutResult.bounds.height);if(this.currentBounds.y=W,d!=this.currentPage){for(var H=this.currentPage.section,U=H.indexOf(d)+1,K=H.indexOf(this.currentPage),q=U;q<K+1;q++){var Y=this.currentPage.graphics,X=new o.a(i.paginateBounds.x,i.paginateBounds.y),J=q==K?w.NestedGridLayoutResult.bounds.height-t.bounds.y:this.currentBounds.height-X.y;J<=Y.clientSize.height&&(J+=t.bounds.y),X.y=null==i?.5:i.paginateBounds.y;for(var Z=0;Z<w.cells.count;Z++){var $=w.cells.getCell(Z),Q=0,tt=0;if($.value instanceof r.a)for(var et=0;et<$.value.columns.count;et++)tt+=$.value.columns.getColumn(et).columnWidth;else tt=$.width;Q=Math.max(tt,w.grid.columns.getColumn(Z).width),$.drawCellBorders(Y,new o.c(X,new o.b(Q,J))),X.x+=Q,Z+=$.columnSpan-1}}d=this.currentPage}}}var it=!1,rt=0;f.length>0&&(rt=f[0]);for(var nt=[[1,2]],Z=0;Z<this.Grid.rows.count;Z++)if(-1!=this.cellEndIndex&&this.Grid.rows.getRow(Z).cells.getCell(this.cellEndIndex).value instanceof r.a){var ot=this.Grid.rows.getRow(Z).cells.getCell(this.cellEndIndex).value;this.rowLayoutBoundsWidth=ot.rowLayoutBoundsWidth,it=!0}if(!it&&f.length>0){for(var Z=0;Z<C-1;Z++)rt<f[Z]&&(rt=f[Z]);this.rowLayoutBoundsWidth=rt}else this.rowLayoutBoundsWidth=nt[0][1];if(this.columnRanges.indexOf(g)<this.columnRanges.length-1&&null!=d&&i.layout!=a.a.OnePage)if(this.Grid.isChildGrid,0!=nt[0][0]){var st=this.currentPage.section;st.indexOf(this.currentPage);this.currentGraphics=this.currentPage.graphics,this.currentBounds=new o.c(new o.a(0,0),this.currentPage.getClientSize());this.currentGraphics.page.section.indexOf(this.currentGraphics.page)}else this.currentPage=this.getNextPageformat(i);this.columnRanges.length-1!==p&&this.columnRanges.length>1&&i.layout!==a.a.OnePage&&(this.currentPage=this.getNextPageformat(i),i.paginateBounds.x===i.paginateBounds.y&&i.paginateBounds.y===i.paginateBounds.height&&i.paginateBounds.height===i.paginateBounds.width&&0===i.paginateBounds.width&&(this.currentBounds.x+=this.startLocation.x,this.currentBounds.y+=this.startLocation.y))}return h=this.getLayoutResult(),this.Grid.style.allowHorizontalOverflow&&this.Grid.style.horizontalOverflowType==u.e.NextPage&&this.reArrangePages(c),this.raisePageLayouted(h),h},e.prototype.checkIsFisished=function(t){for(var e=!0,i=0;i<t.cells.count;i++)t.cells.getCell(i).FinishedDrawingCell||(e=!1);return e},e.prototype.getNextPageformat=function(t){var e=this.currentPage.section,i=null,r=e.indexOf(this.currentPage);this.flag=!1,i=r===e.count-1?e.add():e.getPages()[r+1],this.currentGraphics=i.graphics;var n=this.currentGraphics.page.section.indexOf(this.currentGraphics.page);return-1===this.listOfNavigatePages.indexOf(n)&&this.listOfNavigatePages.push(n),this.currentBounds=new o.c(new o.a(0,0),i.getClientSize()),void 0!==t&&null!=t&&t.usePaginateBounds&&void 0!==t.paginateBounds&&null!=t.paginateBounds&&t.paginateBounds.x!==t.paginateBounds.y&&t.paginateBounds.y!==t.paginateBounds.height&&t.paginateBounds.height!==t.paginateBounds.width&&0!==t.paginateBounds.width&&(this.currentBounds.x=t.paginateBounds.x,this.currentBounds.y=t.paginateBounds.y,this.currentBounds.height=t.paginateBounds.height),i},e.prototype.CheckIfDefaultFormat=function(t){var e=new n.a;return t.alignment===e.alignment&&t.characterSpacing===e.characterSpacing&&t.clipPath===e.clipPath&&t.firstLineIndent===e.firstLineIndent&&t.horizontalScalingFactor===e.horizontalScalingFactor&&t.lineAlignment===e.lineAlignment&&t.lineLimit===e.lineLimit&&t.lineSpacing===e.lineSpacing&&t.measureTrailingSpaces===e.measureTrailingSpaces&&t.noClip===e.noClip&&t.paragraphIndent===e.paragraphIndent&&t.rightToLeft===e.rightToLeft&&t.subSuperScript===e.subSuperScript&&t.wordSpacing===e.wordSpacing&&t.wordWrap===e.wordWrap},e.prototype.RaiseBeforeCellDraw=function(t,e,i,r,n,o){var s=null;return this.Grid.raiseBeginCellDraw&&(s=new b(t,e,i,r,n,o),this.Grid.onBeginCellDraw(s),o=s.style),o},e.prototype.raiseAfterCellDraw=function(t,e,i,r,n,o){var s=null;this.Grid.raiseEndCellDraw&&(s=new w(t,e,i,r,n,o),this.Grid.onEndCellDraw(s))},e.prototype.reArrangePages=function(t){for(var e=this.currentPage.document,i=[],r=t.keys(),n=(t.values(),0);n<r.length;n++){var o=r[n];o.section=null,i.push(o),e.pages.remove(o)}for(var n=0;n<t.size();n++)for(var s=n,a=t.size()/this.columnRanges.length;s<t.size();s+=a){var o=i[s];void 0!==o&&-1===e.pages.indexOf(o)&&e.pages.add(o)}},e.prototype.getLayoutResult=function(){if(this.Grid.isChildGrid&&this.Grid.allowRowBreakAcrossPages)for(var t=0;t<this.Grid.rows.count;t++){var e=this.Grid.rows.getRow(t);e.rowBreakHeight>0&&e.repeatFlag&&(this.startLocation.y=this.currentPage.origin.y)}var i;return this.isChanged||(i=new o.c(this.startLocation,new o.b(this.currentBounds.width,this.currentBounds.y-this.startLocation.y))),new g(this.currentPage,i)},e.prototype.ReCalculateHeight=function(t,e){for(var i=0,r=this.cellStartIndex;r<=this.cellEndIndex;r++)null!==t.cells.getCell(r).remainingString&&""!==t.cells.getCell(r).remainingString&&void 0!==t.cells.getCell(r).remainingString&&(i=Math.max(i,t.cells.getCell(r).measureHeight()));return Math.max(e,i)},e.prototype.raiseBeforePageLayout=function(t,e,i){var r=!1;if(this.Grid.raiseBeginPageLayout){var n=new C(e,t,i);this.Grid.onBeginPageLayout(n),r=void 0!==n.cancel&&n.cancel,e=n.bounds,i=n.startRowIndex}return{returnValue:r,currentBounds:e,currentRowIndex:i}},e.prototype.raisePageLayouted=function(t){var e=new B(t);return this.Grid.raiseEndPageLayout&&this.Grid.onEndPageLayout(e),e},e.prototype.drawRow=function(t,i,n){if(void 0===i){var s=new O,h=0,u=(new o.a(0,0),new o.b(0,0)),l=!1;if(t.rowSpanExists){var c=0,d=this.Grid.rows.rowCollection.indexOf(t);-1===d&&-1!==(d=this.Grid.headers.indexOf(t))&&(l=!0);for(var f=0;f<t.cells.count;f++){var p=t.cells.getCell(f);c=Math.max(c,p.rowSpan)}for(var f=d;f<d+c;f++)h+=l?this.Grid.headers.getHeader(f).height:this.Grid.rows.getRow(f).height}var g=t.rowBreakHeight>0?t.rowBreakHeight:t.height;if(void 0!==this.Grid.isChildGrid&&this.Grid.isChildGrid&&void 0!==this.Grid.ParentCell&&null!=this.Grid.ParentCell)this.currentBounds.y+this.Grid.ParentCell.row.grid.style.cellPadding.bottom+g>this.currentPageBounds.height||this.currentBounds.y+this.Grid.ParentCell.row.grid.style.cellPadding.bottom+g>this.currentBounds.height||this.currentBounds.y+this.Grid.ParentCell.row.grid.style.cellPadding.bottom+h>this.currentPageBounds.height?(void 0!==this.Grid.ParentCell.row.grid.LayoutFormat&&this.Grid.ParentCell.row.grid.LayoutFormat.break===a.b.FitPage&&(e.repeatRowIndex=this.Grid.rows.rowCollection.indexOf(t),this.Grid.splitChildRowIndex=this.Grid.rows.rowCollection.indexOf(t)),e.repeatRowIndex>-1&&e.repeatRowIndex===t.rowIndex&&this.Grid.allowRowBreakAcrossPages&&(s.isFinish=!0,s.bounds=this.currentBounds,this.drawRowWithBreak(s,t,g),t.repeatFlag=!0,t.repeatRowNumber=e.repeatRowIndex)):(s.isFinish=!0,t.grid.ParentCell.row.rowBreakHeightValue>0?t.repeatFlag=!0:(t.repeatFlag=!1,g=t.height),this.Grid.isChildGrid&&t.rowBreakHeight>0&&null!=this.Grid.ParentCell.row.grid.style.cellPadding&&(g+=this.Grid.ParentCell.row.grid.style.cellPadding.bottom),this.drawRow(t,s,g));else if(g>this.currentPageBounds.height)this.Grid.allowRowBreakAcrossPages&&(s.isFinish=!0,this.drawRowWithBreak(s,t,g),t.isrowFinish=!0,t.repeatFlag=!0,-1!==t.grid.splitChildRowIndex&&(s.isFinish=!1));else if(this.currentBounds.y+g>this.currentPageBounds.height||this.currentBounds.y+g>this.currentBounds.height+this.startLocation.y||this.currentBounds.y+h>this.currentPageBounds.height){var m=!1;!this.Grid.allowRowBreakAcrossPages||this.Grid.repeatHeader||t.isRowHeightSet||t.rowMergeComplete?this.Grid.allowRowBreakAcrossPages&&null!=this.Grid.LayoutFormat&&this.Grid.LayoutFormat.layout==a.a.Paginate&&this.Grid.LayoutFormat.break!=a.b.FitElement&&t.isRowHeightSet&&this.currentBounds.y+n>this.currentPageBounds.height&&(m=this.isFitToCell(this.currentPageBounds.height-this.currentBounds.y,this.Grid,t),m||(m=!(null!==this.slr&&0==this.slr.actualSize.height&&null!=this.slr.remainder&&this.slr.remainder.length>0&&this.remainderText==this.slr.remainder)),m&&null!=this.slr&&this.slr.lineCount>1&&(m=!1),this.remainderText=null):(m=null!==this.Grid.LayoutFormat&&this.Grid.LayoutFormat.paginateBounds.height>0?this.isFitToCell(this.currentBounds.height+this.startLocation.y-this.currentBounds.y,this.Grid,t):this.isFitToCell(this.currentPageBounds.height-this.currentBounds.y,this.Grid,t))&&(this.isPaginate=!0),e.repeatRowIndex>-1&&e.repeatRowIndex===t.rowIndex||m?this.Grid.allowRowBreakAcrossPages?(s.isFinish=!0,this.drawRowWithBreak(s,t,g),t.repeatFlag=!0,t.repeatRowNumber=e.repeatRowIndex,-1!==t.grid.splitChildRowIndex&&(s.isFinish=!1)):(s.isFinish=!1,this.drawRow(t,s,g)):s.isFinish=!1}else s.isFinish=!0,this.drawRow(t,s,g),t.repeatFlag=!1;return s}var y=new o.a(this.currentBounds.x,this.currentBounds.y);i.bounds=new o.c(y,new o.b(0,0)),n=this.ReCalculateHeight(t,n);for(var f=this.cellStartIndex;f<=this.cellEndIndex;f++){var b=f>this.cellEndIndex+1&&t.cells.getCell(f).columnSpan>1;if(!b)for(var w=1;w<t.cells.getCell(f).columnSpan;w++)t.cells.getCell(f+w).isCellMergeContinue=!0;var u=new o.b(this.Grid.columns.getColumn(f).width,n);!this.CheckIfDefaultFormat(this.Grid.columns.getColumn(f).format)&&this.CheckIfDefaultFormat(t.cells.getCell(f).stringFormat)&&(t.cells.getCell(f).stringFormat=this.Grid.columns.getColumn(f).format);var v=t.cells.getCell(f).style,S="string"==typeof t.cells.getCell(f).value&&null!==t.cells.getCell(f).value?t.cells.getCell(f).value:"";if(t.cells.getCell(f).style=this.RaiseBeforeCellDraw(this.currentGraphics,this.currentRowIndex,f,new o.c(y,u),S,v),t.cells.getCell(f).value instanceof r.a){var P=t.cells.getCell(f).value;P.parentCellIndex=f}var C=t.cells.getCell(f).draw(this.currentGraphics,new o.c(y,u),b);if(t.grid.style.allowHorizontalOverflow&&(t.cells.getCell(f).columnSpan>this.cellEndIndex||f+t.cells.getCell(f).columnSpan>this.cellEndIndex+1)&&this.cellEndIndex<t.cells.count-1&&(t.rowOverflowIndex=this.cellEndIndex),t.grid.style.allowHorizontalOverflow&&t.rowOverflowIndex>0&&(t.cells.getCell(f).columnSpan>this.cellEndIndex||f+t.cells.getCell(f).columnSpan>this.cellEndIndex+1)&&t.cells.getCell(f).columnSpan-this.cellEndIndex+f-1>0&&(t.cells.getCell(t.rowOverflowIndex+1).value=null!==C&&void 0!==C.remainder?C.remainder:"",t.cells.getCell(t.rowOverflowIndex+1).stringFormat=t.cells.getCell(f).stringFormat,t.cells.getCell(t.rowOverflowIndex+1).style=t.cells.getCell(f).style,t.cells.getCell(t.rowOverflowIndex+1).columnSpan=t.cells.getCell(f).columnSpan-this.cellEndIndex+f-1),S="string"==typeof t.cells.getCell(f).value&&null!==t.cells.getCell(f).value?t.cells.getCell(f).value:"",b||this.raiseAfterCellDraw(this.currentGraphics,this.currentRowIndex,f,new o.c(y,u),S,t.cells.getCell(f).style),t.cells.getCell(f).value instanceof r.a){var P=t.cells.getCell(f).value;this.Grid.columns.getColumn(f).width>=this.currentGraphics.clientSize.width?(y.x=P.rowLayoutBoundsWidth,y.x+=P.style.cellSpacing):y.x+=this.Grid.columns.getColumn(f).width}else y.x+=this.Grid.columns.getColumn(f).width}t.rowMergeComplete&&!t.isRowHeightSet||(this.currentBounds.y+=n),i.bounds=new o.c(new o.a(i.bounds.x,i.bounds.y),new o.b(y.x,y.y))},e.prototype.isFitToCell=function(t,e,i){for(var r=!1,n=new c.a,s=0;s<i.cells.count;s++){var a=i.cells.getCell(s);if(void 0!==a.value&&null!==a.value&&"string"==typeof a.value){var h=null;h=void 0!==a.style.font&&null!=a.style.font?a.style.font:void 0!==a.row.style.font&&null!=a.row.style.font?a.row.style.font:void 0!==a.row.grid.style.font&&null!=a.row.grid.style.font?a.row.grid.style.font:d.a.defaultFont,this.remainderText=a.value;var u=a.width,l=e.columns.getColumn(s);l.isCustomWidth&&a.width>l.width&&(u=l.width),this.slr=n.layout(a.value,h,a.stringFormat,new o.b(u,t),!1,this.currentPageBounds);var f=this.slr.actualSize.height;if(""!==a.value&&0===f){r=!1;break}if(null!==a.style&&null!==a.style.borders&&null!==a.style.borders.top&&null!==a.style.borders.bottom&&(f+=2*(a.style.borders.top.width+a.style.borders.bottom.width)),this.slr.lineCount>1&&null!=a.stringFormat&&0!=a.stringFormat.lineSpacing&&(f+=(this.slr.lineCount-1)*a.style.stringFormat.lineSpacing),a.style.cellPadding,f+=e.style.cellPadding.top+e.style.cellPadding.bottom,f+=e.style.cellSpacing,t>f||void 0!==this.slr.remainder&&null!==this.slr.remainder){r=!0;break}}}return r},e.prototype.drawRowWithBreak=function(t,e,i){var n=new o.a(this.currentBounds.x,this.currentBounds.y);e.grid.isChildGrid&&e.grid.allowRowBreakAcrossPages&&this.startLocation.x!==this.currentBounds.x&&(n.x=this.startLocation.x),t.bounds=new o.c(n,new o.b(0,0)),this.gridHeight=e.rowBreakHeight>0?this.currentPageBounds.height:0,e.grid.style.cellPadding.top+this.currentBounds.y+e.grid.style.cellPadding.bottom<this.currentPageBounds.height&&(e.rowBreakHeight=this.currentBounds.y+i-this.currentPageBounds.height);for(var s=0;s<e.cells.count;s++){var a=e.cells.getCell(s);a.measureHeight()===i&&a.value instanceof r.a&&(e.rowBreakHeight=0)}for(var s=this.cellStartIndex;s<=this.cellEndIndex;s++){var h=this.Grid.columns.getColumn(s).width,u=e.cells.getCell(s).columnSpan+s>this.cellEndIndex+1&&e.cells.getCell(s).columnSpan>1;if(!u)for(var l=1;l<e.cells.getCell(s).columnSpan;l++)e.cells.getCell(s+l).isCellMergeContinue=!0,h+=this.Grid.columns.getColumn(s+l).width;var c=new o.b(h,this.gridHeight>0?this.gridHeight:this.currentPageBounds.height),d=e.cells.getCell(s).style;e.cells.getCell(s).style=d;var f=null;if(e.cells.getCell(s)._rowHeight=e.height,f=e.cells.getCell(s).draw(this.currentGraphics,new o.c(n,c),u),e.rowBreakHeight>0&&null!=f&&void 0!==f.remainder&&(e.cells.getCell(s).FinishedDrawingCell=!1,e.cells.getCell(s).remainingString=null==f.remainder?" ":f.remainder,e.rowBreakHeight=i-f.actualSize.height),t.isFinish=t.isFinish?e.cells.getCell(s).FinishedDrawingCell:t.isFinish,e.cells.getCell(s).value instanceof r.a){var p=e.cells.getCell(s).value;this.rowBreakPageHeightCellIndex=s,this.Grid.columns.getColumn(s).width>=this.currentGraphics.clientSize.width?(n.x=this.rowLayoutBoundsWidth,n.x+=p.style.cellSpacing):n.x+=this.Grid.columns.getColumn(s).width}else n.x+=this.Grid.columns.getColumn(s).width}this.currentBounds.y+=this.gridHeight>0?this.gridHeight:i,t.bounds=new o.c(new o.a(t.bounds.x,t.bounds.y),new o.b(n.x,n.y))},e.repeatRowIndex=-1,e}(h.a),g=function(t){function e(e,i){return t.call(this,e,i)||this}return f(e,t),e}(h.d),m=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e}(h.b),y=function(){function t(t,e,i,r,n){this.gridRowIndex=e,this.gridCellIndex=i,this.internalValue=n,this.gridBounds=r,this.pdfGraphics=t}return Object.defineProperty(t.prototype,"rowIndex",{get:function(){return this.gridRowIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellIndex",{get:function(){return this.gridCellIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.internalValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.gridBounds},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){return this.pdfGraphics},enumerable:!0,configurable:!0}),t}(),b=function(t){function e(e,i,r,n,o,s){var a=t.call(this,e,i,r,n,o)||this;return a.style=s,a}return f(e,t),Object.defineProperty(e.prototype,"skip",{get:function(){return this.bSkip},set:function(t){this.bSkip=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.cellStyle},set:function(t){this.cellStyle=t},enumerable:!0,configurable:!0}),e}(y),w=function(t){function e(e,i,r,n,o,s){var a=t.call(this,e,i,r,n,o)||this;return a.cellStyle=s,a}return f(e,t),Object.defineProperty(e.prototype,"style",{get:function(){return this.cellStyle},enumerable:!0,configurable:!0}),e}(y),v=function(){function t(){}return Object.defineProperty(t.prototype,"cancel",{get:function(){return this.isCancel},set:function(t){this.isCancel=t},enumerable:!0,configurable:!0}),t}(),S=function(t){function e(e,i){var r=t.call(this)||this;return r.bounds=e,r.pdfPage=i,r}return f(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.cellBounds},set:function(t){this.cellBounds=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),e}(v),P=function(t){function e(e){var i=t.call(this)||this;return i.layoutResult=e,i}return f(e,t),Object.defineProperty(e.prototype,"result",{get:function(){return this.layoutResult},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextPage",{get:function(){return this.nextPdfPage},set:function(t){this.nextPdfPage=t},enumerable:!0,configurable:!0}),e}(v),C=function(t){function e(e,i,r){var n=t.call(this,e,i)||this;return n.startRow=r,n}return f(e,t),Object.defineProperty(e.prototype,"startRowIndex",{get:function(){return this.startRow},enumerable:!0,configurable:!0}),e}(S),B=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e}(P),O=function(){function t(){this.layoutedBounds=new o.c(0,0,0,0)}return Object.defineProperty(t.prototype,"isFinish",{get:function(){return this.bIsFinished},set:function(t){this.bIsFinished=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.layoutedBounds},set:function(t){this.layoutedBounds=t},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return s});var r=i(65),n=i(3),o=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),s=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.dictionary.items.setValue(this.dictionaryProperties.subtype,new n.a(this.dictionaryProperties.link))},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return f});var r=i(25),n=i(0),o=i(78),s=i(66),a=i(14),h=i(7),u=i(2),l=i(6),c=i(5),d=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f=function(t){function e(){var e=t.call(this)||this;e.uniformResourceLocator="",e.uriAnnotation=null,e.recalculateBounds=!1,e.defaultBorder=new l.a;for(var i=0;i<3;i++)e.defaultBorder.add(new c.a(0));return e}return d(e,t),Object.defineProperty(e.prototype,"url",{get:function(){return this.uniformResourceLocator},set:function(t){if(0===t.length)throw new Error("ArgumentException : Url - string can not be empty");this.uniformResourceLocator=t},enumerable:!0,configurable:!0}),e.prototype.draw=function(t,e){if(t instanceof r.a){var i=new a.a,o=this.font.style;if(e instanceof n.a){this.recalculateBounds=!0,this.font.style=h.a.Underline;var u=i.layout(this.value,this.font,this.stringFormat,new n.b(t.graphics.clientSize.width-e.x,0),!0,t.graphics.clientSize);if(1===u.lines.length){var l=this.font.measureString(this.value),c=new n.c(e,l);c=this.calculateBounds(c,l.width,t.graphics.clientSize.width,e.x),this.uriAnnotation=new s.a(c,this.url),this.uriAnnotation.dictionary.items.setValue("Border",this.defaultBorder),t.annotations.add(this.uriAnnotation);var d=this.drawText(t,e);return this.font.style=o,d}var d=this.drawMultipleLineWithPoint(u,t,e);return this.font.style=o,d}var u=i.layout(this.value,this.font,this.stringFormat,new n.b(e.width,0),!1,new n.b(0,0));if(this.font.style=h.a.Underline,1===u.lines.length){var l=this.font.measureString(this.value),c=new n.c(new n.a(e.x,e.y),l);c=this.calculateBounds(c,l.width,e.width,e.x),this.uriAnnotation=new s.a(c,this.url),this.uriAnnotation.dictionary.items.setValue("Border",this.defaultBorder),t.annotations.add(this.uriAnnotation);var f=this.drawText(t,e);return this.font.style=o,f}var f=this.drawMultipleLineWithBounds(u,t,e);return this.font.style=o,f}var p=new r.a;return p=t.page,this.draw(p,e)},e.prototype.drawMultipleLineWithPoint=function(t,e,i){for(var r,o=0;o<t.layoutLines.length;o++){var a=this.font.measureString(t.lines[o].text),h=new n.c(i,a);if(0!==o&&(h.x=0),this.text=t.lines[o].text,h.y+a.height>e.graphics.clientSize.height){if(0===o)break;e=e.graphics.getNextPage(),h=new n.c(0,0,e.graphics.clientSize.width,a.height),i.y=0}h=this.calculateBounds(h,a.width,e.graphics.clientSize.width,h.x),this.uriAnnotation=new s.a(h,this.url),this.uriAnnotation.dictionary.items.setValue("Border",this.defaultBorder),e.annotations.add(this.uriAnnotation),r=0!==o?this.drawText(e,new n.a(0,h.y)):this.drawText(e,h.x,h.y),i.y+=a.height}return r},e.prototype.drawMultipleLineWithBounds=function(t,e,i){for(var r,o=0;o<t.layoutLines.length;o++){var a=this.font.measureString(t.lines[o].text),h=new n.c(new n.a(i.x,i.y),a);if(h=this.calculateBounds(h,a.width,i.width,i.x),this.text=t.lines[o].text,i.y+a.height>e.graphics.clientSize.height){if(0===o)break;e=e.graphics.getNextPage(),i=new n.c(i.x,0,i.width,a.height),h.y=0}this.uriAnnotation=new s.a(h,this.url),this.uriAnnotation.dictionary.items.setValue("Border",this.defaultBorder),e.annotations.add(this.uriAnnotation),r=this.drawText(e,i),i.y+=a.height}return r},e.prototype.calculateBounds=function(t,e,i,r){return null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===u.c.Center?(t.x=r+(i-e)/2,t.width=e):null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===u.c.Right?(t.x=r+(i-e),t.width=e):null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===u.c.Justify?(t.x=r,t.width=i):(t.width=r,t.width=e),t},e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var r=i(4),n=i(1),o=i(3),s=i(8),a=i(69),h=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=function(t){function e(){var e=t.call(this)||this;return e.sections=null,e.tempDictionaryProperties=new n.a,e.items.setValue((new n.a).type,new o.a("Catalog")),e}return h(e,t),Object.defineProperty(e.prototype,"pages",{get:function(){return this.sections},set:function(t){t.element;this.sections=t,this.items.setValue(this.tempDictionaryProperties.pages,new s.b(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewerPreferences",{get:function(){return null!==this._viewerPreferences&&void 0!==this._viewerPreferences||(this._viewerPreferences=new a.a(this),this.items.setValue(this.tempDictionaryProperties.viewerPreferences,new s.b(this._viewerPreferences.element))),this._viewerPreferences},enumerable:!0,configurable:!0}),e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(19),n=function(){function t(){}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftTemplate},set:function(t){this.leftTemplate=this.checkElement(t,r.f.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topTemplate},set:function(t){this.topTemplate=this.checkElement(t,r.f.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightTemplate},set:function(t){this.rightTemplate=this.checkElement(t,r.f.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomTemplate},set:function(t){this.bottomTemplate=this.checkElement(t,r.f.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenLeft",{get:function(){return this.evenLeft},set:function(t){this.evenLeft=this.checkElement(t,r.f.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenTop",{get:function(){return this.evenTop},set:function(t){this.evenTop=this.checkElement(t,r.f.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenRight",{get:function(){return this.evenRight},set:function(t){this.evenRight=this.checkElement(t,r.f.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenBottom",{get:function(){return this.evenBottom},set:function(t){this.evenBottom=this.checkElement(t,r.f.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddLeft",{get:function(){return this.oddLeft},set:function(t){this.oddLeft=this.checkElement(t,r.f.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddTop",{get:function(){return this.oddTop},set:function(t){this.oddTop=this.checkElement(t,r.f.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddRight",{get:function(){return this.oddRight},set:function(t){this.oddRight=this.checkElement(t,r.f.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddBottom",{get:function(){return this.oddBottom},set:function(t){this.oddBottom=this.checkElement(t,r.f.Bottom)},enumerable:!0,configurable:!0}),t.prototype.getLeft=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenLeft?this.EvenLeft:this.left:null!=this.OddLeft?this.OddLeft:this.left},t.prototype.getTop=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenTop?this.EvenTop:this.top:null!=this.OddTop?this.OddTop:this.top},t.prototype.getRight=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenRight?this.EvenRight:this.right:null!=this.OddRight?this.OddRight:this.right},t.prototype.getBottom=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenBottom?this.EvenBottom:this.bottom:null!=this.OddBottom?this.OddBottom:this.bottom},t.prototype.isEven=function(t){var e=t.section.document.pages;return(e.pageCollectionIndex.containsKey(t)?e.pageCollectionIndex.getValue(t)+1:e.indexOf(t)+1)%2==0},t.prototype.checkElement=function(t,e){if(null!=t){if(void 0!==t.type&&t.type!==r.f.None)throw new Error("NotSupportedException:Can not reassign the template element. Please, create new one.");t.type=e}return t},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return f});var r=i(24),n=i(11),o=i(0),s=i(1),a=i(6),h=i(5),u=i(40),l=i(13),c=i(25),d=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f=function(t){function e(e,i){var r=t.call(this)||this;r.mStroking=!1,r.mLocation=new o.a(0,0),r.mDictionaryProperties=new s.a;var n=null;return e instanceof o.d?n=e:e instanceof o.b&&(n=new o.d(0,0,e.width,e.height)),null!==i&&i instanceof c.a&&(r.mPage=i),r.brushStream=new l.a,r.mResources=new u.a,r.brushStream.items.setValue(r.mDictionaryProperties.resources,r.mResources),r.setBox(n),r.setObligatoryFields(),null!==i&&i instanceof c.a&&(r.mPage=i,r.graphics.colorSpace=i.document.colorSpace),r}return d(e,t),e.prototype.initialize=function(t,e,i,r){this.mPage=e,this.mLocation=i,this.mTransformationMatrix=r,this.tempBrushStream=this.brushStream,this.brushStream=new l.a;var n=new u.a;return this.brushStream.items.setValue(this.mDictionaryProperties.resources,n),this.setBox(t),this.setObligatoryFields(),this},Object.defineProperty(e.prototype,"location",{get:function(){return this.mLocation},set:function(t){this.mLocation=t},enumerable:!0,configurable:!0}),e.prototype.setObligatoryFields=function(){if(this.brushStream.items.setValue(this.mDictionaryProperties.patternType,new h.a(1)),this.brushStream.items.setValue(this.mDictionaryProperties.paintType,new h.a(1)),this.brushStream.items.setValue(this.mDictionaryProperties.tilingType,new h.a(1)),this.brushStream.items.setValue(this.mDictionaryProperties.xStep,new h.a(this.mBox.right-this.mBox.left)),this.brushStream.items.setValue(this.mDictionaryProperties.yStep,new h.a(this.mBox.bottom-this.mBox.top)),null!=this.mPage&&null!=this.mLocation)if(null==this.mTransformationMatrix&&void 0===this.mTransformationMatrix){var t=this.mPage.size.height%this.rectangle.size.height-this.mLocation.y;this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new a.a([1,0,0,1,this.mLocation.x,t]))}else{var t=0,e=this.mTransformationMatrix.matrix.elements;t=this.mPage.size.height>this.rectangle.size.height?this.mTransformationMatrix.matrix.offsetY-this.mPage.size.height%this.rectangle.size.height:this.mPage.size.height%this.rectangle.size.height+this.mTransformationMatrix.matrix.offsetY,this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new a.a([e[0],e[1],e[2],e[3],e[4],t]))}},e.prototype.setBox=function(t){this.mBox=t;var e=new o.c(this.mBox.left,this.mBox.top,this.mBox.right,this.mBox.bottom);this.brushStream.items.setValue(this.mDictionaryProperties.bBox,a.a.fromRectangle(e))},Object.defineProperty(e.prototype,"rectangle",{get:function(){return this.mBox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.mBox.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){if(null==this.mGraphics&&void 0===this.mGraphics){var t=new r.b(this),e=new r.a(this.size,t,this.brushStream);this.mGraphics=e,this.mResources=this.getResources(),this.mGraphics.initializeCoordinates()}return this.mGraphics},enumerable:!0,configurable:!0}),e.prototype.getResources=function(){return this.mResources},Object.defineProperty(e.prototype,"stroking",{get:function(){return this.mStroking},set:function(t){this.mStroking=t},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var t=this.initialize(this.rectangle,this.mPage,this.location,this.mTransformationMatrix);return null!=this.mTransformationMatrix&&null!=this.mTransformationMatrix.matrix&&t.brushStream.items.setValue(this.mDictionaryProperties.matrix,new a.a(this.mTransformationMatrix.matrix.elements)),t.brushStream.data=this.tempBrushStream.data,t.mResources=new u.a(this.mResources),t.brushStream.items.setValue(this.mDictionaryProperties.resources,t.mResources),t},e.prototype.monitorChanges=function(t,i,r,n,o){var s=!1;if(t!==this){i.setColorSpace("Pattern",this.mStroking);var a=r.getResources(),h=a.getName(this);i.setColourWithPattern(null,h,this.mStroking),s=!0}else if(t instanceof e){i.setColorSpace("Pattern",this.mStroking);var u=r.getResources(),l=u.getName(this);i.setColourWithPattern(null,l,this.mStroking),s=!0}return s},e.prototype.resetChanges=function(t){},Object.defineProperty(e.prototype,"element",{get:function(){return this.brushStream},enumerable:!0,configurable:!0}),e}(n.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(17),n=i(81),o=i(2),s=i(80),a=function(){function t(){this.openBracket="(",this.closeBracket=")"}return t.prototype.layout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");var o=[];return e.Unicode?o=this.customLayout(t,i,n,e,r):(o=[],o[0]=t),o},t.prototype.splitLayout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");return this.customSplitLayout(t,e,i,r,n)},t.prototype.getGlyphIndex=function(t,e,i,r,o){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");if(r=null,0===t.length)return{success:!1,glyphs:r};var s=new n.a,a=s.shape(t,0),h=e.fontInternal,u=h.ttfReader;r=new Uint16Array(a.length);for(var l=0,c=0,d=a.length;c<d;c++){var f=a[c],p=u.getGlyph(f);null!==p&&void 0!==p&&(r[l++]=p.index)}return{success:!0,glyphs:r}},t.prototype.customLayout=function(t,e,i,r,a){if(null===a||void 0===a){if(null==t)throw new Error("ArgumentNullException : line");var h=null;if(null!==i&&void 0!==i&&i.textDirection!==o.m.None){h=(new s.a).getLogicalToVisualString(t,e)}return h}if(null==t)throw new Error("ArgumentNullException : line");if(null==r)throw new Error("ArgumentNullException : font");var u=null;if(null!==i&&void 0!==i&&i.textDirection!==o.m.None){var l=new n.a,c=l.shape(t,0);u=this.customLayout(c,e,i)}var h=[];if(a){for(var d=u.split(""),f=d.length,p=0;p<f;p++)d[p]=this.addChars(r,d[p]);h=d}else h=[],h[0]=this.addChars(r,u);return h},t.prototype.addChars=function(t,e){var i=e;if(null==t)throw new Error("ArgumentNullException : font");if(null==i)throw new Error("ArgumentNullException : line");var n=i,o=t.fontInternal,s=o.ttfReader;t.setSymbols(n),n=s.convertString(n);var a=r.b.toUnicodeArray(n,!1);return n=r.b.byteToString(a)},t.prototype.customSplitLayout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");return this.customLayout(t,i,n).split("")},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return c});var r,n=i(38),o=i(13),s=i(1),a=i(3),h=i(5),u=i(33),l=i(4);!function(t){t[t.Unknown=0]="Unknown",t[t.Bmp=1]="Bmp",t[t.Emf=2]="Emf",t[t.Gif=3]="Gif",t[t.Jpeg=4]="Jpeg",t[t.Png=5]="Png",t[t.Wmf=6]="Wmf",t[t.Icon=7]="Icon"}(r||(r={}));var c=function(){function t(t){this.sof1Marker=193,this.sof2Marker=194,this.sof3Marker=195,this.sof5Marker=197,this.sof6Marker=198,this.sof7Marker=199,this.sof9Marker=201,this.sof10Marker=202,this.sof11Marker=203,this.sof13Marker=205,this.sof14Marker=206,this.sof15Marker=207,this.mFormat=r.Unknown,this.mbitsPerComponent=8,this.dictionaryProperties=new s.a,this.mStream=t,this.initialize()}return Object.defineProperty(t.prototype,"height",{get:function(){return this.mHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.mWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bitsPerComponent",{get:function(){return this.mbitsPerComponent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.mImageData.count},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageData",{get:function(){return this.mImageData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageDataAsNumberArray",{get:function(){return this.mImageData.internalBuffer.buffer},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){if(this.mFormat!==r.Unknown||!this.checkIfJpeg())throw new TypeError("Only the JPEG format is supported");this.mFormat=r.Jpeg,this.parseJpegImage(),this.reset(),this.mImageData=new n.a(this.mStream.count),this.mStream.read(this.mImageData,0,this.mImageData.count)},t.prototype.reset=function(){this.mStream.position=0},t.prototype.parseJpegImage=function(){this.reset();var t=new n.a(this.mStream.count);this.mStream.read(t,0,t.count);for(var e=4,i=!1,r=256*t.getBuffer(e)+t.getBuffer(e+1);e<t.count;){if(!((e+=r)<t.count)){i=!0;break}if(192===t.getBuffer(e+1))return this.mHeight=256*t.getBuffer(e+5)+t.getBuffer(e+6),void(this.mWidth=256*t.getBuffer(e+7)+t.getBuffer(e+8));e+=2,r=256*t.getBuffer(e)+t.getBuffer(e+1)}i&&(this.mStream.position=0,this.skip(this.mStream,2),this.readExceededJPGImage(this.mStream))},Object.defineProperty(t.prototype,"format",{get:function(){return this.mFormat},enumerable:!0,configurable:!0}),t.prototype.checkIfJpeg=function(){this.reset();for(var e=0;e<t.mJpegHeader.length;e++){if(t.mJpegHeader[e]!==this.mStream.readByte(e))return!1;this.mStream.position++}return!0},t.prototype.getImageDictionary=function(){if(this.mFormat===r.Jpeg){this.imageData.internalBuffer.length;this.imageStream=new o.a,this.imageStream.isResource=!0;for(var t="",e="",i=0;i<this.imageDataAsNumberArray.byteLength;i++)t+=String.fromCharCode(null,this.mStream.readByte(i));for(var i=0;i<t.length;i++)i%2!=0&&(e+=t[i]);return this.imageStream.data=[e],this.imageStream.compress=!1,this.imageStream.items.setValue(this.dictionaryProperties.type,new a.a(this.dictionaryProperties.xObject)),this.imageStream.items.setValue(this.dictionaryProperties.subtype,new a.a(this.dictionaryProperties.image)),this.imageStream.items.setValue(this.dictionaryProperties.width,new h.a(this.width)),this.imageStream.items.setValue(this.dictionaryProperties.height,new h.a(this.height)),this.imageStream.items.setValue(this.dictionaryProperties.bitsPerComponent,new h.a(this.bitsPerComponent)),this.imageStream.items.setValue(this.dictionaryProperties.filter,new a.a(this.dictionaryProperties.dctdecode)),this.imageStream.items.setValue(this.dictionaryProperties.colorSpace,new a.a(this.getColorSpace())),this.imageStream.items.setValue(this.dictionaryProperties.decodeParms,this.getDecodeParams()),this.imageStream}return this.imageStream},t.prototype.getColorSpace=function(){return this.dictionaryProperties.deviceRgb},t.prototype.getDecodeParams=function(){var t=new l.a;return t.items.setValue(this.dictionaryProperties.columns,new h.a(this.width)),t.items.setValue(this.dictionaryProperties.blackIs1,new u.a(!0)),t.items.setValue(this.dictionaryProperties.k,new h.a(-1)),t.items.setValue(this.dictionaryProperties.predictor,new h.a(15)),t.items.setValue(this.dictionaryProperties.bitsPerComponent,new h.a(this.bitsPerComponent)),t},t.prototype.readExceededJPGImage=function(t){this.mStream=t;for(var e=!0;e;){switch(this.getMarker(t)){case this.sof1Marker:case this.sof2Marker:case this.sof3Marker:case this.sof5Marker:case this.sof6Marker:case this.sof7Marker:case this.sof9Marker:case this.sof10Marker:case this.sof11Marker:case this.sof13Marker:case this.sof14Marker:case this.sof15Marker:t.position+=3,this.mHeight=this.mStream.readNextTwoBytes(t),this.mWidth=this.mStream.readNextTwoBytes(t),e=!1;break;default:this.skipStream(t)}}},t.prototype.skip=function(t,e){this.mStream=t;var i=new n.a(e);this.mStream.read(i,0,i.count)},t.prototype.getMarker=function(t){var e=0,i=32;for(i=t.readByte(this.mStream.position),t.position++;255!==i;)e++,i=t.readByte(this.mStream.position),t.position++;do{i=t.readByte(this.mStream.position),t.position++}while(255===i);return i},t.prototype.skipStream=function(t){var e=this.mStream.readNextTwoBytes(t)-2;e>0&&(t.position+=e)},t.mPngHeader=[137,80,78,71,13,10,26,10],t.mJpegHeader=[255,216],t.GIF_HEADER="G,I,F,8",t.BMP_HEADER="B,M",t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(4),n=i(5),o=i(3),s=i(1),a=function(){function t(t,e,i){this.dictionary=new r.a,this.dictionaryProperties=new s.a,this.dictionary.items.setValue(this.dictionaryProperties.CA,new n.a(t)),this.dictionary.items.setValue(this.dictionaryProperties.ca,new n.a(e)),this.dictionary.items.setValue(this.dictionaryProperties.BM,new o.a(i.toString()))}return Object.defineProperty(t.prototype,"element",{get:function(){return this.dictionary},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r;!function(t){t[t.None=0]="None",t[t.Registered=1]="Registered"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return f}),i.d(e,"b",function(){return p});var r=i(50),n=i(4),o=i(1),s=i(16),a=i(10),h=i(8),u=i(84),l=i(13),c=i(5),d=i(44),f=function(){function t(){this.objects=new a.a,this.maxGenNumIndex=0,this.objectCount=0,this.dictionaryProperties=new o.a}return Object.defineProperty(t.prototype,"isMerging",{get:function(){return this.merging},set:function(t){this.merging=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailer",{get:function(){return null==this.internalTrailer&&(this.internalTrailer=new l.a),this.internalTrailer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t,this.items=this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pdfObjects",{get:function(){return this.items},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollection",{get:function(){return this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.objectCount},set:function(t){this.objectCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextObjNumber",{get:function(){return this.count=this.count+1,this.count},enumerable:!0,configurable:!0}),t.prototype.save=function(t,e){this.saveHead(t);this.mappedReferences=null,this.objects.clear(),this.markTrailerReferences(),this.saveObjects(t);var i=this.count,r=t.position;this.registerObject(0,new h.a(0,-1),!0);t.write(s.a.xref),t.write(s.a.newLine),this.saveSections(t),this.saveTrailer(t,this.count,0),this.saveTheEndess(t,r),this.count=i;for(var n=0;n<this.objectCollection.count;++n){this.objectCollection.items(n).object.isSaving=!1}if(void 0===e)return t.stream.buffer;t.stream.save(e)},t.prototype.saveTheEndess=function(t,e){t.write(s.a.newLine+s.a.startxref+s.a.newLine),t.write(e.toString()+s.a.newLine),t.write(s.a.eof+s.a.newLine)},t.prototype.saveTrailer=function(t,e,i){t.write(s.a.trailer+s.a.newLine);var r=this.trailer;r.items.setValue(this.dictionaryProperties.size,new c.a(this.objectCount+1)),r=new n.a(r),r.setEncrypt(!1),r.save(t)},t.prototype.saveSections=function(t){var e=0,i=0;do{i=this.prepareSubsection(e),this.saveSubsection(t,e,i),e+=i}while(0!==i)},t.prototype.saveSubsection=function(t,e,i){if(!(i<=0||e>=this.count)){t.write(e+" "+(i+1)+s.a.newLine);for(var r=e;r<=e+i;++r){var n=this.objects.getValue(r),o="";o=n.type===u.a.Free?this.getItem(n.offset,65535,!0):this.getItem(n.offset,n.generation,!1),t.write(o)}}},t.prototype.getItem=function(t,e,i){var r="",n=10-t.toString().length;e<=0&&(e=0);for(var o=5-e.toString().length<=0?0:5-e.toString().length,a=0;a<n;a++)r+="0";r=r+t.toString()+" ";for(var a=0;a<o;a++)r+="0";return r=r+e.toString()+" ",r=r+(i?s.a.f:s.a.n)+s.a.newLine},t.prototype.prepareSubsection=function(t){for(var e,i=0,r=this.count,n=0;n<this.document.pdfObjects.count;n++){var o=this.document.pdfObjects.items(n).reference,s=o.toString();s.split(" ")}if(t>=r)return i;for(e=t;e<r;++e)break;for(t=e;e<r;++e)++i;return i},t.prototype.markTrailerReferences=function(){this.trailer.items.keys(),this.trailer.items.values()},t.prototype.saveHead=function(t){var e=this.generateFileVersion(t.document);t.write("%PDF-"+e),t.write(s.a.newLine)},t.prototype.generateFileVersion=function(t){return"1."+4..toString()},t.prototype.getReference=function(t,e){if(void 0===e){return this.getReference(t,!1)}return this.getSubReference(t,e)},t.prototype.getSubReference=function(t,e){var i,n=!1,o=null;if(this.items.count>0&&t.objectCollectionIndex>0&&this.items.count>t.objectCollectionIndex-1){var s=this.document.pdfObjects.getReference(t,i);o=s.reference,i=s.wasNew}if(i=null==o&&t.status!==r.a.Registered,null==o){var a=this.nextObjNumber;o=new h.a(a,0);if(i){this.document.pdfObjects.add(t),this.document.pdfObjects.trySetReference(t,o,void 0);var u=this.document.pdfObjects.count-1,l=this.document.pdfObjects.objectCollections[u].reference.objNumber,c=this.document.pdfObjects.objectCollections[this.document.pdfObjects.count-1];this.document.pdfObjects.mainObjectCollection.setValue(l,c),t.position=-1}else this.document.pdfObjects.trySetReference(t,o,void 0);t.objectCollectionIndex=o.objNumber,t.status=r.a.None,n=!0}return n||this.bForceNew,o},t.prototype.saveObjects=function(t){for(var e=this.objectCollection,i=0;i<e.count;++i){var r=e.items(i),n=r.object;n.isSaving=!0,this.saveIndirectObject(n,t)}},t.prototype.saveIndirectObject=function(t,e){var i=this.getReference(t);t instanceof d.a&&this.trailer.items.setValue(this.dictionaryProperties.root,i),this.pdfDocument.currentSavingObj=i;var r=!1;r=t.getArchive();t instanceof l.a||!r||d.a;this.registerObject(e.position,i),this.doSaveObject(t,i,e)},t.prototype.doSaveObject=function(t,e,i){i.length;i.write(e.objNumber.toString()),i.write(s.a.whiteSpace),i.write(e.genNumber.toString()),i.write(s.a.whiteSpace),i.write(s.a.obj),i.write(s.a.newLine),t.save(i);i.stream;i.write(s.a.endObj),i.write(s.a.newLine)},t.prototype.registerObject=function(t,e,i){"boolean"==typeof i?(this.objects.setValue(e.objNumber,new p(t,e,i)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,e.genNumber)):void 0===i&&(this.objects.setValue(e.objNumber,new p(t,e)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,e.genNumber))},t.dereference=function(t){var e=t;return null!=e&&(t=e.object),t},t}(),p=function(){function t(t,e,i){var r=t;this.offsetNumber=r;var n=e;this.generation=n.genNumber,this.object=n.objNumber,this.type=void 0===i?u.a.Normal:u.a.Free}return Object.defineProperty(t.prototype,"objectNumber",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offset",{get:function(){return this.offsetNumber},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(6),n=i(53),o=i(1),s=i(40),a=function(){function t(t){this.defLayerIndex=-1,this.modified=!1,this.dictionaryProperties=new o.a,this.pageDictionary=t}return Object.defineProperty(t.prototype,"section",{get:function(){return this.pdfSection},set:function(t){this.pdfSection=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultLayer",{get:function(){var t=this.layers,e=this.defaultLayerIndex;return t.items(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultLayerIndex",{get:function(){if(0===this.layerCollection.count||-1===this.defLayerIndex){var t=this.layerCollection.add();this.defLayerIndex=this.layerCollection.indexOf(t)}return this.defLayerIndex},set:function(t){if(t<0||t>this.layers.count-1)throw new Error("ArgumentOutOfRangeException : value, Index can not be less 0 and greater Layers.Count - 1");this.defLayerIndex=t,this.modified=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layers",{get:function(){return null!=this.layerCollection&&void 0!==this.layerCollection||(this.layerCollection=new n.a(this)),this.layerCollection},enumerable:!0,configurable:!0}),t.prototype.getResources=function(){return null==this.resources&&(this.resources=new s.a,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},Object.defineProperty(t.prototype,"contents",{get:function(){var t=this.pageDictionary.items.getValue(this.dictionaryProperties.contents),e=t;return null==e&&(e=new r.a,this.pageDictionary.items.setValue(this.dictionaryProperties.contents,e)),e},enumerable:!0,configurable:!0}),t.prototype.setResources=function(t){this.resources=t,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources),this.modified=!0},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return l});var r=i(52),n=i(4),o=i(54),s=i(74),a=i(8),h=i(13),u=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=function(t){function e(e){var i=t.call(this)||this;if(i.parentLayerCount=0,i.sublayer=!1,i.optionalContent=new n.a,e instanceof r.a){i.page=e;var o=e;i.parseLayers(o)}return i}return u(e,t),e.prototype.items=function(t,e){if("number"==typeof t&&void 0===e){return this.list[t]}if(null==e)throw new Error("ArgumentNullException: layer");if(e.page!==this.page)throw new Error("ArgumentException: The layer belongs to another page")},e.prototype.add=function(t,e){if(void 0===t){var i=new o.a(this.page);return i.name="",this.add(i),i}if(t instanceof o.a){var r=this.list.push(t);return this.addLayer(r,t),r}return 0},e.prototype.addLayer=function(t,e){var i=new a.b(e);this.page.contents.add(i)},e.prototype.insert=function(t,e){for(var i=[],r=this.list.length,n=t;n<r;n++)i.push(this.list.pop());this.list.push(e);for(var n=0;n<i.length;n++)this.list.push(i[n]);this.insertLayer(t,e)},e.prototype.insertLayer=function(t,e){if(null==e)throw new Error("ArgumentNullException:layer");var i=new a.b(e);this.page.contents.insert(t,i)},e.prototype.parseLayers=function(t){var e=this.page.contents;this.page.getResources();t.crossTable;var i=new h.a,r=new h.a,n=[];n.push("q"),i.data=n,e.insert(0,new a.b(i)),n=[],n.push("Q"),r.data=n,e.insert(e.count,new a.b(r))},e.prototype.indexOf=function(t){if(null==t)throw new Error("ArgumentNullException: layer");return this.list.indexOf(t)},e}(s.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(13),n=i(24),o=i(53),s=i(1),a=i(2),h=function(){function t(t,e){if(this.pdfColorSpace=a.i.Rgb,this.isVisible=!0,this.sublayer=!1,this.contentLength=0,this.dictionaryProperties=new s.a,null===t)throw new Error("ArgumentNullException:page");if(this.pdfPage=t,this.clipPageTemplates=!0,void 0===e)this.content=new r.a;else if(e instanceof r.a||null===e){if(null===e)throw new Error("ArgumentNullException:stream");this.content=e}else this.content=new r.a,this.clipPageTemplates=e}return Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(t){this.pdfColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layerId",{get:function(){return this.layerid},set:function(t){this.layerid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.layerName},set:function(t){this.layerName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.isVisible},set:function(t){this.isVisible=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){return null==this.pdfGraphics&&this.initializeGraphics(this.page),this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layers",{get:function(){return null==this.layer?(this.layer=new o.a(this.page),this.layer.sublayer=!0,this.layer):this.layer},enumerable:!0,configurable:!0}),t.prototype.add=function(){var e=new t(this.pdfPage);return e.name="",e},t.prototype.sign=function(t){return 0===t?0:t>0?1:-1},t.prototype.initializeGraphics=function(t){var e=t,i=new n.b(this.page);if(this.pdfGraphics=new n.a(t.size,i,this.content),this.pdfGraphics.mediaBoxUpperRightBound=0,null!=e){var r=e.section.parent;null!=r&&(this.pdfGraphics.colorSpace=r.document.colorSpace,this.colorSpace=r.document.colorSpace)}var o=this.sign(t.origin.y)===this.sign(t.origin.x);(t.origin.x>=0&&t.origin.y>=0||!o)&&this.pdfGraphics.initializeCoordinates();var s=e.section.getActualBounds(e,!0),a=e.section.pageSettings.margins;this.clipPageTemplates?t.origin.x>=0&&t.origin.y>=0&&this.pdfGraphics.clipTranslateMargins(s):this.graphics.clipTranslateMargins(s.x,s.y,a.left,a.top,a.right,a.bottom),this.pdfGraphics.setLayer(this)},Object.defineProperty(t.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return c});var r=i(5),n=i(3),o=i(6),s=i(4),a=i(8),h=i(0),u=i(94),l=i(1),c=function(){function t(t){this.sections=[],this.dictionaryProperties=new l.a,this.pdfDocument=t.clone(),this.initialize()}return Object.defineProperty(t.prototype,"section",{get:function(){return this.sections},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.sections.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pages},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.sectionCount=new r.a(0),this.sectionCollection=new o.a,this.pages=new s.a,this.pages.beginSave=new s.b(this),this.pages.items.setValue(this.dictionaryProperties.type,new n.a("Pages")),this.pages.items.setValue(this.dictionaryProperties.kids,this.sectionCollection),this.pages.items.setValue(this.dictionaryProperties.count,this.sectionCount),this.pages.items.setValue(this.dictionaryProperties.resources,new s.a),this.setPageSettings(this.pages,this.pdfDocument.pageSettings)},t.prototype.pdfSectionCollection=function(t){if(t<0||t>=this.count)throw new Error("IndexOutOfRangeException()");return this.sections[t]},t.prototype.setPageSettings=function(t,e){var i=new h.c(new h.a,e.size);t.items.setValue(this.dictionaryProperties.mediaBox,o.a.fromRectangle(i))},t.prototype.add=function(t){if(void 0===t){var e=new u.a(this.pdfDocument);return this.add(e),e}var i=this.checkSection(t);return this.sections.push(t),t.parent=this,this.sectionCollection.add(i),this.sections.indexOf(t)},t.prototype.checkSection=function(t){var e=new a.b(t);this.sectionCollection.contains(e);return e},t.prototype.countPages=function(){var t=0;return this.sections.forEach(function(e){return t+=e.count}),t},t.prototype.beginSave=function(){this.sectionCount.intValue=this.countPages()},t.rotateFactor=90,t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return w}),i.d(e,"b",function(){return v});var r=i(57),n=i(31),o=i(14),s=i(20),a=i(23),h=i(0),u=i(2),l=i(58),c=i(18),d=i(9),f=i(29),p=i(39),g=i(43),m=i(21),y=i(41),b=i(12),w=function(){function t(t){this.cellWidth=0,this.cellHeight=0,this.tempval=0,this.fontSpilt=!1,this.finsh=!0,this.rowSpanRemainingHeight=0,this.hasRowSpan=!1,this.hasColSpan=!1,this.isFinish=!0,this.present=!1,this.gridRowSpan=1,this.colSpan=1,void 0!==t&&(this.gridRow=t)}return Object.defineProperty(t.prototype,"isCellMergeContinue",{get:function(){return this.internalIsCellMergeContinue},set:function(t){this.internalIsCellMergeContinue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRowMergeContinue",{get:function(){return this.internalIsRowMergeContinue},set:function(t){this.internalIsRowMergeContinue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCellMergeStart",{get:function(){return this.internalIsCellMergeStart},set:function(t){this.internalIsCellMergeStart=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRowMergeStart",{get:function(){return this.internalIsRowMergeStart},set:function(t){this.internalIsRowMergeStart=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"remainingString",{get:function(){return this.remaining},set:function(t){this.remaining=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"FinishedDrawingCell",{get:function(){return this.isFinish},set:function(t){this.isFinish=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stringFormat",{get:function(){return null==this.format&&(this.format=new a.a),this.format},set:function(t){this.format=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.gridRow},set:function(t){this.gridRow=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.objectValue},set:function(t){if(this.objectValue=t,this.objectValue instanceof r.a){this.row.grid.isSingleGrid=!1;this.objectValue.ParentCell=this,this.objectValue.isChildGrid=!0;for(var e=this.row.grid.rows.count,i=0;i<e;i++)for(var n=this.row.grid.rows.getRow(i),o=n.cells.count,s=0;s<o;s++){var a=n.cells.getCell(s);a.parent=this}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowSpan",{get:function(){return this.gridRowSpan},set:function(t){if(t<1)throw new Error("ArgumentException : Invalid span specified, must be greater than or equal to 1");this.gridRowSpan=t,this.row.rowSpanExists=!0,this.row.grid.hasRowSpanSpan=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return null==this.cellStyle&&(this.cellStyle=new n.c),this.cellStyle},set:function(t){this.cellStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return 0===this.cellHeight&&(this.cellHeight=this.measureHeight()),this.cellHeight},set:function(t){this.cellHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnSpan",{get:function(){return this.colSpan},set:function(t){if(t<1)throw Error("Invalid span specified, must be greater than or equal to 1");this.colSpan=t,this.row.columnSpanExists=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return(0===this.cellWidth||this.row.grid.isComplete)&&(this.cellWidth=this.measureWidth()),Math.round(this.cellWidth)},set:function(t){this.cellWidth=t},enumerable:!0,configurable:!0}),t.prototype.measureWidth=function(){var t=0,e=new o.a;if("string"==typeof this.objectValue){t+=e.layout(this.objectValue,this.getTextFont(),this.stringFormat,new h.b(Number.MAX_VALUE,Number.MAX_VALUE),!1,new h.b(0,0)).actualSize.width,t+=2*(this.style.borders.left.width+this.style.borders.right.width)}else if(this.objectValue instanceof r.a)t=this.objectValue.size.width;else if(this.objectValue instanceof f.a||this.objectValue instanceof p.a)t+=this.objectValue.width;else if(this.objectValue instanceof g.a){var i=this.objectValue,n=e.layout(i.text,i.font,i.stringFormat,new h.b(0,0),!1,new h.b(0,0));t+=n.actualSize.width,t+=2*(this.style.borders.left.width+this.style.borders.right.width)}return this.objectValue instanceof r.a?null!=this.style.cellPadding||void 0!==this.style.cellPadding?(void 0!==this.style.cellPadding.left&&this.style.cellPadding.hasLeftPad&&(t+=this.style.cellPadding.left),void 0!==this.style.cellPadding.right&&this.style.cellPadding.hasRightPad&&(t+=this.style.cellPadding.right)):(void 0!==this.row.grid.style.cellPadding.left&&this.row.grid.style.cellPadding.hasLeftPad&&(t+=this.row.grid.style.cellPadding.left),void 0!==this.row.grid.style.cellPadding.right&&this.row.grid.style.cellPadding.hasRightPad&&(t+=this.row.grid.style.cellPadding.right)):null!=this.style.cellPadding?t+=this.style.cellPadding.left+this.style.cellPadding.right:t+=this.row.grid.style.cellPadding.left+this.row.grid.style.cellPadding.right,t+=this.row.grid.style.cellSpacing},t.prototype.drawCellBackground=function(t,e){var i=this.getBackgroundBrush();if(null!=i&&(t.save(),t.drawRectangle(i,e.x,e.y,e.width,e.height),t.restore()),null!=this.style.backgroundImage){this.getBackgroundImage();t.drawImage(this.style.backgroundImage,e.x,e.y,e.width,e.height)}},t.prototype.adjustContentLayoutArea=function(t){var e=new h.c(t.x,t.y,t.width,t.height);return this.objectValue instanceof r.a?(null==this.style.cellPadding||void 0===this.style.cellPadding?(void 0!==this.gridRow.grid.style.cellPadding.left&&this.gridRow.grid.style.cellPadding.hasLeftPad&&(e.x+=this.gridRow.grid.style.cellPadding.left+this.cellStyle.borders.left.width,e.width-=this.gridRow.grid.style.cellPadding.left),void 0!==this.gridRow.grid.style.cellPadding.top&&this.gridRow.grid.style.cellPadding.hasTopPad&&(e.y+=this.gridRow.grid.style.cellPadding.top+this.cellStyle.borders.top.width,e.height-=this.gridRow.grid.style.cellPadding.top),void 0!==this.gridRow.grid.style.cellPadding.right&&this.gridRow.grid.style.cellPadding.hasRightPad&&(e.width-=this.gridRow.grid.style.cellPadding.right),void 0!==this.gridRow.grid.style.cellPadding.bottom&&this.gridRow.grid.style.cellPadding.hasBottomPad&&(e.height-=this.gridRow.grid.style.cellPadding.bottom)):(void 0!==this.style.cellPadding.left&&this.style.cellPadding.hasLeftPad&&(e.x+=this.style.cellPadding.left+this.cellStyle.borders.left.width,e.width-=this.style.cellPadding.left),void 0!==this.style.cellPadding.top&&this.style.cellPadding.hasTopPad&&(e.y+=this.style.cellPadding.top+this.cellStyle.borders.top.width,e.height-=this.style.cellPadding.top),void 0!==this.style.cellPadding.right&&this.style.cellPadding.hasRightPad&&(e.width-=this.style.cellPadding.right),void 0!==this.style.cellPadding.bottom&&this.style.cellPadding.hasBottomPad&&(e.height-=this.style.cellPadding.bottom)),e.width-=this.cellStyle.borders.left.width+this.cellStyle.borders.right.width,e.height-=this.cellStyle.borders.top.width+this.cellStyle.borders.bottom.width):void 0===this.style.cellPadding||null==this.style.cellPadding?(e.x+=this.gridRow.grid.style.cellPadding.left+this.cellStyle.borders.left.width,e.y+=this.gridRow.grid.style.cellPadding.top+this.cellStyle.borders.top.width,e.width-=this.gridRow.grid.style.cellPadding.right+this.gridRow.grid.style.cellPadding.left,e.height-=this.gridRow.grid.style.cellPadding.bottom+this.gridRow.grid.style.cellPadding.top,e.height-=this.cellStyle.borders.top.width+this.cellStyle.borders.bottom.width):(e.x+=this.style.cellPadding.left+this.cellStyle.borders.left.width,e.y+=this.style.cellPadding.top+this.cellStyle.borders.top.width,e.width-=this.style.cellPadding.right+this.style.cellPadding.left,e.width-=this.cellStyle.borders.left.width+this.cellStyle.borders.right.width,e.height-=this.style.cellPadding.bottom+this.style.cellPadding.top,e.height-=this.cellStyle.borders.top.width+this.cellStyle.borders.bottom.width,1===this.rowSpan&&(e.width-=this.style.borders.left.width)),e},t.prototype.draw=function(t,e,i){var n=null;if(this.internalIsCellMergeContinue||this.internalIsRowMergeContinue){if(!this.internalIsCellMergeContinue||!this.row.grid.style.allowHorizontalOverflow)return n;if(this.row.rowOverflowIndex>0&&this.row.cells.indexOf(this)!=this.row.rowOverflowIndex+1||0==this.row.rowOverflowIndex&&this.internalIsCellMergeContinue)return n}e=this.adjustOuterLayoutArea(e,t),this.drawCellBackground(t,e);var o=this.getTextPen(),s=this.getTextBrush();void 0===o&&void 0===s&&(s=new c.a(new d.a(0,0,0)));var a=this.getTextFont(),u=this.getStringFormat(),l=e;if(l.height>=t.clientSize.height&&this.row.grid.allowRowBreakAcrossPages&&(l.height-=l.y,void 0!==this._rowHeight&&null!==this._rowHeight&&l.height>this._rowHeight&&(l.height=this._rowHeight)),l=this.adjustContentLayoutArea(l),"string"==typeof this.objectValue||"string"==typeof this.remaining){var w=void 0,v=void 0;if(v=l.height<a.height?new h.c(l.x,l.y,l.width,a.height):l,l.height<a.height&&this.row.grid.isChildGrid&&null!=this.row.grid.ParentCell){var S=v.height-this.row.grid.ParentCell.row.grid.style.cellPadding.bottom-this.row.grid.style.cellPadding.bottom;-1!=this.row.grid.splitChildRowIndex&&(this.fontSpilt=!0,this.row.rowFontSplit=!0),S>0&&S<a.height&&(v.height=S)}0!=this.gridRow.grid.style.cellSpacing&&(v.width-=this.gridRow.grid.style.cellSpacing,e.width-=this.gridRow.grid.style.cellSpacing),this.isFinish?(w=""===this.remaining?this.remaining:this.objectValue,t.drawString(w,a,o,s,v.x,v.y,v.width,v.height,u),-1==this.row.grid.splitChildRowIndex||this.row.grid.isChildGrid||void 0!==this.remaining||(this.remaining="")):(void 0!==this.remaining&&null!==this.remaining||(this.remaining=""),this.row.repeatFlag&&t.drawString(this.remaining,a,o,s,v.x,v.y,v.width,v.height,u),this.isFinish=!0),n=t.stringLayoutResult}else if(this.objectValue instanceof r.a){var P=this.objectValue;P.isChildGrid=!0,P.ParentCell=this;var C=void 0;C=l,0!=this.gridRow.grid.style.cellSpacing&&(e.width-=this.gridRow.grid.style.cellSpacing);var B=new y.a(P),O=new y.c;null!=this.row.grid.LayoutFormat?O=this.row.grid.LayoutFormat:O.layout=m.a.Paginate;var x=new b.c;if(null!=t.layer){x.page=t.page,x.bounds=C,x.format=O,P.setSpan(),P.checkSpan();var L=B.Layouter(x);this.value=P,-1!==this.row.grid.splitChildRowIndex&&(this.height=this.row.rowBreakHeightValue),x.page!=L.page&&(null!==this.row.rowBreakHeightValue&&void 0!==this.row.rowBreakHeightValue&&(L.bounds.height=this.row.rowBreakHeightValue),0==this.row.rowBreakHeight?this.row.NestedGridLayoutResult=L:this.row.rowBreakHeight=this.row.rowBreakHeightValue)}}else if(this.objectValue instanceof f.a||this.objectValue instanceof p.a){var j=void 0;j=this.objectValue.width<=l.width?new h.c(l.x,l.y,this.objectValue.width,l.height):l,t.drawImage(this.objectValue,j.x,j.y,j.width,j.height)}else this.objectValue instanceof g.a?this.objectValue.draw(t.currentPage,l):void 0===this.objectValue&&(this.objectValue="",t.drawString(this.objectValue,a,o,s,l.x,l.y,l.width,l.height,u),null!=this.style.cellPadding&&0==this.style.cellPadding.bottom&&0==this.style.cellPadding.left&&0==this.style.cellPadding.right&&0==this.style.cellPadding.top&&(e.width-=this.style.borders.left.width+this.style.borders.right.width),0!=this.gridRow.grid.style.cellSpacing&&(e.width-=this.gridRow.grid.style.cellSpacing));return null!=this.style.borders&&(this.fontSpilt?-1!=this.row.grid.ParentCell.row.grid.splitChildRowIndex&&(this.row.rowFontSplit=!1,this.drawCellBorders(t,e)):this.drawCellBorders(t,e)),n},t.prototype.drawCellBorders=function(t,e){this.row.grid.style.borderOverlapStyle===l.a.Inside&&(e.x+=this.style.borders.left.width,e.y+=this.style.borders.top.width,e.width-=this.style.borders.right.width,e.height-=this.style.borders.bottom.width);var i=new h.a(e.x,e.y+e.height),r=new h.a(e.x,e.y),n=this.cellStyle.borders.left;this.cellStyle.borders.left.dashStyle===u.g.Solid&&(n.lineCap=u.f.Square),0!==n.width&&t.drawLine(n,i,r),i=new h.a(e.x+e.width,e.y),r=new h.a(e.x+e.width,e.y+e.height),n=this.cellStyle.borders.right,e.x+e.width>t.clientSize.width-n.width/2&&(i=new h.a(t.clientSize.width-n.width/2,e.y),r=new h.a(t.clientSize.width-n.width/2,e.y+e.height)),this.cellStyle.borders.right.dashStyle===u.g.Solid&&(n.lineCap=u.f.Square),0!==n.width&&t.drawLine(n,i,r),i=new h.a(e.x,e.y),r=new h.a(e.x+e.width,e.y),n=this.cellStyle.borders.top,this.cellStyle.borders.top.dashStyle===u.g.Solid&&(n.lineCap=u.f.Square),0!==n.width&&t.drawLine(n,i,r),i=new h.a(e.x+e.width,e.y+e.height),r=new h.a(e.x,e.y+e.height),n=this.cellStyle.borders.bottom,e.y+e.height>t.clientSize.height-n.width/2&&(i=new h.a(e.x+e.width,t.clientSize.height-n.width/2),r=new h.a(e.x,t.clientSize.height-n.width/2)),this.cellStyle.borders.bottom.dashStyle===u.g.Solid&&(n.lineCap=u.f.Square),0!==n.width&&t.drawLine(n,i,r)},t.prototype.adjustOuterLayoutArea=function(t,e){var i=!1,r=this.row.grid.style.cellSpacing;r>0&&(t=new h.c(t.x+r,t.y+r,t.width-r,t.height-r));var n=this.row.cells.indexOf(this);if(this.columnSpan>1||this.row.rowOverflowIndex>0&&n==this.row.rowOverflowIndex+1&&this.isCellMergeContinue){var o=this.columnSpan;if(1==o&&this.isCellMergeContinue)for(var s=n+1;s<this.row.grid.columns.count&&this.row.cells.getCell(s).isCellMergeContinue;s++)o++;for(var a=0,u=n;u<n+o;u++){if(this.row.grid.style.allowHorizontalOverflow){var l=this.row.grid.size.width<e.clientSize.width?this.row.grid.size.width:e.clientSize.width;if((this.row.grid.size.width>e.clientSize.width?t.x+a+this.row.grid.columns.getColumn(u).width:a+this.row.grid.columns.getColumn(u).width)>l)break}a+=this.row.grid.columns.getColumn(u).width}a-=this.row.grid.style.cellSpacing,t.width=a}if(this.rowSpan>1||this.row.rowSpanExists){var o=this.rowSpan,c=this.row.grid.rows.rowCollection.indexOf(this.row);-1==c&&-1!=(c=this.row.grid.headers.indexOf(this.row))&&(i=!0);for(var d=0,u=c;u<c+o;u++){d+=i?this.row.grid.headers.getHeader(u).height:this.row.grid.rows.getRow(u).height;var f=this.row.grid.rows.getRow(u);this.row.grid.rows.rowCollection.indexOf(f)}this.row.cells.indexOf(this);d-=this.row.grid.style.cellSpacing,t.height=d,this.row.rowMergeComplete||(t.height=d)}return t},t.prototype.getTextFont=function(){return void 0!==this.style.font&&null!=this.style.font?this.style.font:void 0!==this.row.style.font&&null!=this.row.style.font?this.row.style.font:void 0!==this.row.grid.style.font&&null!=this.row.grid.style.font?this.row.grid.style.font:s.a.defaultFont},t.prototype.getTextBrush=function(){return void 0!==this.style.textBrush&&null!=this.style.textBrush?this.style.textBrush:void 0!==this.row.style.textBrush&&null!=this.row.style.textBrush?this.row.style.textBrush:this.row.grid.style.textBrush},t.prototype.getTextPen=function(){return void 0!==this.style.textPen&&null!=this.style.textPen?this.style.textPen:void 0!==this.row.style.textPen&&null!=this.row.style.textPen?this.row.style.textPen:this.row.grid.style.textPen},t.prototype.getBackgroundBrush=function(){return void 0!==this.style.backgroundBrush&&null!=this.style.backgroundBrush?this.style.backgroundBrush:void 0!==this.row.style.backgroundBrush&&null!=this.row.style.backgroundBrush?this.row.style.backgroundBrush:this.row.grid.style.backgroundBrush},t.prototype.getBackgroundImage=function(){return void 0!==this.style.backgroundImage&&null!=this.style.backgroundImage?this.style.backgroundImage:void 0!==this.row.style.backgroundImage&&null!=this.row.style.backgroundImage?this.row.style.backgroundImage:this.row.grid.style.backgroundImage},t.prototype.getStringFormat=function(){return void 0!==this.style.stringFormat&&null!=this.style.stringFormat?this.style.stringFormat:this.stringFormat},t.prototype.measureHeight=function(){var t=this.calculateWidth();null==this.style.cellPadding||void 0===this.style.cellPadding?t-=this.gridRow.grid.style.cellPadding.right+this.gridRow.grid.style.cellPadding.left:(t-=this.style.cellPadding.right+this.style.cellPadding.left,t-=this.style.borders.left.width+this.style.borders.right.width);var e=0,i=new o.a;if("string"==typeof this.objectValue||"string"==typeof this.remaining){var n=this.objectValue;this.isFinish||(n=null!==this.remaining&&""!==this.remaining&&void 0!==this.remaining?this.remaining:this.objectValue);var s=null,a=this.row.cells.indexOf(this);0!=this.gridRow.grid.style.cellSpacing&&(t-=2*this.gridRow.grid.style.cellSpacing),this.row.cells.getCell(a).hasColSpan||this.row.cells.getCell(a).hasRowSpan||(this.gridRow.grid.isChildGrid?(t<0?(this.tempval=t,null==this.style.cellPadding||void 0===this.style.cellPadding?this.tempval+=this.gridRow.grid.style.cellPadding.right+this.gridRow.grid.style.cellPadding.left:(this.tempval+=this.style.cellPadding.right+this.style.cellPadding.left,this.tempval+=this.style.borders.left.width+this.style.borders.right.width)):this.tempval=t,s=i.layout(n,this.getTextFont(),this.stringFormat,new h.b(this.tempval,0),!1,new h.b(0,0)),e+=s.actualSize.height):(s=i.layout(n,this.getTextFont(),this.stringFormat,new h.b(t,0),!1,new h.b(0,0)),e+=s.actualSize.height)),e+=2*(this.style.borders.top.width+this.style.borders.bottom.width)}else if(this.objectValue instanceof r.a){var a=this.row.cells.indexOf(this),u=0;null!=this.style.cellPadding||void 0!==this.style.cellPadding?(u=this.calculateWidth(),void 0!==this.style.cellPadding.left&&this.style.cellPadding.hasLeftPad&&(u-=this.style.cellPadding.left),void 0!==this.style.cellPadding.right&&this.style.cellPadding.hasRightPad&&(u-=this.style.cellPadding.right)):null!=this.row.grid.style.cellPadding||void 0!==this.row.grid.style.cellPadding?(u=this.calculateWidth(),void 0!==this.row.grid.style.cellPadding.left&&this.row.grid.style.cellPadding.hasLeftPad&&(u-=this.row.grid.style.cellPadding.left),void 0!==this.row.grid.style.cellPadding.right&&this.row.grid.style.cellPadding.hasRightPad&&(u-=this.row.grid.style.cellPadding.right)):u=this.calculateWidth(),this.objectValue.tempWidth=u,this.row.cells.getCell(a).hasColSpan||this.row.cells.getCell(a).hasRowSpan?e+=2*(this.style.borders.top.width+this.style.borders.bottom.width):e=this.objectValue.size.height,0!==this.gridRow.grid.style.cellSpacing&&(t-=2*this.gridRow.grid.style.cellSpacing),null==this.style.cellPadding&&void 0===this.style.cellPadding||(void 0!==this.row.grid.style.cellPadding.top&&this.row.grid.style.cellPadding.hasTopPad&&(e+=this.row.grid.style.cellPadding.top),this.row.grid.style.cellPadding.hasBottomPad&&void 0!==this.row.grid.style.cellPadding.bottom&&(e+=this.row.grid.style.cellPadding.bottom)),e+=this.objectValue.style.cellSpacing}else if(this.objectValue instanceof f.a||this.objectValue instanceof p.a)e+=this.objectValue.height;else if(this.objectValue instanceof g.a){var l=this.objectValue,s=i.layout(l.text,l.font,l.stringFormat,new h.b(t,0),!1,new h.b(0,0));e+=s.actualSize.height,e+=2*(this.style.borders.top.width+this.style.borders.bottom.width)}else void 0===this.objectValue&&(null==this.style.cellPadding||void 0===this.style.cellPadding?t-=this.gridRow.grid.style.cellPadding.right+this.gridRow.grid.style.cellPadding.left:(t-=this.style.cellPadding.right+this.style.cellPadding.left,t-=this.style.borders.left.width+this.style.borders.right.width),e+=2*(this.style.borders.top.width+this.style.borders.bottom.width));return this.objectValue instanceof r.a?null==this.style.cellPadding||void 0===this.style.cellPadding?(void 0!==this.row.grid.style.cellPadding.top&&this.row.grid.style.cellPadding.hasTopPad&&(e+=this.row.grid.style.cellPadding.top),void 0!==this.row.grid.style.cellPadding.bottom&&this.row.grid.style.cellPadding.hasBottomPad&&(e+=this.row.grid.style.cellPadding.bottom)):(void 0!==this.style.cellPadding.top&&this.style.cellPadding.hasTopPad&&(e+=this.style.cellPadding.top),void 0!==this.style.cellPadding.bottom&&this.style.cellPadding.hasBottomPad&&(e+=this.style.cellPadding.bottom)):null==this.style.cellPadding||void 0===this.style.cellPadding?e+=this.row.grid.style.cellPadding.top+this.row.grid.style.cellPadding.bottom:e+=this.style.cellPadding.top+this.style.cellPadding.bottom,e+=this.row.grid.style.cellSpacing},t.prototype.calculateWidth=function(){var t=this.row.cells.indexOf(this),e=(this.row.grid.rows.rowCollection.indexOf(this.row),this.columnSpan),i=0;if(1===e)for(var r=0;r<e;r++)i+=this.row.grid.columns.getColumn(t+r).width;else if(e>1)for(var r=0;r<e;r++)i+=this.row.grid.columns.getColumn(t+r).width,r+1<e&&(this.row.cells.getCell(t+r+1).hasColSpan=!0);if(null!=this.parent&&this.parent.row.width>0&&this.row.grid.isChildGrid&&null!=this.parent&&this.row.width>this.parent.row.width){i=0;for(var n=0;n<this.parent.columnSpan;n++)i+=this.parent.row.grid.columns.getColumn(n).width;i/=this.row.cells.count}return i},t}(),v=function(){function t(t){this.cells=[],this.gridRow=t}return t.prototype.getCell=function(t){if(t<0||t>=this.count)throw new Error("IndexOutOfRangeException");return this.cells[t]},Object.defineProperty(t.prototype,"count",{get:function(){return this.cells.length},enumerable:!0,configurable:!0}),t.prototype.add=function(t){if(void 0===t){var e=new w;return this.add(e),t}t.row=this.gridRow,this.cells.push(t)},t.prototype.indexOf=function(t){return this.cells.indexOf(t)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return d});var r=i(95),n=i(96),o=i(0),s=i(35),a=i(12),h=i(31),u=i(30),l=i(41),c=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),d=function(t){function e(){var e=t.call(this)||this;return e.gridSize=new o.b(0,0),e.isGridSplit=!1,e.isRearranged=!1,e.pageBounds=new o.c,e.listOfNavigatePages=[],e.parentCellIndex=0,e.tempWidth=0,e.breakRow=!0,e.splitChildRowIndex=-1,e.hasRowSpanSpan=!1,e.hasColumnSpan=!1,e.isSingleGrid=!0,e}return c(e,t),Object.defineProperty(e.prototype,"raiseBeginCellDraw",{get:function(){return void 0!==this.beginCellDraw&&null!==typeof this.beginCellDraw},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"raiseEndCellDraw",{get:function(){return void 0!==this.endCellDraw&&null!==typeof this.endCellDraw},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"repeatHeader",{get:function(){return null!=this.bRepeatHeader&&void 0!==this.bRepeatHeader||(this.bRepeatHeader=!1),this.bRepeatHeader},set:function(t){this.bRepeatHeader=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowRowBreakAcrossPages",{get:function(){return this.breakRow},set:function(t){this.breakRow=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return null!=this.gridColumns&&void 0!==this.gridColumns||(this.gridColumns=new r.b(this)),this.gridColumns},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return null==this.gridRows&&(this.gridRows=new n.b(this)),this.gridRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){return null!=this.gridHeaders&&void 0!==this.gridHeaders||(this.gridHeaders=new n.c(this)),this.gridHeaders},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialWidth",{get:function(){return this.gridInitialWidth},set:function(t){this.gridInitialWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return null==this.gridStyle&&(this.gridStyle=new h.b),this.gridStyle},set:function(t){null==this.gridStyle&&(this.gridStyle=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPageWidth",{get:function(){return this.ispageWidth},set:function(t){this.ispageWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChildGrid",{get:function(){return this.ischildGrid},set:function(t){this.ischildGrid=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return 0!==this.gridSize.width&&void 0!==this.gridSize.width||0!==this.gridSize.height||(this.gridSize=this.measure()),this.gridSize},set:function(t){this.gridSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ParentCell",{get:function(){return this.parentCell},set:function(t){this.parentCell=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"LayoutFormat",{get:function(){return this.layoutFormat},enumerable:!0,configurable:!0}),e.prototype.draw=function(t,e,i,r){if(e instanceof o.a&&void 0===e.width&&void 0===i)return this.drawHelper(t,e.x,e.y);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.drawHelper(t,e,i,null);if(e instanceof o.c&&void 0!==e.width&&void 0===i)return this.drawHelper(t,e,null);if(e instanceof o.a&&void 0===e.width&&i instanceof a.b)return this.drawHelper(t,e.x,e.y,i);if("number"==typeof e&&"number"==typeof i&&(r instanceof a.b||null==r)){var n=t.graphics.clientSize.width-e,s=new o.c(e,i,n,0);return this.drawHelper(t,s,r)}return e instanceof o.c&&void 0!==e.width&&"boolean"==typeof i?this.drawHelper(t,e,null):this.drawHelper(t,e,i)},e.prototype.measure=function(){for(var t=0,e=this.columns.width,i=0;i<this.headers.count;i++){var r=this.headers.getHeader(i);t+=r.height}for(var i=0;i<this.rows.count;i++){var r=this.rows.getRow(i);t+=r.height}return new o.b(e,t)},e.prototype.onBeginCellDraw=function(t){this.raiseBeginCellDraw&&this.beginCellDraw(this,t)},e.prototype.onEndCellDraw=function(t){this.raiseEndCellDraw&&this.endCellDraw(this,t)},e.prototype.layout=function(t){var e=t.bounds.width,i=t.bounds.height,r=!1;if(void 0!==t.bounds.width&&0!==t.bounds.width||(e=t.page.getClientSize().width-t.bounds.x,r=!0),void 0!==t.bounds.height&&0!==t.bounds.height||(i=t.page.getClientSize().height-t.bounds.y,r=!0),r&&(t.bounds=new o.c(t.bounds.x,t.bounds.y,e,i)),0!==this.rows.count){var n=this.rows.getRow(0).cells.getCell(0).style;if(null!=n.borders&&(null!=n.borders.left&&1!==n.borders.left.width||null!=n.borders.top&&1!==n.borders.top.width)){var s=n.borders.left.width/2,a=n.borders.top.width/2;if(t.bounds.x===u.a.default.right.width/2&&t.bounds.y===u.a.default.right.width/2){var h=new o.c(s,a,this.gridSize.width,this.gridSize.height);t.bounds=h}}}return this.setSpan(),this.checkSpan(),this.layoutFormat=t.format,this.gridLocation=t.bounds,new l.a(this).Layouter(t)},e.prototype.setSpan=function(){for(var t=1,e=1,i=0,r=0,n=0,o=this.headers.count,s=0;s<o;s++){var a=this.headers.getHeader(s);n=0;for(var h=a.cells.count,u=0;u<h;u++){var l=a.cells.getCell(u);if(n=Math.max(n,l.rowSpan),!l.isCellMergeContinue&&!l.isRowMergeContinue&&(l.columnSpan>1||l.rowSpan>1)){if(l.columnSpan+u>a.cells.count)throw new Error("Invalid span specified at row "+u.toString()+" column "+s.toString());if(l.rowSpan+s>this.headers.count)throw new Error("Invalid span specified at Header "+u.toString()+" column "+s.toString());if(l.columnSpan>1&&l.rowSpan>1){for(t=l.columnSpan,e=l.rowSpan,i=u,r=s,l.isCellMergeStart=!0,l.isRowMergeStart=!0;t>1;)i++,a.cells.getCell(i).isCellMergeContinue=!0,a.cells.getCell(i).isRowMergeContinue=!0,a.cells.getCell(i).rowSpan=e,t--;for(i=u,t=l.columnSpan;e>1;){for(r++,this.headers.getHeader(r).cells.getCell(u).isRowMergeContinue=!0,this.headers.getHeader(r).cells.getCell(i).isRowMergeContinue=!0,e--;t>1;)i++,this.headers.getHeader(r).cells.getCell(i).isCellMergeContinue=!0,this.headers.getHeader(r).cells.getCell(i).isRowMergeContinue=!0,t--;t=l.columnSpan,i=u}}else if(l.columnSpan>1&&1===l.rowSpan)for(t=l.columnSpan,i=u,l.isCellMergeStart=!0;t>1;)i++,a.cells.getCell(i).isCellMergeContinue=!0,t--;else if(1===l.columnSpan&&l.rowSpan>1)for(e=l.rowSpan,r=s;e>1;)r++,this.headers.getHeader(r).cells.getCell(u).isRowMergeContinue=!0,e--}}a.maximumRowSpan=n}},e.prototype.checkSpan=function(){var t,e,i=1,r=0,n=0;if(t=i=1,e=n=0,this.hasRowSpanSpan||this.hasColumnSpan)for(var o=this.rows.count,s=0;s<o;s++){var a=this.rows.getRow(s);r=0;for(var h=a.cells.count,u=0;u<h;u++){var l=a.cells.getCell(u);if(r=Math.max(r,l.rowSpan),!l.isCellMergeContinue&&!l.isRowMergeContinue&&(l.columnSpan>1||l.rowSpan>1)){if(l.columnSpan+u>a.cells.count)throw new Error("Invalid span specified at row "+u.toString()+" column "+s.toString());if(l.rowSpan+s>this.rows.count)throw new Error("Invalid span specified at row "+u.toString()+" column "+s.toString());if(l.columnSpan>1&&l.rowSpan>1){for(t=l.columnSpan,i=l.rowSpan,e=u,n=s,l.isCellMergeStart=!0,l.isRowMergeStart=!0;t>1;)e++,a.cells.getCell(e).isCellMergeContinue=!0,a.cells.getCell(e).isRowMergeContinue=!0,t--;for(e=u,t=l.columnSpan;i>1;){for(n++,this.rows.getRow(n).cells.getCell(u).isRowMergeContinue=!0,this.rows.getRow(n).cells.getCell(e).isRowMergeContinue=!0,i--;t>1;)e++,this.rows.getRow(n).cells.getCell(e).isCellMergeContinue=!0,this.rows.getRow(n).cells.getCell(e).isRowMergeContinue=!0,t--;t=l.columnSpan,e=u}}else if(l.columnSpan>1&&1===l.rowSpan)for(t=l.columnSpan,e=u,l.isCellMergeStart=!0;t>1;)e++,a.cells.getCell(e).isCellMergeContinue=!0,t--;else if(1===l.columnSpan&&l.rowSpan>1)for(i=l.rowSpan,n=s;i>1;)n++,this.rows.getRow(n).cells.getCell(u).isRowMergeContinue=!0,i--}}a.maximumRowSpan=r}},e.prototype.measureColumnsWidth=function(t){if(void 0!==t){this.isPageWidth=!1;for(var e=this.columns.getDefaultWidths(t.width-t.x),i=0,r=this.columns.count;i<r;i++)this.columns.getColumn(i).columnWidth=e[i],this.tempWidth=e[i];if(null!=this.ParentCell&&0==this.style.allowHorizontalOverflow&&0==this.ParentCell.row.grid.style.allowHorizontalOverflow){var n=0,o=0,s=this.columns.count,a=0;null==this.ParentCell.style.cellPadding&&void 0===this.ParentCell.style.cellPadding||(void 0!==this.ParentCell.style.cellPadding.left&&this.ParentCell.style.cellPadding.hasLeftPad&&(n+=this.ParentCell.style.cellPadding.left),void 0!==this.ParentCell.style.cellPadding.right&&this.ParentCell.style.cellPadding.hasRightPad&&(n+=this.ParentCell.style.cellPadding.right));for(var i=0;i<this.ParentCell.columnSpan;i++)o+=this.ParentCell.row.grid.columns.getColumn(this.parentCellIndex+i).width;for(var h=0;h<this.columns.count;h++)this.gridColumns.getColumn(h).width>0&&this.gridColumns.getColumn(h).isCustomWidth&&(o-=this.gridColumns.getColumn(h).width,s--);if(null==this.ParentCell.row.grid.style.cellPadding&&void 0===this.ParentCell.row.grid.style.cellPadding||(void 0!==this.ParentCell.row.grid.style.cellPadding.top&&this.ParentCell.row.grid.style.cellPadding.hasTopPad&&(n+=this.ParentCell.row.grid.style.cellPadding.top),void 0!==this.ParentCell.row.grid.style.cellPadding.bottom&&this.ParentCell.row.grid.style.cellPadding.hasBottomPad&&(n+=this.ParentCell.row.grid.style.cellPadding.bottom)),0!=this.ParentCell.row.grid.style.cellSpacing&&(o-=2*this.ParentCell.row.grid.style.cellSpacing),o>n&&(a=(o-n)/s,this.tempWidth=a,null!=this.ParentCell))for(var h=0;h<this.columns.count;h++)this.columns.getColumn(h).isCustomWidth||(this.columns.getColumn(h).columnWidth=a)}}else{for(var e=[this.columns.count],u=0;u<this.columns.count;u++)e[u]=0;var l=0;if((void 0===this.isChildGrid&&void 0!==this.gridLocation||null===this.isChildGrid&&void 0!==this.gridLocation)&&(this.initialWidth=this.gridLocation.width),this.headers.count>0)for(var c=this.headers.getHeader(0).cells.count,d=this.headers.count,i=0;i<c;i++){l=0;for(var h=0;h<d;h++){var f=Math.min(this.initialWidth,this.headers.getHeader(h).cells.getCell(i).width);l=Math.max(l,f)}e[i]=l}l=0;for(var i=0,p=this.columns.count;i<p;i++){for(var h=0,d=this.rows.count;h<d;h++)if(1==this.rows.getRow(h).cells.getCell(i).columnSpan&&!this.rows.getRow(h).cells.getCell(i).isCellMergeContinue||null!=this.rows.getRow(h).cells.getCell(i).value){if(null!=this.rows.getRow(h).cells.getCell(i).value&&!this.rows.getRow(h).grid.style.allowHorizontalOverflow){this.rows.getRow(h).grid.style.cellPadding.right,this.rows.getRow(h).grid.style.cellPadding.left,this.rows.getRow(h).cells.getCell(i).style.borders.left.width}var f=0;f=this.initialWidth>0?Math.min(this.initialWidth,this.rows.getRow(h).cells.getCell(i).width):this.rows.getRow(h).cells.getCell(i).width,l=Math.max(e[i],Math.max(l,f)),l=Math.max(this.columns.getColumn(i).width,l)}0!=this.rows.count&&(e[i]=l),l=0}for(var i=0,g=this.rows.count;i<g;i++)for(var h=0,m=this.columns.count;h<m;h++)if(this.rows.getRow(i).cells.getCell(h).columnSpan>1)for(var y=e[h],b=1;b<this.rows.getRow(i).cells.getCell(h).columnSpan;b++)y+=e[h+b];for(var i=0,r=this.columns.count;i<r;i++)this.columns.getColumn(i).width<=0?this.columns.getColumn(i).columnWidth=e[i]:this.columns.getColumn(i).width>0&&!this.columns.getColumn(i).isCustomWidth&&(this.columns.getColumn(i).columnWidth=e[i]);var n=0,w=0,v=this.columns.count,S=0;w=this.tempWidth;for(var h=0;h<this.columns.count;h++)this.gridColumns.getColumn(h).width>0&&this.gridColumns.getColumn(h).isCustomWidth&&(w-=this.gridColumns.getColumn(h).width,v--);if(w>0&&0!=this.ParentCell.row.grid.style.cellSpacing&&(w-=2*this.ParentCell.row.grid.style.cellSpacing),w>n&&(S=w/v,null!=this.ParentCell))for(var h=0;h<this.columns.count;h++)this.columns.getColumn(h).isCustomWidth||(this.columns.getColumn(h).columnWidth=S)}},e}(s.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r;!function(t){t[t.Overlap=0]="Overlap",t[t.Inside=1]="Inside"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return l});var r=i(0),n=i(18),o=i(9),s=i(20),a=i(118),h=i(97),u=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=function(t){function e(){var e=t.call(this)||this;return e.internalBounds=new r.c(0,0,0,0),e.internalTemplateSize=new r.b(0,0),e}return u(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.internalBounds},set:function(t){this.internalBounds=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return new r.b(this.bounds.width,this.bounds.height)},set:function(t){this.bounds.width=t.width,this.bounds.height=t.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return new r.a(this.bounds.x,this.bounds.y)},set:function(t){this.bounds.x=t.x,this.bounds.y=t.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.internalFont},set:function(t){this.internalFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return this.internalBrush},set:function(t){this.internalBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pen",{get:function(){return this.internalPen},set:function(t){this.internalPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stringFormat",{get:function(){return this.internalStringFormat},set:function(t){this.internalStringFormat=t},enumerable:!0,configurable:!0}),e.prototype.performDrawHelper=function(t,e,i,r){if(0===this.bounds.height||0===this.bounds.width){var n=this.getValue(t);this.internalTemplateSize=this.getFont().measureString(n,this.size,this.stringFormat)}},e.prototype.draw=function(t,e,i){if(void 0===e){var n=new r.a(0,0);this.draw(t,n)}else if(e instanceof r.a)this.draw(t,e.x,e.y);else{this.drawHelper(t,e,i);var o=new h.a(this,new r.a(e,i));t.automaticFields.add(o)}},e.prototype.getSize=function(){return 0===this.bounds.height||0===this.bounds.width?this.internalTemplateSize:this.size},e.prototype.drawInternal=function(t){},e.prototype.getBrush=function(){return void 0===this.internalBrush||null==this.internalBrush?new n.a(new o.a(0,0,0)):this.internalBrush},e.prototype.getFont=function(){return void 0===this.internalFont||null==this.internalFont?s.a.defaultFont:this.internalFont},e.prototype.getPageFromGraphics=function(t){if(void 0!==t.page&&null!==t.page){var e=t.page;return e}var e=t.currentPage;return e},e}(a.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"c",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"d",function(){return s});var r;!function(t){t[t.None=0]="None",t[t.Start=1]="Start",t[t.End=2]="End",t[t.Both=3]="Both"}(r||(r={}));var n;!function(t){t[t.BackwardDiagonal=0]="BackwardDiagonal",t[t.ForwardDiagonal=1]="ForwardDiagonal",t[t.Horizontal=2]="Horizontal",t[t.Vertical=3]="Vertical"}(n||(n={}));var o;!function(t){t[t.Function=1]="Function",t[t.Axial=2]="Axial",t[t.Radial=3]="Radial"}(o||(o={}));var s;!function(t){t[t.ActiveBorder=1]="ActiveBorder",t[t.ActiveCaption=2]="ActiveCaption",t[t.ActiveCaptionText=3]="ActiveCaptionText",t[t.AppWorkspace=4]="AppWorkspace",t[t.Control=5]="Control",t[t.ControlDark=6]="ControlDark",t[t.ControlDarkDark=7]="ControlDarkDark",t[t.ControlLight=8]="ControlLight",t[t.ControlLightLight=9]="ControlLightLight",t[t.ControlText=10]="ControlText",t[t.Desktop=11]="Desktop",t[t.GrayText=12]="GrayText",t[t.Highlight=13]="Highlight",t[t.HighlightText=14]="HighlightText",t[t.HotTrack=15]="HotTrack",t[t.InactiveBorder=16]="InactiveBorder",t[t.InactiveCaption=17]="InactiveCaption",t[t.InactiveCaptionText=18]="InactiveCaptionText",t[t.Info=19]="Info",t[t.InfoText=20]="InfoText",t[t.Menu=21]="Menu",t[t.MenuText=22]="MenuText",t[t.ScrollBar=23]="ScrollBar",t[t.Window=24]="Window",t[t.WindowFrame=25]="WindowFrame",t[t.WindowText=26]="WindowText",t[t.Transparent=27]="Transparent",t[t.AliceBlue=28]="AliceBlue",t[t.AntiqueWhite=29]="AntiqueWhite",t[t.Aqua=30]="Aqua",t[t.Aquamarine=31]="Aquamarine",t[t.Azure=32]="Azure",t[t.Beige=33]="Beige",t[t.Bisque=34]="Bisque",t[t.Black=35]="Black",t[t.BlanchedAlmond=36]="BlanchedAlmond",t[t.Blue=37]="Blue",t[t.BlueViolet=38]="BlueViolet",t[t.Brown=39]="Brown",t[t.BurlyWood=40]="BurlyWood",t[t.CadetBlue=41]="CadetBlue",t[t.Chartreuse=42]="Chartreuse",t[t.Chocolate=43]="Chocolate",t[t.Coral=44]="Coral",t[t.CornflowerBlue=45]="CornflowerBlue",t[t.Cornsilk=46]="Cornsilk",t[t.Crimson=47]="Crimson",t[t.Cyan=48]="Cyan",t[t.DarkBlue=49]="DarkBlue",t[t.DarkCyan=50]="DarkCyan",t[t.DarkGoldenrod=51]="DarkGoldenrod",t[t.DarkGray=52]="DarkGray",t[t.DarkGreen=53]="DarkGreen",t[t.DarkKhaki=54]="DarkKhaki",t[t.DarkMagenta=55]="DarkMagenta",t[t.DarkOliveGreen=56]="DarkOliveGreen",t[t.DarkOrange=57]="DarkOrange",t[t.DarkOrchid=58]="DarkOrchid",t[t.DarkRed=59]="DarkRed",t[t.DarkSalmon=60]="DarkSalmon",t[t.DarkSeaGreen=61]="DarkSeaGreen",t[t.DarkSlateBlue=62]="DarkSlateBlue",t[t.DarkSlateGray=63]="DarkSlateGray",t[t.DarkTurquoise=64]="DarkTurquoise",t[t.DarkViolet=65]="DarkViolet",t[t.DeepPink=66]="DeepPink",t[t.DeepSkyBlue=67]="DeepSkyBlue",t[t.DimGray=68]="DimGray",t[t.DodgerBlue=69]="DodgerBlue",t[t.Firebrick=70]="Firebrick",t[t.FloralWhite=71]="FloralWhite",t[t.ForestGreen=72]="ForestGreen",t[t.Fuchsia=73]="Fuchsia",t[t.Gainsboro=74]="Gainsboro",t[t.GhostWhite=75]="GhostWhite",t[t.Gold=76]="Gold",t[t.Goldenrod=77]="Goldenrod",t[t.Gray=78]="Gray",t[t.Green=79]="Green",t[t.GreenYellow=80]="GreenYellow",t[t.Honeydew=81]="Honeydew",t[t.HotPink=82]="HotPink",t[t.IndianRed=83]="IndianRed",t[t.Indigo=84]="Indigo",t[t.Ivory=85]="Ivory",t[t.Khaki=86]="Khaki",t[t.Lavender=87]="Lavender",t[t.LavenderBlush=88]="LavenderBlush",t[t.LawnGreen=89]="LawnGreen",t[t.LemonChiffon=90]="LemonChiffon",t[t.LightBlue=91]="LightBlue",t[t.LightCoral=92]="LightCoral",t[t.LightCyan=93]="LightCyan",t[t.LightGoldenrodYellow=94]="LightGoldenrodYellow",t[t.LightGray=95]="LightGray",t[t.LightGreen=96]="LightGreen",t[t.LightPink=97]="LightPink",t[t.LightSalmon=98]="LightSalmon",t[t.LightSeaGreen=99]="LightSeaGreen",t[t.LightSkyBlue=100]="LightSkyBlue",t[t.LightSlateGray=101]="LightSlateGray",t[t.LightSteelBlue=102]="LightSteelBlue",t[t.LightYellow=103]="LightYellow",t[t.Lime=104]="Lime",t[t.LimeGreen=105]="LimeGreen",t[t.Linen=106]="Linen",t[t.Magenta=107]="Magenta",t[t.Maroon=108]="Maroon",t[t.MediumAquamarine=109]="MediumAquamarine",t[t.MediumBlue=110]="MediumBlue",t[t.MediumOrchid=111]="MediumOrchid",t[t.MediumPurple=112]="MediumPurple",t[t.MediumSeaGreen=113]="MediumSeaGreen",t[t.MediumSlateBlue=114]="MediumSlateBlue",t[t.MediumSpringGreen=115]="MediumSpringGreen",t[t.MediumTurquoise=116]="MediumTurquoise",t[t.MediumVioletRed=117]="MediumVioletRed",t[t.MidnightBlue=118]="MidnightBlue",t[t.MintCream=119]="MintCream",t[t.MistyRose=120]="MistyRose",t[t.Moccasin=121]="Moccasin",t[t.NavajoWhite=122]="NavajoWhite",t[t.Navy=123]="Navy",t[t.OldLace=124]="OldLace",t[t.Olive=125]="Olive",t[t.OliveDrab=126]="OliveDrab",t[t.Orange=127]="Orange",t[t.OrangeRed=128]="OrangeRed",t[t.Orchid=129]="Orchid",t[t.PaleGoldenrod=130]="PaleGoldenrod",t[t.PaleGreen=131]="PaleGreen",t[t.PaleTurquoise=132]="PaleTurquoise",t[t.PaleVioletRed=133]="PaleVioletRed",t[t.PapayaWhip=134]="PapayaWhip",t[t.PeachPuff=135]="PeachPuff",t[t.Peru=136]="Peru",t[t.Pink=137]="Pink",t[t.Plum=138]="Plum",t[t.PowderBlue=139]="PowderBlue",t[t.Purple=140]="Purple",t[t.Red=141]="Red",t[t.RosyBrown=142]="RosyBrown",t[t.RoyalBlue=143]="RoyalBlue",t[t.SaddleBrown=144]="SaddleBrown",t[t.Salmon=145]="Salmon",t[t.SandyBrown=146]="SandyBrown",t[t.SeaGreen=147]="SeaGreen",t[t.SeaShell=148]="SeaShell",t[t.Sienna=149]="Sienna",t[t.Silver=150]="Silver",t[t.SkyBlue=151]="SkyBlue",t[t.SlateBlue=152]="SlateBlue",t[t.SlateGray=153]="SlateGray",t[t.Snow=154]="Snow",t[t.SpringGreen=155]="SpringGreen",t[t.SteelBlue=156]="SteelBlue",t[t.Tan=157]="Tan",t[t.Teal=158]="Teal",t[t.Thistle=159]="Thistle",t[t.Tomato=160]="Tomato",t[t.Turquoise=161]="Turquoise",t[t.Violet=162]="Violet",t[t.Wheat=163]="Wheat",t[t.White=164]="White",t[t.WhiteSmoke=165]="WhiteSmoke",t[t.Yellow=166]="Yellow",t[t.YellowGreen=167]="YellowGreen",t[t.ButtonFace=168]="ButtonFace",t[t.ButtonHighlight=169]="ButtonHighlight",t[t.ButtonShadow=170]="ButtonShadow",t[t.GradientActiveCaption=171]="GradientActiveCaption",t[t.GradientInactiveCaption=172]="GradientInactiveCaption",t[t.MenuBar=173]="MenuBar",t[t.MenuHighlight=174]="MenuHighlight"}(s||(s={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(4),n=i(8),o=i(3),s=i(1),a=function(){function t(){this.action=null,this.dictionaryProperties=new s.a,this.initialize()}return Object.defineProperty(t.prototype,"next",{get:function(){return this.action},set:function(t){this.action=t,this.dictionary.items.setValue(this.dictionaryProperties.next,new n.b(this.action))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return void 0===this.pdfDictionary&&(this.pdfDictionary=new r.a),this.pdfDictionary},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.dictionary.items.setValue(this.dictionaryProperties.type,new o.a(this.dictionaryProperties.action))},Object.defineProperty(t.prototype,"element",{get:function(){return this.dictionary},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(61),n=i(17),o=i(3),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e){var i=t.call(this)||this;return i.uniformResourceIdentifier="",i}return s(e,t),Object.defineProperty(e.prototype,"uri",{get:function(){return this.uniformResourceIdentifier},set:function(t){this.uniformResourceIdentifier=t,this.dictionary.items.setValue(this.dictionaryProperties.uri,new n.b(this.uniformResourceIdentifier))},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.dictionary.items.setValue(this.dictionaryProperties.s,new o.a(this.dictionaryProperties.uri))},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(42),n=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o=function(t){function e(e){var i=t.call(this,e)||this;return i.pdfAction=null,i}return n(e,t),e.prototype.getSetAction=function(t){if(void 0===t)return this.pdfAction;this.pdfAction=t},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var r=i(6),n=i(8),o=i(1),s=i(0),a=i(14),h=i(2),u=function(){function t(t){this.alreadyExistsAnnotationError="This annotatation had been already added to page",this.missingAnnotationException="Annotation is not contained in collection.",this.dictionaryProperties=new o.a,this.internalAnnotations=new r.a,this.lists=[],void 0!==t&&(this.page=t)}return Object.defineProperty(t.prototype,"annotations",{get:function(){return this.internalAnnotations},set:function(t){this.internalAnnotations=t},enumerable:!0,configurable:!0}),t.prototype.add=function(t){this.doAdd(t)},t.prototype.doAdd=function(t){if(void 0===t.destination)return t.setPage(this.page),this.internalAnnotations.add(new n.b(t)),this.lists.push(t);var e=new a.a,i=e.layout(t.text,t.font,t.stringFormat,new s.b(t.bounds.width,0),!1,new s.b(0,0)),r=t.bounds.y;if(1===i.lines.length){var o=t.font.measureString(i.lines[0].text);t.bounds=new s.c(new s.a(t.bounds.x,r),o),t.text=i.lines[0].text,this.page.graphics.drawString(t.text,t.font,null,t.brush,t.bounds.x,t.bounds.y,t.bounds.width,t.bounds.height,null),t.setPage(this.page),this.setColor(t),this.internalAnnotations.add(new n.b(t)),this.lists.push(t)}else for(var h=0;h<i.lines.length;h++){var o=t.font.measureString(i.lines[h].text);if(0===h)t.bounds=new s.c(t.bounds.x,r,o.width,o.height),t.text=i.lines[h].text,this.page.graphics.drawString(t.text,t.font,null,t.brush,t.bounds.x,r,o.width,o.height,null),t.setPage(this.page),this.setColor(t),this.internalAnnotations.add(new n.b(t)),this.lists.push(t),r+=t.bounds.height;else{var u=t.clone();u.bounds=new s.c(new s.a(t.bounds.x,r),o),u.text=i.lines[h].text,this.page.graphics.drawString(u.text,u.font,null,u.brush,u.bounds.x,u.bounds.y,u.bounds.width,u.bounds.height,null),u.setPage(this.page),this.setColor(u),this.internalAnnotations.add(new n.b(u)),this.lists.push(u),r+=u.bounds.height}}},t.prototype.setColor=function(t){var e=h.i.Rgb,i=t.color.toArray(e);t.dictionary.items.setValue(this.dictionaryProperties.c,i)},Object.defineProperty(t.prototype,"element",{get:function(){return this.internalAnnotations},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return y});var r=i(9),n=i(0),o=i(4),s=i(6),a=i(5),h=i(8),u=i(17),l=i(1),c=i(3),d=i(18),f=i(37),p=i(7),g=i(23),m=i(2),y=function(){function t(t){this.dictionaryProperties=new l.a,this.pdfColor=new r.a(255,255,255),this.rectangle=new n.c(0,0,0,0),this.pdfPage=null,this.textBrush=new d.a(new r.a(0,0,0)),this.textFont=new f.a(p.b.TimesRoman,10),this.format=new g.a(m.c.Left),this.content="",this.pdfDictionary=new o.a,this.internalColor=new r.a,this.darkness=1,void 0===t?this.initialize():(this.initialize(),this.bounds=t)}return Object.defineProperty(t.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerColor",{get:function(){return this.internalColor},set:function(t){this.internalColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.rectangle},set:function(t){this.rectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.textFont},set:function(t){this.textFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stringFormat",{get:function(){return this.format},set:function(t){this.format=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this.textBrush},set:function(t){this.textBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.content},set:function(t){this.content=t,this.dictionary.items.setValue(this.dictionaryProperties.contents,new u.b(this.content))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return this.pdfDictionary},set:function(t){this.pdfDictionary=t},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.pdfDictionary.annotationBeginSave=new o.e(this),this.pdfDictionary.items.setValue(this.dictionaryProperties.type,new c.a(this.dictionaryProperties.annot))},t.prototype.setPage=function(t){this.pdfPage=t,this.pdfDictionary.items.setValue(this.dictionaryProperties.p,new h.b(this.pdfPage))},t.prototype.beginSave=function(){this.save()},t.prototype.save=function(){var t=new n.c(this.rectangle.x,this.rectangle.y,this.rectangle.width,this.rectangle.height),e=this.pdfPage.section,i=t.height,r=e.pointToNativePdf(this.page,new n.a(t.x,t.y));t.x=r.x,t.width=r.x+t.width,t.y=r.y-this.page.document.pageSettings.margins.top,t.height=t.y-i,this.pdfDictionary.items.setValue(this.dictionaryProperties.rect,s.a.fromRectangle(t)),this.dictionary.items.setValue(this.dictionaryProperties.ca,new a.a(this.darkness))},Object.defineProperty(t.prototype,"element",{get:function(){return this.pdfDictionary},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(63),n=i(3),o=i(62),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e,i){var r=t.call(this,e)||this;return void 0!==i&&(r.uri=i),r}return s(e,t),Object.defineProperty(e.prototype,"uriAction",{get:function(){return void 0===this.pdfUriAction&&(this.pdfUriAction=new o.a),this.pdfUriAction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this.uriAction.uri},set:function(t){this.uriAction.uri!==t&&(this.uriAction.uri=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"action",{get:function(){return this.getSetAction()},set:function(t){this.getSetAction(t),this.uriAction.next=t},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.dictionary.items.setValue(this.dictionaryProperties.subtype,new n.a(this.dictionaryProperties.link));this.uriAction.element;this.dictionary.items.setValue(this.dictionaryProperties.a,this.uriAction.element)},e}(r.a)},function(t,e,i){"use strict";function r(t){return"[object String]"===Object.prototype.toString.call(t)?"$s"+t:"$o"+t.toString()}e.a=r},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(146),n=(i.n(r),i(20)),o=function(){function t(t){this.isStreamCopied=!1,t instanceof n.a&&(this.document=t)}return Object.defineProperty(t.prototype,"pdfObjects",{get:function(){return this.objects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"crossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentSavingObj",{get:function(){return this.currentSavingObject},set:function(t){this.currentSavingObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"catalog",{get:function(){return this.pdfCatalog},set:function(t){this.pdfCatalog=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewerPreferences",{get:function(){return this.pdfCatalog.viewerPreferences},enumerable:!0,configurable:!0}),t.prototype.setMainObjectCollection=function(t){this.objects=t},t.prototype.setCrossTable=function(t){this.pdfCrossTable=t},t.prototype.setCatalog=function(t){this.pdfCatalog=t},t.prototype.save=function(t){var e=this,i=new r.Encoding(!0),n=new r.StreamWriter(i);if(void 0===t){var o=new r.Encoding(!0),s=new r.StreamWriter(o);return new Promise(function(t,i){var r={};r.blobData=new Blob([e.document.docSave(s,!0)],{type:"application/pdf"}),t(r)})}this.document.docSave(n,t,!0)},t.prototype.clone=function(){return this.document},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return h}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return u}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return c});var r,n=i(1),o=i(4),s=i(33),a=i(3),h=function(){function t(t){this._dictionaryProperties=new n.a,this._centerWindow=!1,this._fitWindow=!1,this._displayTitle=!1,this._splitWindow=!1,this._hideMenuBar=!1,this._hideToolBar=!1,this._hideWindowUI=!1,this._pageMode=r.UseNone,this._pageLayout=u.SinglePage,this._dictionary=new o.a,this._duplex=l.None,this._catalog=t}return Object.defineProperty(t.prototype,"centerWindow",{get:function(){return this._centerWindow},set:function(t){this._centerWindow=t,this._dictionary.items.setValue(this._dictionaryProperties.centerWindow,new s.a(this._centerWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayTitle",{get:function(){return this._displayTitle},set:function(t){this._displayTitle=t,this._dictionary.items.setValue(this._dictionaryProperties.displayTitle,new s.a(this._displayTitle))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fitWindow",{get:function(){return this._fitWindow},set:function(t){this._fitWindow=t,this._dictionary.items.setValue(this._dictionaryProperties.fitWindow,new s.a(this._fitWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideMenuBar",{get:function(){return this._hideMenuBar},set:function(t){this._hideMenuBar=t,this._dictionary.items.setValue(this._dictionaryProperties.hideMenuBar,new s.a(this._hideMenuBar))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideToolBar",{get:function(){return this._hideToolBar},set:function(t){this._hideToolBar=t,this._dictionary.items.setValue(this._dictionaryProperties.hideToolBar,new s.a(this._hideToolBar))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideWindowUI",{get:function(){return this._hideWindowUI},set:function(t){this._hideWindowUI=t,this._dictionary.items.setValue(this._dictionaryProperties.hideWindowUI,new s.a(this._hideWindowUI))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageMode",{get:function(){return this._pageMode},set:function(t){this._pageMode=t,this._catalog.items.setValue(this._dictionaryProperties.pageMode,new a.a(this._mapPageMode(this._pageMode)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duplex",{get:function(){return this._duplex},set:function(t){this._duplex=t,this._catalog.items.setValue(this._dictionaryProperties.duplex,new a.a(this._mapDuplexMode(this._duplex)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageLayout",{get:function(){return this._pageLayout},set:function(t){this._pageLayout=t,this._catalog.items.setValue(this._dictionaryProperties.pageLayout,new a.a(this._mapPageLayout(this._pageLayout)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageScaling",{get:function(){return this._pageScaling},set:function(t){this._pageScaling=t,this._pageScaling===c.AppDefault&&this._dictionary.items.containsKey(this._dictionaryProperties.printScaling)?this._dictionary.items.remove(this._dictionaryProperties.printScaling):this._pageScaling===c.None&&this._dictionary.items.setValue(this._dictionaryProperties.printScaling,new a.a("None"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._dictionary},enumerable:!0,configurable:!0}),t.prototype._mapDuplexMode=function(t){switch(t){case l.Simplex:return"Simplex";case l.DuplexFlipShortEdge:return"DuplexFlipShortEdge";case l.DuplexFlipLongEdge:return"DuplexFlipLongEdge";case l.None:return"None"}},t.prototype._mapPageMode=function(t){switch(t){case r.UseNone:return"UseNone";case r.UseOutlines:return"UseOutlines";case r.UseThumbs:return"UseThumbs";case r.FullScreen:return"FullScreen";case r.UseOC:return"UseOC";case r.UseAttachments:return"UseAttachments"}},t.prototype._mapPageLayout=function(t){switch(t){case u.SinglePage:return"SinglePage";case u.OneColumn:return"OneColumn";case u.TwoColumnLeft:return"TwoColumnLeft";case u.TwoColumnRight:return"TwoColumnRight";case u.TwoPageLeft:return"TwoPageLeft";case u.TwoPageRight:return"TwoPageRight"}},t}();!function(t){t[t.UseNone=0]="UseNone",t[t.UseOutlines=1]="UseOutlines",t[t.UseThumbs=2]="UseThumbs",t[t.FullScreen=3]="FullScreen",t[t.UseOC=4]="UseOC",t[t.UseAttachments=5]="UseAttachments"}(r||(r={}));var u;!function(t){t[t.SinglePage=0]="SinglePage",t[t.OneColumn=1]="OneColumn",t[t.TwoColumnLeft=2]="TwoColumnLeft",t[t.TwoColumnRight=3]="TwoColumnRight",t[t.TwoPageLeft=4]="TwoPageLeft",t[t.TwoPageRight=5]="TwoPageRight"}(u||(u={}));var l;!function(t){t[t.Simplex=0]="Simplex",t[t.DuplexFlipShortEdge=1]="DuplexFlipShortEdge",t[t.DuplexFlipLongEdge=2]="DuplexFlipLongEdge",t[t.None=3]="None"}(l||(l={}));var c;!function(t){t[t.AppDefault=0]="AppDefault",t[t.None=1]="None"}(c||(c={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r;!function(t){t[t.Location=0]="Location",t[t.FitToPage=1]="FitToPage",t[t.FitR=2]="FitR"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(1),n=function(){function t(t){this.mDictionary=null,this.mDictionaryProperties=new r.a,this.mDictionary=t}return Object.defineProperty(t.prototype,"domain",{get:function(){return this.mDictionary.items.getValue(this.mDictionaryProperties.domain)},set:function(t){this.mDictionary.items.setValue(this.mDictionaryProperties.domain,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return this.mDictionary.items.getValue(this.mDictionaryProperties.range)},set:function(t){this.mDictionary.items.setValue(this.mDictionaryProperties.range,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return this.mDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.mDictionary},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(6),n=i(71),o=i(13),s=i(5),a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e,i,r,n){var a=t.call(this,new o.a)||this;return void 0===e?a.dictionary.items.setValue(a.mDictionaryProperties.functionType,new s.a(0)):(a.dictionary.items.setValue(a.mDictionaryProperties.functionType,new s.a(0)),a.checkParams(e,i,r,n),a.setDomainAndRange(e,i),a.setSizeAndValues(r,n)),a}return a(e,t),e.prototype.checkParams=function(t,e,i,r){e.length,t.length,r.length},e.prototype.setDomainAndRange=function(t,e){this.domain=new r.a(t),this.range=new r.a(e)},e.prototype.setSizeAndValues=function(t,e){var i=this.dictionary;i.isResource=!0,this.dictionary.items.setValue(this.mDictionaryProperties.size,new r.a(t)),this.dictionary.items.setValue(this.mDictionaryProperties.bitsPerSample,new s.a(8)),i.writeBytes(e)},e}(n.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(10),n=function(){function t(){this.referenceObjects=[],this.pdfFontCollection=new r.a}return t.prototype.search=function(t){var e=null,i=this.getGroup(t);return null==i?i=this.createNewGroup():i.length>0&&(e=i[0]),i.push(t),e},t.prototype.createNewGroup=function(){var t=[];return this.referenceObjects.push(t),t},t.prototype.getGroup=function(t){var e=null;if(null!==t)for(var i=this.referenceObjects.length,r=0;r<i;r++){if(this.referenceObjects.length>0){var n=this.referenceObjects[r];if(n.length>0){var o=n[0];if(t.equalsTo(o)){e=n;break}}else this.removeGroup(n)}i=this.referenceObjects.length}return e},t.prototype.removeGroup=function(t){if(null!==t){var e=this.referenceObjects.indexOf(t);this.referenceObjects.slice(e,e+1)}},t.prototype.destroy=function(){this.pdfFontCollection=void 0,this.referenceObjects=void 0},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return Object.defineProperty(t.prototype,"count",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"list",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return s});var r=i(2),n=i(9),o=i(34),s=function(){function t(t){this.precision=1e3}return Object.defineProperty(t.prototype,"factors",{get:function(){return this.mFactors},set:function(t){if(null==t)throw new Error("ArgumentNullException : Factors");this.mFactors=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this.mPositions},set:function(t){for(var e=t,i=0;i<e.length;i++)(e[i]<0||e[i]>1)&&(e[i]=0);this.mPositions=e,this.mPositions=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.mCount},enumerable:!0,configurable:!0}),t.prototype.generateColorBlend=function(t,e){if(null==t)throw new Error("ArgumentNullException : colours");null==this.positions&&(this.positions=[0]);var i=new o.a(this.count),r=this.positions,n=null;if(1===r.length)r=[3],r[0]=0,r[1]=this.positions[0],r[2]=1,n=new Array(3),n[0]=t[0],n[1]=t[0],n[2]=t[1];else{var s=t[0],a=t[1];n=new Array(this.count);var h=0,u=this.count;for(h=0;h<u;++h)n[h]=this.interpolate(this.mFactors[h],s,a,e)}return i.positions=r,i.colors=n,i},t.prototype.clonePdfBlend=function(){var t=this;return null!=this.mFactors&&(t.factors=this.mFactors),null!=this.positions&&(t.positions=this.positions),t},t.prototype.gcd=function(t,e){if("number"==typeof t&&"number"==typeof e&&void 0!==e){if(t<0||t>1)throw new Error("ArgumentOutOfRangeException : u");if(e<0||e>1)throw new Error("ArgumentOutOfRangeException : v");var i=Math.max(1,t*this.precision),r=Math.max(1,e*this.precision);return this.gcdInt(i,r)/this.precision}var n=t;if(null==n)throw new Error("ArgumentNullException : values");if(n.length<1)throw new Error("ArgumentException : Not enough values in the array. - values");var o=n[0];if(n.length>1)for(var s=n.length,a=1;a<s&&(o=this.gcd(n[a],o))!==1/this.precision;++a);return o},t.prototype.gcdInt=function(t,e){if(t<=0)throw new Error("ArgumentOutOfRangeException"+t+"The arguments cannot be less or equal to zero.");if(e<=0)throw new Error("ArgumentOutOfRangeException"+e+"The arguments cannot be less or equal to zero.");if(1===t||1===e)return 1;for(var i=0;this.isEven(t,e);)++i,t>>=1,e>>=1;for(;(1&t)<=0;)t>>=1;do{for(;(1&e)<=0;)e>>=1;if(t>e){var r=e;e=t,t=r}e-=t}while(0!==e);return t<<i},t.prototype.isEven=function(t,e){if("number"==typeof e&&void 0!==e){var i=!0;return i=i&&(1&t)<=0,i=i&&(1&e)<=0}return(1&t)<=0},t.prototype.interpolate=function(t,e,i,o){if(e instanceof n.a){var s=new n.a;switch(o){case r.i.Rgb:var a=this.interpolate(t,e.red,i.red),h=this.interpolate(t,e.green,i.green),u=this.interpolate(t,e.blue,i.blue);s=new n.a(a,h,u);break;case r.i.GrayScale:var l=this.interpolate(t,e.gray,i.gray);s=new n.a(l);break;case r.i.Cmyk:var c=this.interpolate(t,e.c,i.c),d=this.interpolate(t,e.m,i.m),f=this.interpolate(t,e.y,i.y),p=this.interpolate(t,e.k,i.k);s=new n.a(c,d,f,p)}return s}return 0===t?e:1===t?i:e+(i-e)/1*(t-0)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){this.pdf="PDF",this.text="Text",this.imageB="ImageB",this.imageC="ImageC",this.imageI="ImageI"}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return l}),i.d(e,"b",function(){return c}),i.d(e,"c",function(){return d});var r=i(12),n=i(0),o=i(14),s=i(21),a=i(9),h=i(43),u=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=function(t){function e(e){return t.call(this,e)||this}return u(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return t.prototype.getElement.call(this)},enumerable:!0,configurable:!0}),e.prototype.layoutInternal=function(t){this.format=null!==this.element.stringFormat&&void 0!==this.element.stringFormat?this.element.stringFormat:null;var e=t.page,i=t.bounds,r=this.element.value,n=null,o=new c;for(o.page=e,o.remainder=r;;){o=this.layoutOnPage(r,e,i,t),n=this.getLayoutResult(o);break}return n},e.prototype.getLayoutResult=function(t){return new d(t.page,t.bounds,t.remainder,t.lastLineBounds)},e.prototype.layoutOnPage=function(t,e,i,r){var u=new c;u.remainder=t,u.page=e,i=this.checkCorrectBounds(e,i);var l=new o.a,d=l.layout(t,this.element.font,this.format,i,e.getClientSize().height,!1,new n.b(0,0)),f=null==d.remainder,p=r.format.break===s.b.FitElement,g=(p||d.empty,e.graphics),m=this.element.getBrush();this.element instanceof h.a&&(m.color=new a.a(0,0,255)),g.drawStringLayoutResult(d,this.element.font,this.element.pen,m,i,this.format);d.lines[d.lineCount-1];return u.lastLineBounds=g.getLineBounds(d.lineCount-1,d,this.element.font,i,this.format),u.bounds=this.getTextPageBounds(e,i,d),u.remainder=d.remainder,u.end=f,u},e.prototype.checkCorrectBounds=function(t,e){var i=t.graphics.clientSize;return e.height=e.height>0?e.height:i.height-e.y,e},e.prototype.getTextPageBounds=function(t,e,i){var r=i.actualSize,o=e.x,s=e.y,a=e.width>0?e.width:r.width,h=r.height;return o=t.graphics.checkCorrectLayoutRectangle(r,e.x,e.y,this.format).x,s+=t.graphics.getTextVerticalAlignShift(r.height,e.height,this.format),new n.c(o,s,a,h)},e}(r.a),c=function(){function t(){}return t}(),d=function(t){function e(e,i,r,n){var o=t.call(this,e,i)||this;return o.remainderText=r,o.lastLineTextBounds=n,o}return u(e,t),Object.defineProperty(e.prototype,"remainder",{get:function(){return this.remainderText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastLineBounds",{get:function(){return this.lastLineTextBounds},enumerable:!0,configurable:!0}),e}(r.d)},function(t,e,i){"use strict";i.d(e,"a",function(){return y});var r=i(35),n=i(11),o=i(22),s=i(37),a=i(15),h=i(12),u=i(77),l=i(18),c=i(9),d=i(0),f=i(12),p=i(14),g=i(2),m=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),y=function(t){function e(e,i,r,s,h){var u=t.call(this)||this;return u.content="",u.elementValue="",u.hasPointOverload=!1,u.isPdfTextElement=!1,void 0===e||("string"==typeof e&&void 0===i?(u.content=e,u.elementValue=e):"string"==typeof e&&i instanceof o.a&&void 0===r?(u.content=e,u.elementValue=e,u.pdfFont=i):"string"==typeof e&&i instanceof o.a&&r instanceof a.a&&void 0===s?(u.content=e,u.elementValue=e,u.pdfFont=i,u.pdfPen=r):"string"==typeof e&&i instanceof o.a&&r instanceof n.a&&void 0===s?(u.content=e,u.elementValue=e,u.pdfFont=i,u.pdfBrush=r):(u.content=e,u.elementValue=e,u.pdfFont=i,u.pdfPen=r,u.pdfBrush=s,u.format=h)),u}return m(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this.content},set:function(t){this.elementValue=t,this.content=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.elementValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pen",{get:function(){return this.pdfPen},set:function(t){this.pdfPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return this.pdfBrush},set:function(t){this.pdfBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.pdfFont},set:function(t){this.pdfFont=t,this.pdfFont instanceof s.a&&null!=this.content?this.elementValue=s.a.convert(this.content):this.elementValue=this.content},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stringFormat",{get:function(){return this.format},set:function(t){this.format=t},enumerable:!0,configurable:!0}),e.prototype.getBrush=function(){return null==this.pdfBrush||void 0===this.pdfBrush?new l.a(new c.a(0,0,0)):this.pdfBrush},e.prototype.layout=function(t){return new u.a(this).layout(t)},e.prototype.drawText=function(t,e,i,r){if(e instanceof d.a&&void 0===e.width&&void 0===i)return this.hasPointOverload=!0,this.drawText(t,e.x,e.y);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.hasPointOverload=!0,this.drawText(t,e,i,null);if(e instanceof d.c&&void 0!==e.width&&void 0===i)return this.drawText(t,e,null);if(e instanceof d.a&&void 0===e.width&&i instanceof f.b)return this.hasPointOverload=!0,this.drawText(t,e.x,e.y,i);if("number"==typeof e&&"number"==typeof i&&(r instanceof f.b||null==r)){this.hasPointOverload=!0;var n=t.graphics.clientSize.width-e,o=new d.c(e,i,n,0);return this.drawText(t,o,r)}if(e instanceof d.c&&void 0!==e.width&&"boolean"==typeof i)return this.drawText(t,e,null);var s=new p.a;if(this.hasPointOverload){var a=s.layout(this.value,this.font,this.stringFormat,new d.b(t.graphics.clientSize.width-e.x,0),!0,t.graphics.clientSize),u=void 0,l=new h.c,c=e,g=i;l.page=t;if(l.bounds=c,l.format=null!=g?g:new f.b,a.lines.length>1){if(this.text=a.layoutLines[0].text,l.bounds.y<=l.page.graphics.clientSize.height){var m=new d.a(l.bounds.x,l.bounds.y);u=this.layout(l);for(var y=new d.c(0,u.bounds.y+a.lineHeight,t.graphics.clientSize.width,a.lineHeight),b=1;b<a.lines.length;b++)if(l.page=u.page,l.bounds=new d.c(new d.a(y.x,y.y),new d.b(y.width,y.height)),this.text=a.layoutLines[b].text,y.y+a.lineHeight>u.page.graphics.clientSize.height&&(!0,l.page=l.page.graphics.getNextPage(),y=m.y>u.page.graphics.clientSize.height-u.bounds.height?new d.c(0,u.bounds.height,u.page.graphics.clientSize.width,a.lineHeight):new d.c(0,0,u.page.graphics.clientSize.width,a.lineHeight),l.bounds=y),u=this.layout(l),b!==a.lines.length-1)y=new d.c(0,u.bounds.y+a.lineHeight,u.page.graphics.clientSize.width,a.lineHeight);else{var w=this.font.measureString(this.text,this.format).width;u=this.calculateResultBounds(u,w,u.page.graphics.clientSize.width,0)}}return u}var v=this.font.measureString(this.text,this.format);return l.bounds.y<=l.page.graphics.clientSize.height&&(u=this.layout(l),u=this.calculateResultBounds(u,v.width,u.page.graphics.clientSize.width,0)),u}var u=s.layout(this.value,this.font,this.stringFormat,new d.b(e.width,0),!1,t.graphics.clientSize),S=void 0,l=new h.c,c=e,g=i;if(l.page=t,l.bounds=c,l.format=null!=g?g:new f.b,u.lines.length>1){if(this.text=u.layoutLines[0].text,l.bounds.y<=l.page.graphics.clientSize.height){var m=new d.a(l.bounds.x,l.bounds.y);S=this.layout(l);for(var y=new d.c(c.x,S.bounds.y+u.lineHeight,c.width,u.lineHeight),b=1;b<u.lines.length;b++)if(l.page=S.page,l.bounds=new d.c(y.x,y.y,y.width,y.height),this.text=u.layoutLines[b].text,y.y+u.lineHeight>S.page.graphics.clientSize.height&&(!0,l.page=l.page.graphics.getNextPage(),y=m.y>S.page.graphics.clientSize.height-S.bounds.height?new d.c(c.x,u.lineHeight,c.width,u.lineHeight):new d.c(c.x,0,c.width,u.lineHeight),l.bounds=y),S=this.layout(l),b!==u.lines.length-1)y=new d.c(c.x,S.bounds.y+u.lineHeight,c.width,u.lineHeight);else{var w=this.font.measureString(this.text,this.format).width;S=this.calculateResultBounds(S,w,c.width,c.x)}}return S}var v=this.font.measureString(this.text,this.format);return l.bounds.y<=l.page.graphics.clientSize.height&&(S=this.layout(l),S=this.calculateResultBounds(S,v.width,c.width,c.x)),S},e.prototype.calculateResultBounds=function(t,e,i,r){return null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===g.c.Center?(t.bounds.x=r+(i-e)/2,t.bounds.width=e):null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===g.c.Right?(t.bounds.x=r+(i-e),t.bounds.width=e):null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===g.c.Justify?(t.bounds.x=r,t.bounds.width=i):(t.bounds.width=r,t.bounds.width=e),t},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(7),n=i(36),o=function(){function t(){}return t.getMetrics=function(t,e,i){var n=null;switch(t){case r.b.Helvetica:n=this.getHelveticaMetrics(t,e,i);break;case r.b.Courier:n=this.getCourierMetrics(t,e,i);break;case r.b.TimesRoman:n=this.getTimesMetrics(t,e,i);break;case r.b.Symbol:n=this.getSymbolMetrics(t,e,i);break;case r.b.ZapfDingbats:n=this.getZapfDingbatsMetrics(t,e,i);break;default:n=this.getHelveticaMetrics(r.b.Helvetica,e,i)}return n.name=t.toString(),n.subScriptSizeFactor=this.subSuperScriptFactor,n.superscriptSizeFactor=this.subSuperScriptFactor,n},t.getHelveticaMetrics=function(t,e,i){var o=new n.a;return(e&r.a.Bold)>0&&(e&r.a.Italic)>0?(o.ascent=this.helveticaBoldItalicAscent,o.descent=this.helveticaBoldItalicDescent,o.postScriptName=this.helveticaBoldItalicName,o.size=i,o.widthTable=new n.c(this.arialBoldWidth),o.height=o.ascent-o.descent):(e&r.a.Bold)>0?(o.ascent=this.helveticaBoldAscent,o.descent=this.helveticaBoldDescent,o.postScriptName=this.helveticaBoldName,o.size=i,o.widthTable=new n.c(this.arialBoldWidth),o.height=o.ascent-o.descent):(e&r.a.Italic)>0?(o.ascent=this.helveticaItalicAscent,o.descent=this.helveticaItalicDescent,o.postScriptName=this.helveticaItalicName,o.size=i,o.widthTable=new n.c(this.arialWidth),o.height=o.ascent-o.descent):(o.ascent=this.helveticaAscent,o.descent=this.helveticaDescent,o.postScriptName=this.helveticaName,o.size=i,o.widthTable=new n.c(this.arialWidth),o.height=o.ascent-o.descent),o},t.getCourierMetrics=function(t,e,i){var o=new n.a;return(e&r.a.Bold)>0&&(e&r.a.Italic)>0?(o.ascent=this.courierBoldItalicAscent,o.descent=this.courierBoldItalicDescent,o.postScriptName=this.courierBoldItalicName,o.size=i,o.widthTable=new n.c(this.fixedWidth),o.height=o.ascent-o.descent):(e&r.a.Bold)>0?(o.ascent=this.courierBoldAscent,o.descent=this.courierBoldDescent,o.postScriptName=this.courierBoldName,o.size=i,o.widthTable=new n.c(this.fixedWidth),o.height=o.ascent-o.descent):(e&r.a.Italic)>0?(o.ascent=this.courierItalicAscent,o.descent=this.courierItalicDescent,o.postScriptName=this.courierItalicName,o.size=i,o.widthTable=new n.c(this.fixedWidth),o.height=o.ascent-o.descent):(o.ascent=this.courierAscent,o.descent=this.courierDescent,o.postScriptName=this.courierName,o.size=i,o.widthTable=new n.c(this.fixedWidth),o.height=o.ascent-o.descent),o},t.getTimesMetrics=function(t,e,i){var o=new n.a;return(e&r.a.Bold)>0&&(e&r.a.Italic)>0?(o.ascent=this.timesBoldItalicAscent,o.descent=this.timesBoldItalicDescent,o.postScriptName=this.timesBoldItalicName,o.size=i,o.widthTable=new n.c(this.timesRomanBoldItalicWidths),o.height=o.ascent-o.descent):(e&r.a.Bold)>0?(o.ascent=this.timesBoldAscent,o.descent=this.timesBoldDescent,o.postScriptName=this.timesBoldName,o.size=i,o.widthTable=new n.c(this.timesRomanBoldWidth),o.height=o.ascent-o.descent):(e&r.a.Italic)>0?(o.ascent=this.timesItalicAscent,o.descent=this.timesItalicDescent,o.postScriptName=this.timesItalicName,o.size=i,o.widthTable=new n.c(this.timesRomanItalicWidth),o.height=o.ascent-o.descent):(o.ascent=this.timesAscent,o.descent=this.timesDescent,o.postScriptName=this.timesName,o.size=i,o.widthTable=new n.c(this.timesRomanWidth),o.height=o.ascent-o.descent),o},t.getSymbolMetrics=function(t,e,i){var r=new n.a;return r.ascent=this.symbolAscent,r.descent=this.symbolDescent,r.postScriptName=this.symbolName,r.size=i,r.widthTable=new n.c(this.symbolWidth),r.height=r.ascent-r.descent,r},t.getZapfDingbatsMetrics=function(t,e,i){var r=new n.a;return r.ascent=this.zapfDingbatsAscent,r.descent=this.zapfDingbatsDescent,r.postScriptName=this.zapfDingbatsName,r.size=i,r.widthTable=new n.c(this.zapfDingbatsWidth),r.height=r.ascent-r.descent,r},t.subSuperScriptFactor=1.52,t.helveticaAscent=931,t.helveticaDescent=-225,t.helveticaName="Helvetica",t.helveticaBoldAscent=962,t.helveticaBoldDescent=-228,t.helveticaBoldName="Helvetica-Bold",t.helveticaItalicAscent=931,t.helveticaItalicDescent=-225,t.helveticaItalicName="Helvetica-Oblique",t.helveticaBoldItalicAscent=962,t.helveticaBoldItalicDescent=-228,t.helveticaBoldItalicName="Helvetica-BoldOblique",t.courierAscent=805,t.courierDescent=-250,t.courierName="Courier",t.courierBoldAscent=801,t.courierBoldDescent=-250,t.courierBoldName="Courier-Bold",t.courierItalicAscent=805,t.courierItalicDescent=-250,t.courierItalicName="Courier-Oblique",t.courierBoldItalicAscent=801,t.courierBoldItalicDescent=-250,t.courierBoldItalicName="Courier-BoldOblique",t.timesAscent=898,t.timesDescent=-218,t.timesName="Times-Roman",t.timesBoldAscent=935,t.timesBoldDescent=-218,t.timesBoldName="Times-Bold",t.timesItalicAscent=883,t.timesItalicDescent=-217,t.timesItalicName="Times-Italic",t.timesBoldItalicAscent=921,t.timesBoldItalicDescent=-218,t.timesBoldItalicName="Times-BoldItalic",t.symbolAscent=1010,t.symbolDescent=-293,t.symbolName="Symbol",t.zapfDingbatsAscent=820,t.zapfDingbatsDescent=-143,t.zapfDingbatsName="ZapfDingbats",t.arialWidth=[278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,0,556,0,222,556,333,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,222,222,333,333,350,556,1e3,333,1e3,500,333,944,0,500,667,0,333,556,556,556,556,260,556,333,737,370,556,584,0,737,333,400,584,333,333,333,556,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,584,611,556,556,556,556,500,556,500],t.arialBoldWidth=[278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,0,556,0,278,556,500,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,278,278,500,500,350,556,1e3,333,1e3,556,333,944,0,500,667,0,333,556,556,556,556,280,556,333,737,370,556,584,0,737,333,400,584,333,333,333,611,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,584,611,611,611,611,611,556,611,556],t.fixedWidth=[600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600],t.timesRomanWidth=[250,333,408,500,500,833,778,180,333,333,500,564,250,333,250,278,500,500,500,500,500,500,500,500,500,500,278,278,564,564,564,444,921,722,667,667,722,611,556,722,722,333,389,722,611,889,722,722,556,722,667,556,611,722,722,944,722,722,611,333,278,333,469,500,333,444,500,444,500,444,333,500,500,278,278,500,278,778,500,500,500,500,333,389,278,500,500,722,500,500,444,480,200,480,541,0,500,0,333,500,444,1e3,500,500,333,1e3,556,333,889,0,611,0,0,333,333,444,444,350,500,1e3,333,980,389,333,722,0,444,722,0,333,500,500,500,500,200,500,333,760,276,500,564,0,760,333,400,564,300,300,333,500,453,250,333,300,310,500,750,750,750,444,722,722,722,722,722,722,889,667,611,611,611,611,333,333,333,333,722,722,722,722,722,722,722,564,722,722,722,722,722,722,556,500,444,444,444,444,444,444,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,564,500,500,500,500,500,500,500,500],t.timesRomanBoldWidth=[250,333,555,500,500,1e3,833,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,930,722,667,722,722,667,611,778,778,389,500,778,667,944,722,778,611,778,722,556,667,722,722,1e3,722,722,667,333,278,333,581,500,333,500,556,444,556,444,333,500,556,278,333,556,278,833,556,500,556,556,444,389,333,556,500,722,500,500,444,394,220,394,520,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,1e3,0,667,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,444,722,0,333,500,500,500,500,220,500,333,747,300,500,570,0,747,333,400,570,300,300,333,556,540,250,333,300,330,500,750,750,750,500,722,722,722,722,722,722,1e3,722,667,667,667,667,389,389,389,389,722,722,778,778,778,778,778,570,778,722,722,722,722,722,611,556,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,500,556,500],t.timesRomanItalicWidth=[250,333,420,500,500,833,778,214,333,333,500,675,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,675,675,675,500,920,611,611,667,722,611,611,722,722,333,444,667,556,833,667,722,611,722,611,500,556,722,611,833,611,556,556,389,278,389,422,500,333,500,500,444,500,444,278,500,500,278,278,444,278,722,500,500,500,500,389,389,278,500,444,667,444,444,389,400,275,400,541,0,500,0,333,500,556,889,500,500,333,1e3,500,333,944,0,556,0,0,333,333,556,556,350,500,889,333,980,389,333,667,0,389,556,0,389,500,500,500,500,275,500,333,760,276,500,675,0,760,333,400,675,300,300,333,500,523,250,333,300,310,500,750,750,750,500,611,611,611,611,611,611,889,667,611,611,611,611,333,333,333,333,722,667,722,722,722,722,722,675,722,722,722,722,722,556,611,500,500,500,500,500,500,500,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,675,500,500,500,500,500,444,500,444],t.timesRomanBoldItalicWidths=[250,389,555,500,500,833,778,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,832,667,667,667,722,667,667,722,778,389,500,667,611,889,722,722,611,722,667,556,611,722,667,889,667,611,611,333,278,333,570,500,333,500,500,444,500,444,333,500,556,278,278,500,278,778,556,500,500,500,389,389,278,556,444,667,500,444,389,348,220,348,570,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,944,0,611,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,389,611,0,389,500,500,500,500,220,500,333,747,266,500,606,0,747,333,400,570,300,300,333,576,500,250,333,300,300,500,750,750,750,500,667,667,667,667,667,667,944,667,667,667,667,667,389,389,389,389,722,722,722,722,722,722,722,570,722,722,722,722,722,611,611,500,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,444,500,444],t.symbolWidth=[250,333,713,500,549,833,778,439,333,333,500,549,250,549,250,278,500,500,500,500,500,500,500,500,500,500,278,278,549,549,549,444,549,722,667,722,612,611,763,603,722,333,631,722,686,889,722,722,768,741,556,592,611,690,439,768,645,795,611,333,863,333,658,500,500,631,549,549,494,439,521,411,603,329,603,549,549,576,521,549,549,521,549,603,439,576,713,686,493,686,494,480,200,480,549,750,620,247,549,167,713,500,753,753,753,753,1042,987,603,987,603,400,549,411,549,549,713,494,460,549,549,549,549,1e3,603,1e3,658,823,686,795,987,768,768,823,768,768,713,713,713,713,713,713,713,768,713,790,790,890,823,549,250,713,603,603,1042,987,603,987,603,494,329,790,790,786,713,384,384,384,384,384,384,494,494,494,494,329,274,686,686,686,384,384,384,384,384,384,494,494,494,-1],t.zapfDingbatsWidth=[278,974,961,974,980,719,789,790,791,690,960,939,549,855,911,933,911,945,974,755,846,762,761,571,677,763,760,759,754,494,552,537,577,692,786,788,788,790,793,794,816,823,789,841,823,833,816,831,923,744,723,749,790,792,695,776,768,792,759,707,708,682,701,826,815,789,789,707,687,696,689,786,787,713,791,785,791,873,761,762,762,759,759,892,892,788,784,438,138,277,415,392,392,668,668,390,390,317,317,276,276,509,509,410,410,234,234,334,334,732,544,544,910,667,760,760,776,595,694,626,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,894,838,1016,458,748,924,748,918,927,928,928,834,873,828,924,924,917,930,931,463,883,836,836,867,867,696,696,874,874,760,946,771,865,771,888,967,888,831,873,927,970,918],t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var r=i(10),n=function(){function t(){this.indexes=[],this.indexLevels=[],this.mirroringShapeCharacters=new r.a,this.update()}return t.prototype.doMirrorShaping=function(t){for(var e=[],i=0;i<t.length;i++)1==(1&this.indexLevels[i])&&this.mirroringShapeCharacters.containsKey(t[i].charCodeAt(0))?e[i]=String.fromCharCode(this.mirroringShapeCharacters.getValue(t[i].charCodeAt(0))):e[i]=t[i].toString();for(var r="",n=0;n<e.length;n++)r+=e[n];return r},t.prototype.getLogicalToVisualString=function(t,e){var i=new o;this.indexLevels=i.getVisualOrder(t,e),this.setDefaultIndexLevel(),this.doOrder(0,this.indexLevels.length-1);for(var r=this.doMirrorShaping(t),n="",s=0;s<this.indexes.length;s++){n+=r[this.indexes[s]]}return n.toString()},t.prototype.setDefaultIndexLevel=function(){for(var t=0;t<this.indexLevels.length;t++)this.indexes[t]=t},t.prototype.doOrder=function(t,e){for(var i=this.indexLevels[t],r=i,n=i,o=i,s=t+1;s<=e;++s){var a=this.indexLevels[s];a>i?i=a:a<r&&(r=a),n&=a,o|=a}if(0!=(1&o)){if(1==(1&n))return void this.reArrange(t,e+1);for(r|=1;i>=r;){for(var h=t;;){for(;h<=e&&!(this.indexLevels[h]>=i);)h+=1;if(h>e)break;for(var u=h+1;u<=e&&!(this.indexLevels[u]<i);)u+=1;this.reArrange(h,u),h=u+1}i-=1}}},t.prototype.reArrange=function(t,e){var i=(t+e)/2;for(--e;t<i;++t,--e){var r=this.indexes[t];this.indexes[t]=this.indexes[e],this.indexes[e]=r}},t.prototype.update=function(){this.mirroringShapeCharacters.setValue(40,41),this.mirroringShapeCharacters.setValue(41,40),this.mirroringShapeCharacters.setValue(60,62),this.mirroringShapeCharacters.setValue(62,60),this.mirroringShapeCharacters.setValue(91,93),this.mirroringShapeCharacters.setValue(93,91),this.mirroringShapeCharacters.setValue(123,125),this.mirroringShapeCharacters.setValue(125,123),this.mirroringShapeCharacters.setValue(171,187),this.mirroringShapeCharacters.setValue(187,171),this.mirroringShapeCharacters.setValue(8249,8250),this.mirroringShapeCharacters.setValue(8250,8249),this.mirroringShapeCharacters.setValue(8261,8262),this.mirroringShapeCharacters.setValue(8262,8261),this.mirroringShapeCharacters.setValue(8317,8318),this.mirroringShapeCharacters.setValue(8318,8317),this.mirroringShapeCharacters.setValue(8333,8334),this.mirroringShapeCharacters.setValue(8334,8333),this.mirroringShapeCharacters.setValue(8712,8715),this.mirroringShapeCharacters.setValue(8713,8716),this.mirroringShapeCharacters.setValue(8714,8717),this.mirroringShapeCharacters.setValue(8715,8712),this.mirroringShapeCharacters.setValue(8716,8713),this.mirroringShapeCharacters.setValue(8717,8714),this.mirroringShapeCharacters.setValue(8725,10741),this.mirroringShapeCharacters.setValue(8764,8765),this.mirroringShapeCharacters.setValue(8765,8764),this.mirroringShapeCharacters.setValue(8771,8909),this.mirroringShapeCharacters.setValue(8786,8787),this.mirroringShapeCharacters.setValue(8787,8786),this.mirroringShapeCharacters.setValue(8788,8789),this.mirroringShapeCharacters.setValue(8789,8788),this.mirroringShapeCharacters.setValue(8804,8805),this.mirroringShapeCharacters.setValue(8805,8804),this.mirroringShapeCharacters.setValue(8806,8807),this.mirroringShapeCharacters.setValue(8807,8806),this.mirroringShapeCharacters.setValue(8808,8809),this.mirroringShapeCharacters.setValue(8809,8808),this.mirroringShapeCharacters.setValue(8810,8811),this.mirroringShapeCharacters.setValue(8811,8810),this.mirroringShapeCharacters.setValue(8814,8815),this.mirroringShapeCharacters.setValue(8815,8814),this.mirroringShapeCharacters.setValue(8816,8817),this.mirroringShapeCharacters.setValue(8817,8816),this.mirroringShapeCharacters.setValue(8818,8819),this.mirroringShapeCharacters.setValue(8819,8818),this.mirroringShapeCharacters.setValue(8820,8821),this.mirroringShapeCharacters.setValue(8821,8820),this.mirroringShapeCharacters.setValue(8822,8823),this.mirroringShapeCharacters.setValue(8823,8822),this.mirroringShapeCharacters.setValue(8824,8825),this.mirroringShapeCharacters.setValue(8825,8824),this.mirroringShapeCharacters.setValue(8826,8827),this.mirroringShapeCharacters.setValue(8827,8826),this.mirroringShapeCharacters.setValue(8828,8829),this.mirroringShapeCharacters.setValue(8829,8828),this.mirroringShapeCharacters.setValue(8830,8831),this.mirroringShapeCharacters.setValue(8831,8830),this.mirroringShapeCharacters.setValue(8832,8833),this.mirroringShapeCharacters.setValue(8833,8832),this.mirroringShapeCharacters.setValue(8834,8835),this.mirroringShapeCharacters.setValue(8835,8834),this.mirroringShapeCharacters.setValue(8836,8837),this.mirroringShapeCharacters.setValue(8837,8836),this.mirroringShapeCharacters.setValue(8838,8839),this.mirroringShapeCharacters.setValue(8839,8838),this.mirroringShapeCharacters.setValue(8840,8841),this.mirroringShapeCharacters.setValue(8841,8840),this.mirroringShapeCharacters.setValue(8842,8843),this.mirroringShapeCharacters.setValue(8843,8842),this.mirroringShapeCharacters.setValue(8847,8848),this.mirroringShapeCharacters.setValue(8848,8847),this.mirroringShapeCharacters.setValue(8849,8850),this.mirroringShapeCharacters.setValue(8850,8849),this.mirroringShapeCharacters.setValue(8856,10680),this.mirroringShapeCharacters.setValue(8866,8867),this.mirroringShapeCharacters.setValue(8867,8866),this.mirroringShapeCharacters.setValue(8870,10974),this.mirroringShapeCharacters.setValue(8872,10980),this.mirroringShapeCharacters.setValue(8873,10979),this.mirroringShapeCharacters.setValue(8875,10981),this.mirroringShapeCharacters.setValue(8880,8881),this.mirroringShapeCharacters.setValue(8881,8880),this.mirroringShapeCharacters.setValue(8882,8883),this.mirroringShapeCharacters.setValue(8883,8882),this.mirroringShapeCharacters.setValue(8884,8885),this.mirroringShapeCharacters.setValue(8885,8884),this.mirroringShapeCharacters.setValue(8886,8887),this.mirroringShapeCharacters.setValue(8887,8886),this.mirroringShapeCharacters.setValue(8905,8906),this.mirroringShapeCharacters.setValue(8906,8905),this.mirroringShapeCharacters.setValue(8907,8908),this.mirroringShapeCharacters.setValue(8908,8907),this.mirroringShapeCharacters.setValue(8909,8771),this.mirroringShapeCharacters.setValue(8912,8913),this.mirroringShapeCharacters.setValue(8913,8912),this.mirroringShapeCharacters.setValue(8918,8919),this.mirroringShapeCharacters.setValue(8919,8918),this.mirroringShapeCharacters.setValue(8920,8921),this.mirroringShapeCharacters.setValue(8921,8920),this.mirroringShapeCharacters.setValue(8922,8923),this.mirroringShapeCharacters.setValue(8923,8922),this.mirroringShapeCharacters.setValue(8924,8925),this.mirroringShapeCharacters.setValue(8925,8924),this.mirroringShapeCharacters.setValue(8926,8927),this.mirroringShapeCharacters.setValue(8927,8926),this.mirroringShapeCharacters.setValue(8928,8929),this.mirroringShapeCharacters.setValue(8929,8928),this.mirroringShapeCharacters.setValue(8930,8931),this.mirroringShapeCharacters.setValue(8931,8930),this.mirroringShapeCharacters.setValue(8932,8933),this.mirroringShapeCharacters.setValue(8933,8932),this.mirroringShapeCharacters.setValue(8934,8935),this.mirroringShapeCharacters.setValue(8935,8934),this.mirroringShapeCharacters.setValue(8936,8937),this.mirroringShapeCharacters.setValue(8937,8936),this.mirroringShapeCharacters.setValue(8938,8939),this.mirroringShapeCharacters.setValue(8939,8938),this.mirroringShapeCharacters.setValue(8940,8941),this.mirroringShapeCharacters.setValue(8941,8940),this.mirroringShapeCharacters.setValue(8944,8945),this.mirroringShapeCharacters.setValue(8945,8944),this.mirroringShapeCharacters.setValue(8946,8954),this.mirroringShapeCharacters.setValue(8947,8955),this.mirroringShapeCharacters.setValue(8948,8956),this.mirroringShapeCharacters.setValue(8950,8957),this.mirroringShapeCharacters.setValue(8951,8958),this.mirroringShapeCharacters.setValue(8954,8946),this.mirroringShapeCharacters.setValue(8955,8947),this.mirroringShapeCharacters.setValue(8956,8948),this.mirroringShapeCharacters.setValue(8957,8950),this.mirroringShapeCharacters.setValue(8958,8951),this.mirroringShapeCharacters.setValue(8968,8969),this.mirroringShapeCharacters.setValue(8969,8968),this.mirroringShapeCharacters.setValue(8970,8971),this.mirroringShapeCharacters.setValue(8971,8970),this.mirroringShapeCharacters.setValue(9001,9002),this.mirroringShapeCharacters.setValue(9002,9001),this.mirroringShapeCharacters.setValue(10088,10089),this.mirroringShapeCharacters.setValue(10089,10088),this.mirroringShapeCharacters.setValue(10090,10091),this.mirroringShapeCharacters.setValue(10091,10090),this.mirroringShapeCharacters.setValue(10092,10093),this.mirroringShapeCharacters.setValue(10093,10092),this.mirroringShapeCharacters.setValue(10094,10095),this.mirroringShapeCharacters.setValue(10095,10094),this.mirroringShapeCharacters.setValue(10096,10097),this.mirroringShapeCharacters.setValue(10097,10096),this.mirroringShapeCharacters.setValue(10098,10099),this.mirroringShapeCharacters.setValue(10099,10098),this.mirroringShapeCharacters.setValue(10100,10101),this.mirroringShapeCharacters.setValue(10101,10100),this.mirroringShapeCharacters.setValue(10197,10198),this.mirroringShapeCharacters.setValue(10198,10197),this.mirroringShapeCharacters.setValue(10205,10206),this.mirroringShapeCharacters.setValue(10206,10205),this.mirroringShapeCharacters.setValue(10210,10211),this.mirroringShapeCharacters.setValue(10211,10210),this.mirroringShapeCharacters.setValue(10212,10213),this.mirroringShapeCharacters.setValue(10213,10212),this.mirroringShapeCharacters.setValue(10214,10215),this.mirroringShapeCharacters.setValue(10215,10214),this.mirroringShapeCharacters.setValue(10216,10217),this.mirroringShapeCharacters.setValue(10217,10216),this.mirroringShapeCharacters.setValue(10218,10219),this.mirroringShapeCharacters.setValue(10219,10218),this.mirroringShapeCharacters.setValue(10627,10628),this.mirroringShapeCharacters.setValue(10628,10627),this.mirroringShapeCharacters.setValue(10629,10630),this.mirroringShapeCharacters.setValue(10630,10629),this.mirroringShapeCharacters.setValue(10631,10632),this.mirroringShapeCharacters.setValue(10632,10631),this.mirroringShapeCharacters.setValue(10633,10634),this.mirroringShapeCharacters.setValue(10634,10633),this.mirroringShapeCharacters.setValue(10635,10636),this.mirroringShapeCharacters.setValue(10636,10635),this.mirroringShapeCharacters.setValue(10637,10640),this.mirroringShapeCharacters.setValue(10638,10639),this.mirroringShapeCharacters.setValue(10639,10638),this.mirroringShapeCharacters.setValue(10640,10637),this.mirroringShapeCharacters.setValue(10641,10642),this.mirroringShapeCharacters.setValue(10642,10641),this.mirroringShapeCharacters.setValue(10643,10644),this.mirroringShapeCharacters.setValue(10644,10643),this.mirroringShapeCharacters.setValue(10645,10646),this.mirroringShapeCharacters.setValue(10646,10645),this.mirroringShapeCharacters.setValue(10647,10648),this.mirroringShapeCharacters.setValue(10648,10647),this.mirroringShapeCharacters.setValue(10680,8856),this.mirroringShapeCharacters.setValue(10688,10689),this.mirroringShapeCharacters.setValue(10689,10688),this.mirroringShapeCharacters.setValue(10692,10693),this.mirroringShapeCharacters.setValue(10693,10692),this.mirroringShapeCharacters.setValue(10703,10704),this.mirroringShapeCharacters.setValue(10704,10703),this.mirroringShapeCharacters.setValue(10705,10706),this.mirroringShapeCharacters.setValue(10706,10705),this.mirroringShapeCharacters.setValue(10708,10709),this.mirroringShapeCharacters.setValue(10709,10708),this.mirroringShapeCharacters.setValue(10712,10713);this.mirroringShapeCharacters.setValue(10713,10712),this.mirroringShapeCharacters.setValue(10714,10715),this.mirroringShapeCharacters.setValue(10715,10714),this.mirroringShapeCharacters.setValue(10741,8725),this.mirroringShapeCharacters.setValue(10744,10745),this.mirroringShapeCharacters.setValue(10745,10744),this.mirroringShapeCharacters.setValue(10748,10749),this.mirroringShapeCharacters.setValue(10749,10748),this.mirroringShapeCharacters.setValue(10795,10796),this.mirroringShapeCharacters.setValue(10796,10795),this.mirroringShapeCharacters.setValue(10797,10796),this.mirroringShapeCharacters.setValue(10798,10797),this.mirroringShapeCharacters.setValue(10804,10805),this.mirroringShapeCharacters.setValue(10805,10804),this.mirroringShapeCharacters.setValue(10812,10813),this.mirroringShapeCharacters.setValue(10813,10812),this.mirroringShapeCharacters.setValue(10852,10853),this.mirroringShapeCharacters.setValue(10853,10852),this.mirroringShapeCharacters.setValue(10873,10874),this.mirroringShapeCharacters.setValue(10874,10873),this.mirroringShapeCharacters.setValue(10877,10878),this.mirroringShapeCharacters.setValue(10878,10877),this.mirroringShapeCharacters.setValue(10879,10880),this.mirroringShapeCharacters.setValue(10880,10879),this.mirroringShapeCharacters.setValue(10881,10882),this.mirroringShapeCharacters.setValue(10882,10881),this.mirroringShapeCharacters.setValue(10883,10884),this.mirroringShapeCharacters.setValue(10884,10883),this.mirroringShapeCharacters.setValue(10891,10892),this.mirroringShapeCharacters.setValue(10892,10891),this.mirroringShapeCharacters.setValue(10897,10898),this.mirroringShapeCharacters.setValue(10898,10897),this.mirroringShapeCharacters.setValue(10899,10900),this.mirroringShapeCharacters.setValue(10900,10899),this.mirroringShapeCharacters.setValue(10901,10902),this.mirroringShapeCharacters.setValue(10902,10901),this.mirroringShapeCharacters.setValue(10903,10904),this.mirroringShapeCharacters.setValue(10904,10903),this.mirroringShapeCharacters.setValue(10905,10906),this.mirroringShapeCharacters.setValue(10906,10905),this.mirroringShapeCharacters.setValue(10907,10908),this.mirroringShapeCharacters.setValue(10908,10907),this.mirroringShapeCharacters.setValue(10913,10914),this.mirroringShapeCharacters.setValue(10914,10913),this.mirroringShapeCharacters.setValue(10918,10919),this.mirroringShapeCharacters.setValue(10919,10918),this.mirroringShapeCharacters.setValue(10920,10921),this.mirroringShapeCharacters.setValue(10921,10920),this.mirroringShapeCharacters.setValue(10922,10923),this.mirroringShapeCharacters.setValue(10923,10922),this.mirroringShapeCharacters.setValue(10924,10925),this.mirroringShapeCharacters.setValue(10925,10924),this.mirroringShapeCharacters.setValue(10927,10928),this.mirroringShapeCharacters.setValue(10928,10927),this.mirroringShapeCharacters.setValue(10931,10932),this.mirroringShapeCharacters.setValue(10932,10931),this.mirroringShapeCharacters.setValue(10939,10940),this.mirroringShapeCharacters.setValue(10940,10939),this.mirroringShapeCharacters.setValue(10941,10942),this.mirroringShapeCharacters.setValue(10942,10941),this.mirroringShapeCharacters.setValue(10943,10944),this.mirroringShapeCharacters.setValue(10944,10943),this.mirroringShapeCharacters.setValue(10945,10946),this.mirroringShapeCharacters.setValue(10946,10945),this.mirroringShapeCharacters.setValue(10947,10948),this.mirroringShapeCharacters.setValue(10948,10947),this.mirroringShapeCharacters.setValue(10949,10950),this.mirroringShapeCharacters.setValue(10950,10949),this.mirroringShapeCharacters.setValue(10957,10958),this.mirroringShapeCharacters.setValue(10958,10957),this.mirroringShapeCharacters.setValue(10959,10960),this.mirroringShapeCharacters.setValue(10960,10959),this.mirroringShapeCharacters.setValue(10961,10962),this.mirroringShapeCharacters.setValue(10962,10961),this.mirroringShapeCharacters.setValue(10963,10964),this.mirroringShapeCharacters.setValue(10964,10963),this.mirroringShapeCharacters.setValue(10965,10966),this.mirroringShapeCharacters.setValue(10966,10965),this.mirroringShapeCharacters.setValue(10974,8870),this.mirroringShapeCharacters.setValue(10979,8873),this.mirroringShapeCharacters.setValue(10980,8872),this.mirroringShapeCharacters.setValue(10981,8875),this.mirroringShapeCharacters.setValue(10988,10989),this.mirroringShapeCharacters.setValue(10989,10988),this.mirroringShapeCharacters.setValue(10999,11e3),this.mirroringShapeCharacters.setValue(11e3,10999),this.mirroringShapeCharacters.setValue(11001,11002),this.mirroringShapeCharacters.setValue(11002,11001),this.mirroringShapeCharacters.setValue(12296,12297),this.mirroringShapeCharacters.setValue(12297,12296),this.mirroringShapeCharacters.setValue(12298,12299),this.mirroringShapeCharacters.setValue(12299,12298),this.mirroringShapeCharacters.setValue(12300,12301),this.mirroringShapeCharacters.setValue(12301,12300),this.mirroringShapeCharacters.setValue(12302,12303),this.mirroringShapeCharacters.setValue(12303,12302),this.mirroringShapeCharacters.setValue(12304,12305),this.mirroringShapeCharacters.setValue(12305,12304),this.mirroringShapeCharacters.setValue(12308,12309),this.mirroringShapeCharacters.setValue(12309,12308),this.mirroringShapeCharacters.setValue(12310,12311),this.mirroringShapeCharacters.setValue(12311,12310),this.mirroringShapeCharacters.setValue(12312,12313),this.mirroringShapeCharacters.setValue(12313,12312),this.mirroringShapeCharacters.setValue(12314,12315),this.mirroringShapeCharacters.setValue(12315,12314),this.mirroringShapeCharacters.setValue(65288,65289),this.mirroringShapeCharacters.setValue(65289,65288),this.mirroringShapeCharacters.setValue(65308,65310),this.mirroringShapeCharacters.setValue(65310,65308),this.mirroringShapeCharacters.setValue(65339,65341),this.mirroringShapeCharacters.setValue(65341,65339),this.mirroringShapeCharacters.setValue(65371,65373),this.mirroringShapeCharacters.setValue(65373,65371),this.mirroringShapeCharacters.setValue(65375,65376),this.mirroringShapeCharacters.setValue(65376,65375),this.mirroringShapeCharacters.setValue(65378,65379),this.mirroringShapeCharacters.setValue(65379,65378)},t}(),o=function(){function t(){this.types=[],this.textOrder=-1,this.rtlCharacterTypes=new Array(65536),this.L=0,this.LRE=1,this.LRO=2,this.R=3,this.AL=4,this.RLE=5,this.RLO=6,this.PDF=7,this.EN=8,this.ES=9,this.ET=10,this.AN=11,this.CS=12,this.NSM=13,this.BN=14,this.B=15,this.S=16,this.WS=17,this.ON=18,this.charTypes=[this.L,this.EN,this.BN,this.ES,this.ES,this.S,this.ET,this.ET,this.B,this.AN,this.AN,this.S,this.CS,this.CS,this.WS,this.NSM,this.NSM,this.B,this.BN,27,this.BN,28,30,this.B,31,31,this.S,32,32,this.WS,33,34,this.ON,35,37,this.ET,38,42,this.ON,43,43,this.ET,44,44,this.CS,45,45,this.ET,46,46,this.CS,47,47,this.CS,48,57,this.EN,58,58,this.CS,59,64,this.ON,65,90,this.L,91,96,this.ON,97,122,this.L,123,126,this.ON,127,132,this.BN,133,133,this.B,134,159,this.BN,160,160,this.CS,161,161,this.ON,162,165,this.ET,166,169,this.ON,170,170,this.L,171,175,this.ON,176,177,this.ET,178,179,this.EN,180,180,this.ON,181,181,this.L,182,184,this.ON,185,185,this.EN,186,186,this.L,187,191,this.ON,192,214,this.L,215,215,this.ON,216,246,this.L,247,247,this.ON,248,696,this.L,697,698,this.ON,699,705,this.L,706,719,this.ON,720,721,this.L,722,735,this.ON,736,740,this.L,741,749,this.ON,750,750,this.L,751,767,this.ON,768,855,this.NSM,856,860,this.L,861,879,this.NSM,880,883,this.L,884,885,this.ON,886,893,this.L,894,894,this.ON,895,899,this.L,900,901,this.ON,902,902,this.L,903,903,this.ON,904,1013,this.L,1014,1014,this.ON,1015,1154,this.L,1155,1158,this.NSM,1159,1159,this.L,1160,1161,this.NSM,1162,1417,this.L,1418,1418,this.ON,1419,1424,this.L,1425,1441,this.NSM,1442,1442,this.L,1443,1465,this.NSM,1466,1466,this.L,1467,1469,this.NSM,1470,1470,this.R,1471,1471,this.NSM,1472,1472,this.R,1473,1474,this.NSM,1475,1475,this.R,1476,1476,this.NSM,1477,1487,this.L,1488,1514,this.R,1515,1519,this.L,1520,1524,this.R,1525,1535,this.L,1536,1539,this.AL,1540,1547,this.L,1548,1548,this.CS,1549,1549,this.AL,1550,1551,this.ON,1552,1557,this.NSM,1558,1562,this.L,1563,1563,this.AL,1564,1566,this.L,1567,1567,this.AL,1568,1568,this.L,1569,1594,this.AL,1595,1599,this.L,1600,1610,this.AL,1611,1624,this.NSM,1625,1631,this.L,1632,1641,this.AN,1642,1642,this.ET,1643,1644,this.AN,1645,1647,this.AL,1648,1648,this.NSM,1649,1749,this.AL,1750,1756,this.NSM,1757,1757,this.AL,1758,1764,this.NSM,1765,1766,this.AL,1767,1768,this.NSM,1769,1769,this.ON,1770,1773,this.NSM,1774,1775,this.AL,1776,1785,this.EN,1786,1805,this.AL,1806,1806,this.L,1807,1807,this.BN,1808,1808,this.AL,1809,1809,this.NSM,1810,1839,this.AL,1840,1866,this.NSM,1867,1868,this.L,1869,1871,this.AL,1872,1919,this.L,1920,1957,this.AL,1958,1968,this.NSM,1969,1969,this.AL,1970,2304,this.L,2305,2306,this.NSM,2307,2363,this.L,2364,2364,this.NSM,2365,2368,this.L,2369,2376,this.NSM,2377,2380,this.L,2381,2381,this.NSM,2382,2384,this.L,2385,2388,this.NSM,2389,2401,this.L,2402,2403,this.NSM,2404,2432,this.L,2433,2433,this.NSM,2434,2491,this.L,2492,2492,this.NSM,2493,2496,this.L,2497,2500,this.NSM,2501,2508,this.L,2509,2509,this.NSM,2510,2529,this.L,2530,2531,this.NSM,2532,2545,this.L,2546,2547,this.ET,2548,2560,this.L,2561,2562,this.NSM,2563,2619,this.L,2620,2620,this.NSM,2621,2624,this.L,2625,2626,this.NSM,2627,2630,this.L,2631,2632,this.NSM,2633,2634,this.L,2635,2637,this.NSM,2638,2671,this.L,2672,2673,this.NSM,2674,2688,this.L,2689,2690,this.NSM,2691,2747,this.L,2748,2748,this.NSM,2749,2752,this.L,2753,2757,this.NSM,2758,2758,this.L,2759,2760,this.NSM,2761,2764,this.L,2765,2765,this.NSM,2766,2785,this.L,2786,2787,this.NSM,2788,2800,this.L,2801,2801,this.ET,2802,2816,this.L,2817,2817,this.NSM,2818,2875,this.L,2876,2876,this.NSM,2877,2878,this.L,2879,2879,this.NSM,2880,2880,this.L,2881,2883,this.NSM,2884,2892,this.L,2893,2893,this.NSM,2894,2901,this.L,2902,2902,this.NSM,2903,2945,this.L,2946,2946,this.NSM,2947,3007,this.L,3008,3008,this.NSM,3009,3020,this.L,3021,3021,this.NSM,3022,3058,this.L,3059,3064,this.ON,3065,3065,this.ET,3066,3066,this.ON,3067,3133,this.L,3134,3136,this.NSM,3137,3141,this.L,3142,3144,this.NSM,3145,3145,this.L,3146,3149,this.NSM,3150,3156,this.L,3157,3158,this.NSM,3159,3259,this.L,3260,3260,this.NSM,3261,3275,this.L,3276,3277,this.NSM,3278,3392,this.L,3393,3395,this.NSM,3396,3404,this.L,3405,3405,this.NSM,3406,3529,this.L,3530,3530,this.NSM,3531,3537,this.L,3538,3540,this.NSM,3541,3541,this.L,3542,3542,this.NSM,3543,3632,this.L,3633,3633,this.NSM,3634,3635,this.L,3636,3642,this.NSM,3643,3646,this.L,3647,3647,this.ET,3648,3654,this.L,3655,3662,this.NSM,3663,3760,this.L,3761,3761,this.NSM,3762,3763,this.L,3764,3769,this.NSM,3770,3770,this.L,3771,3772,this.NSM,3773,3783,this.L,3784,3789,this.NSM,3790,3863,this.L,3864,3865,this.NSM,3866,3892,this.L,3893,3893,this.NSM,3894,3894,this.L,3895,3895,this.NSM,3896,3896,this.L,3897,3897,this.NSM,3898,3901,this.ON,3902,3952,this.L,3953,3966,this.NSM,3967,3967,this.L,3968,3972,this.NSM,3973,3973,this.L,3974,3975,this.NSM,3976,3983,this.L,3984,3991,this.NSM,3992,3992,this.L,3993,4028,this.NSM,4029,4037,this.L,4038,4038,this.NSM,4039,4140,this.L,4141,4144,this.NSM,4145,4145,this.L,4146,4146,this.NSM,4147,4149,this.L,4150,4151,this.NSM,4152,4152,this.L,4153,4153,this.NSM,4154,4183,this.L,4184,4185,this.NSM,4186,5759,this.L,5760,5760,this.WS,5761,5786,this.L,5787,5788,this.ON,5789,5905,this.L,5906,5908,this.NSM,5909,5937,this.L,5938,5940,this.NSM,5941,5969,this.L,5970,5971,this.NSM,5972,6001,this.L,6002,6003,this.NSM,6004,6070,this.L,6071,6077,this.NSM,6078,6085,this.L,6086,6086,this.NSM,6087,6088,this.L,6089,6099,this.NSM,6100,6106,this.L,6107,6107,this.ET,6108,6108,this.L,6109,6109,this.NSM,6110,6127,this.L,6128,6137,this.ON,6138,6143,this.L,6144,6154,this.ON,6155,6157,this.NSM,6158,6158,this.WS,6159,6312,this.L,6313,6313,this.NSM,6314,6431,this.L,6432,6434,this.NSM,6435,6438,this.L,6439,6443,this.NSM,6444,6449,this.L,6450,6450,this.NSM,6451,6456,this.L,6457,6459,this.NSM,6460,6463,this.L,6464,6464,this.ON,6465,6467,this.L,6468,6469,this.ON,6470,6623,this.L,6624,6655,this.ON,6656,8124,this.L,8125,8125,this.ON,8126,8126,this.L,8127,8129,this.ON,8130,8140,this.L,8141,8143,this.ON,8144,8156,this.L,8157,8159,this.ON,8160,8172,this.L,8173,8175,this.ON,8176,8188,this.L,8189,8190,this.ON,8191,8191,this.L,8192,8202,this.WS,8203,8205,this.BN,8206,8206,this.L,8207,8207,this.R,8208,8231,this.ON,8232,8232,this.WS,8233,8233,this.B,8234,8234,this.LRE,8235,8235,this.RLE,8236,8236,this.PDF,8237,8237,this.LRO,8238,8238,this.RLO,8239,8239,this.WS,8240,8244,this.ET,8245,8276,this.ON,8277,8278,this.L,8279,8279,this.ON,8280,8286,this.L,8287,8287,this.WS,8288,8291,this.BN,8292,8297,this.L,8298,8303,this.BN,8304,8304,this.EN,8305,8307,this.L,8308,8313,this.EN,8314,8315,this.ET,8316,8318,this.ON,8319,8319,this.L,8320,8329,this.EN,8330,8331,this.ET,8332,8334,this.ON,8335,8351,this.L,8352,8369,this.ET,8370,8399,this.L,8400,8426,this.NSM,8427,8447,this.L,8448,8449,this.ON,8450,8450,this.L,8451,8454,this.ON,8455,8455,this.L,8456,8457,this.ON,8458,8467,this.L,8468,8468,this.ON,8469,8469,this.L,8470,8472,this.ON,8473,8477,this.L,8478,8483,this.ON,8484,8484,this.L,8485,8485,this.ON,8486,8486,this.L,8487,8487,this.ON,8488,8488,this.L,8489,8489,this.ON,8490,8493,this.L,8494,8494,this.ET,8495,8497,this.L,8498,8498,this.ON,8499,8505,this.L,8506,8507,this.ON,8508,8511,this.L,8512,8516,this.ON,8517,8521,this.L,8522,8523,this.ON,8524,8530,this.L,8531,8543,this.ON,8544,8591,this.L,8592,8721,this.ON,8722,8723,this.ET,8724,9013,this.ON,9014,9082,this.L,9083,9108,this.ON,9109,9109,this.L,9110,9168,this.ON,9169,9215,this.L,9216,9254,this.ON,9255,9279,this.L,9280,9290,this.ON,9291,9311,this.L,9312,9371,this.EN,9372,9449,this.L,9450,9450,this.EN,9451,9751,this.ON,9752,9752,this.L,9753,9853,this.ON,9854,9855,this.L,9856,9873,this.ON,9874,9887,this.L,9888,9889,this.ON,9890,9984,this.L,9985,9988,this.ON,9989,9989,this.L,9990,9993,this.ON,9994,9995,this.L,9996,10023,this.ON,10024,10024,this.L,10025,10059,this.ON,10060,10060,this.L,10061,10061,this.ON,10062,10062,this.L,10063,10066,this.ON,10067,10069,this.L,10070,10070,this.ON,10071,10071,this.L,10072,10078,this.ON,10079,10080,this.L,10081,10132,this.ON,10133,10135,this.L,10136,10159,this.ON,10160,10160,this.L,10161,10174,this.ON,10175,10191,this.L,10192,10219,this.ON,10220,10223,this.L,10224,11021,this.ON,11022,11903,this.L,11904,11929,this.ON,11930,11930,this.L,11931,12019,this.ON,12020,12031,this.L,12032,12245,this.ON,12246,12271,this.L,12272,12283,this.ON,12284,12287,this.L,12288,12288,this.WS,12289,12292,this.ON,12293,12295,this.L,12296,12320,this.ON,12321,12329,this.L,12330,12335,this.NSM,12336,12336,this.ON,12337,12341,this.L,12342,12343,this.ON,12344,12348,this.L,12349,12351,this.ON,12352,12440,this.L,12441,12442,this.NSM,12443,12444,this.ON,12445,12447,this.L,12448,12448,this.ON,12449,12538,this.L,12539,12539,this.ON,12540,12828,this.L,12829,12830,this.ON,12831,12879,this.L,12880,12895,this.ON,12896,12923,this.L,12924,12925,this.ON,12926,12976,this.L,12977,12991,this.ON,12992,13003,this.L,13004,13007,this.ON,13008,13174,this.L,13175,13178,this.ON,13179,13277,this.L,13278,13279,this.ON,13280,13310,this.L,13311,13311,this.ON,13312,19903,this.L,19904,19967,this.ON,19968,42127,this.L,42128,42182,this.ON,42183,64284,this.L,64285,64285,this.R,64286,64286,this.NSM,64287,64296,this.R,64297,64297,this.ET,64298,64310,this.R,64311,64311,this.L,64312,64316,this.R,64317,64317,this.L,64318,64318,this.R,64319,64319,this.L,64320,64321,this.R,64322,64322,this.L,64323,64324,this.R,64325,64325,this.L,64326,64335,this.R,64336,64433,this.AL,64434,64466,this.L,64467,64829,this.AL,64830,64831,this.ON,64832,64847,this.L,64848,64911,this.AL,64912,64913,this.L,64914,64967,this.AL,64968,65007,this.L,65008,65020,this.AL,65021,65021,this.ON,65022,65023,this.L,65024,65039,this.NSM,65040,65055,this.L,65056,65059,this.NSM,65060,65071,this.L,65072,65103,this.ON,65104,65104,this.CS,65105,65105,this.ON,65106,65106,this.CS,65107,65107,this.L,65108,65108,this.ON,65109,65109,this.CS,65110,65118,this.ON,65119,65119,this.ET,65120,65121,this.ON,65122,65123,this.ET,65124,65126,this.ON,65127,65127,this.L,65128,65128,this.ON,65129,65130,this.ET,65131,65131,this.ON,65132,65135,this.L,65136,65140,this.AL,65141,65141,this.L,65142,65276,this.AL,65277,65278,this.L,65279,65279,this.BN,65280,65280,this.L,65281,65282,this.ON,65283,65285,this.ET,65286,65290,this.ON,65291,65291,this.ET,65292,65292,this.CS,65293,65293,this.ET,65294,65294,this.CS,65295,65295,this.ES,65296,65305,this.EN,65306,65306,this.CS,65307,65312,this.ON,65313,65338,this.L,65339,65344,this.ON,65345,65370,this.L,65371,65381,this.ON,65382,65503,this.L,65504,65505,this.ET,65506,65508,this.ON,65509,65510,this.ET,65511,65511,this.L,65512,65518,this.ON,65519,65528,this.L,65529,65531,this.BN,65532,65533,this.ON,65534,65535,this.L];for(var t=0;t<this.charTypes.length;++t)for(var e=this.charTypes[t],i=this.charTypes[++t],r=this.charTypes[++t];e<=i;)this.rtlCharacterTypes[e++]=r}return t.prototype.getVisualOrder=function(t,e){this.types=this.getCharacterCode(t),this.textOrder=e?this.LRE:this.L,this.doVisualOrder();for(var i=[],r=0;r<this.levels.length;r++)i[r]=this.levels[r];return i},t.prototype.getCharacterCode=function(t){for(var e=[],i=0;i<t.length;i++)e[i]=this.rtlCharacterTypes[t[i].charCodeAt(0)];return e},t.prototype.setDefaultLevels=function(){for(var t=0;t<this.length;t++)this.levels[t]=this.textOrder},t.prototype.setLevels=function(){this.setDefaultLevels();for(var t=0;t<this.length;++t){var e=this.levels[t];0!=(128&e)&&(e&=127,this.result[t]=0==(1&e)?this.L:this.R),this.levels[t]=e}},t.prototype.updateLevels=function(t,e,i){if(0==(1&e))for(var r=t;r<i;++r)this.result[r]===this.R?this.levels[r]+=1:this.result[r]!==this.L&&(this.levels[r]+=2);else for(var r=t;r<i;++r)this.result[r]!==this.R&&(this.levels[r]+=1)},t.prototype.doVisualOrder=function(){this.length=this.types.length,this.result=this.types,this.levels=[],this.setLevels(),this.length=this.getEmbeddedCharactersLength();for(var t=this.textOrder,e=0;e<this.length;){for(var i=this.levels[e],r=0==(1&Math.max(t,i))?this.L:this.R,n=e+1;n<this.length&&this.levels[n]===i;)++n;var o=n<this.length?this.levels[n]:this.textOrder,s=0==(1&Math.max(o,i))?this.L:this.R;this.checkNSM(e,n,i,r,s),this.updateLevels(e,i,n),t=i,e=n}this.checkEmbeddedCharacters(this.length)},t.prototype.getEmbeddedCharactersLength=function(){for(var t=0,e=0;e<this.length;++e)this.types[e]!==this.LRE&&this.types[e]!==this.RLE&&this.types[e]!==this.LRO&&this.types[e]!==this.RLO&&this.types[e]!==this.PDF&&this.types[e]!==this.BN&&(this.result[t]=this.result[e],this.levels[t]=this.levels[e],t++);return t},t.prototype.checkEmbeddedCharacters=function(t){for(var e=this.types.length-1;e>=0;--e)this.types[e]===this.LRE||this.types[e]===this.RLE||this.types[e]===this.LRO||this.types[e]===this.RLO||this.types[e]===this.PDF||this.types[e]===this.BN?(this.result[e]=this.types[e],this.levels[e]=-1):(t-=1,this.result[e]=this.result[t],this.levels[e]=this.levels[t]);for(var e=0;e<this.types.length;e++)-1===this.levels[e]&&(this.levels[e]=0===e?this.textOrder:this.levels[e-1])},t.prototype.checkNSM=function(t,e,i,r,n){for(var o=r,s=t;s<e;++s)this.result[s]===this.NSM?this.result[s]=o:o=this.result[s];this.checkEuropeanDigits(t,e,i,r,n)},t.prototype.checkEuropeanDigits=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.EN)for(var s=o-1;s>=t;--s)if(this.result[s]===this.L||this.result[s]===this.R||this.result[s]===this.AL){this.result[s]===this.AL&&(this.result[o]=this.AN);break}this.checkArabicCharacters(t,e,i,r,n)},t.prototype.checkArabicCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)this.result[o]===this.AL&&(this.result[o]=this.R);this.checkEuropeanNumberSeparator(t,e,i,r,n)},t.prototype.checkEuropeanNumberSeparator=function(t,e,i,r,n){for(var o=t+1;o<e-1;++o)if(this.result[o]===this.ES||this.result[o]===this.CS){var s=this.result[o-1],a=this.result[o+1];s===this.EN&&a===this.EN?this.result[o]=this.EN:this.result[o]===this.CS&&s===this.AN&&a===this.AN&&(this.result[o]=this.AN)}this.checkEuropeanNumberTerminator(t,e,i,r,n)},t.prototype.checkEuropeanNumberTerminator=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.ET){var s=o,a=[];a.push(this.ET);var h=this.getLength(s,e,a),u=s===t?r:this.result[s-1];if(u!==this.EN&&(u=h===e?n:this.result[h]),u===this.EN)for(var l=s;l<h;++l)this.result[l]=this.EN;o=h}this.checkOtherNeutrals(t,e,i,r,n)},t.prototype.checkOtherNeutrals=function(t,e,i,r,n){for(var o=t;o<e;++o)this.result[o]!==this.ES&&this.result[o]!==this.ET&&this.result[o]!==this.CS||(this.result[o]=this.ON);this.checkOtherCharacters(t,e,i,r,n)},t.prototype.checkOtherCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.EN){for(var s=r,a=o-1;a>=t;--a)if(this.result[a]===this.L||this.result[a]===this.R){s=this.result[a];break}s===this.L&&(this.result[o]=this.L)}this.checkCommanCharacters(t,e,i,r,n)},t.prototype.getLength=function(t,e,i){for(--t;++t<e;){for(var r=this.result[t],n=0;n<i.length;++n)r===i[n]&&(t=this.getLength(++t,e,i));return t}return e},t.prototype.checkCommanCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.WS||this.result[o]===this.ON||this.result[o]===this.B||this.result[o]===this.S){var s=o,a=[this.B,this.S,this.WS,this.ON],h=this.getLength(s,e,a),u=0,l=0,c=0;s===t?u=r:(u=this.result[s-1],u===this.AN?u=this.R:u===this.EN&&(u=this.R)),h===e?l=n:(l=this.result[h],l===this.AN?l=this.R:l===this.EN&&(l=this.R)),c=u===l?u:0==(1&i)?this.L:this.R;for(var d=s;d<h;++d)this.result[d]=c;o=h}},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var r=i(10),n=function(){function t(){this.arabicCharTable=[["ء","ﺀ"],["آ","ﺁ","ﺂ"],["أ","ﺃ","ﺄ"],["ؤ","ﺅ","ﺆ"],["إ","ﺇ","ﺈ"],["ئ","ﺉ","ﺊ","ﺋ","ﺌ"],["ا","ﺍ","ﺎ"],["ب","ﺏ","ﺐ","ﺑ","ﺒ"],["ة","ﺓ","ﺔ"],["ت","ﺕ","ﺖ","ﺗ","ﺘ"],["ث","ﺙ","ﺚ","ﺛ","ﺜ"],["ج","ﺝ","ﺞ","ﺟ","ﺠ"],["ح","ﺡ","ﺢ","ﺣ","ﺤ"],["خ","ﺥ","ﺦ","ﺧ","ﺨ"],["د","ﺩ","ﺪ"],["ذ","ﺫ","ﺬ"],["ر","ﺭ","ﺮ"],["ز","ﺯ","ﺰ"],["س","ﺱ","ﺲ","ﺳ","ﺴ"],["ش","ﺵ","ﺶ","ﺷ","ﺸ"],["ص","ﺹ","ﺺ","ﺻ","ﺼ"],["ض","ﺽ","ﺾ","ﺿ","ﻀ"],["ط","ﻁ","ﻂ","ﻃ","ﻄ"],["ظ","ﻅ","ﻆ","ﻇ","ﻈ"],["ع","ﻉ","ﻊ","ﻋ","ﻌ"],["غ","ﻍ","ﻎ","ﻏ","ﻐ"],["ـ","ـ","ـ","ـ","ـ"],["ف","ﻑ","ﻒ","ﻓ","ﻔ"],["ق","ﻕ","ﻖ","ﻗ","ﻘ"],["ك","ﻙ","ﻚ","ﻛ","ﻜ"],["ل","ﻝ","ﻞ","ﻟ","ﻠ"],["م","ﻡ","ﻢ","ﻣ","ﻤ"],["ن","ﻥ","ﻦ","ﻧ","ﻨ"],["ه","ﻩ","ﻪ","ﻫ","ﻬ"],["و","ﻭ","ﻮ"],["ى","ﻯ","ﻰ","ﯨ","ﯩ"],["ي","ﻱ","ﻲ","ﻳ","ﻴ"],["ٱ","ﭐ","ﭑ"],["ٹ","ﭦ","ﭧ","ﭨ","ﭩ"],["ٺ","ﭞ","ﭟ","ﭠ","ﭡ"],["ٻ","ﭒ","ﭓ","ﭔ","ﭕ"],["پ","ﭖ","ﭗ","ﭘ","ﭙ"],["ٿ","ﭢ","ﭣ","ﭤ","ﭥ"],["ڀ","ﭚ","ﭛ","ﭜ","ﭝ"],["ڃ","ﭶ","ﭷ","ﭸ","ﭹ"],["ڄ","ﭲ","ﭳ","ﭴ","ﭵ"],["چ","ﭺ","ﭻ","ﭼ","ﭽ"],["ڇ","ﭾ","ﭿ","ﮀ","ﮁ"],["ڈ","ﮈ","ﮉ"],["ڌ","ﮄ","ﮅ"],["ڍ","ﮂ","ﮃ"],["ڎ","ﮆ","ﮇ"],["ڑ","ﮌ","ﮍ"],["ژ","ﮊ","ﮋ"],["ڤ","ﭪ","ﭫ","ﭬ","ﭭ"],["ڦ","ﭮ","ﭯ","ﭰ","ﭱ"],["ک","ﮎ","ﮏ","ﮐ","ﮑ"],["ڭ","ﯓ","ﯔ","ﯕ","ﯖ"],["گ","ﮒ","ﮓ","ﮔ","ﮕ"],["ڱ","ﮚ","ﮛ","ﮜ","ﮝ"],["ڳ","ﮖ","ﮗ","ﮘ","ﮙ"],["ں","ﮞ","ﮟ"],["ڻ","ﮠ","ﮡ","ﮢ","ﮣ"],["ھ","ﮪ","ﮫ","ﮬ","ﮭ"],["ۀ","ﮤ","ﮥ"],["ہ","ﮦ","ﮧ","ﮨ","ﮩ"],["ۅ","ﯠ","ﯡ"],["ۆ","ﯙ","ﯚ"],["ۇ","ﯗ","ﯘ"],["ۈ","ﯛ","ﯜ"],["ۉ","ﯢ","ﯣ"],["ۋ","ﯞ","ﯟ"],["ی","ﯼ","ﯽ","ﯾ","ﯿ"],["ې","ﯤ","ﯥ","ﯦ","ﯧ"],["ے","ﮮ","ﮯ"],["ۓ","ﮰ","ﮱ"]],this.alef="ا",this.alefHamza="أ",this.alefHamzaBelow="إ",this.alefMadda="آ",this.lam="ل",this.hamza="ء",this.zeroWidthJoiner="",this.hamzaAbove="ٔ",this.hamzaBelow="ٕ",this.wawHamza="ؤ",this.yehHamza="ئ",this.waw="و",this.alefMaksura="ى",this.yeh="ي",this.farsiYeh="ی",this.shadda="ّ",this.madda="ٓ",this.lwa="ﻻ",this.lwawh="ﻷ",this.lwawhb="ﻹ",this.lwawm="ﻵ",this.bwhb="ۓ",this.fathatan="ً",this.superScriptalef="ٰ",this.vowel=1,this.arabicMapTable=new r.a;for(var t=0;t<this.arabicCharTable.length;t++)this.arabicMapTable.setValue(this.arabicCharTable[t][0],this.arabicCharTable[t])}return t.prototype.getCharacterShape=function(t,e){if(t>=this.hamza&&t<=this.bwhb){var i=[];if(this.arabicMapTable.getValue(t))return i=this.arabicMapTable.getValue(t),i[e+1]}else if(t>=this.lwawm&&t<=this.lwa)return t;return t},t.prototype.shape=function(t,e){for(var i="",r="",n=0;n<t.length;n++){var o=t[n];if(o>=""&&o<="ۿ")r+=o;else{if(r.length>0){var s=this.doShape(r.toString(),0);i+=s,r=""}i+=o}}if(r.length>0){var s=this.doShape(r.toString(),0);i+=s}return i.toString()},t.prototype.doShape=function(t,e){for(var i="",r=0,n=0,s="",a=new o,h=new o;n<t.length;)if(s=t[n++],0===this.ligature(s,h)){var u=this.getShapeCount(s);r=1===u?0:2,a.Shapes>2&&(r+=1),r%=h.Shapes,h.Value=this.getCharacterShape(h.Value,r),i=this.append(i,a,e),a=h,h=new o,h.Value=s,h.Shapes=u,h.Ligature++}return r=a.Shapes>2?1:0,r%=h.Shapes,h.Value=this.getCharacterShape(h.Value,r),i=this.append(i,a,e),i=this.append(i,h,e),i.toString()},t.prototype.append=function(t,e,i){return""!==e.Value&&(t+=e.Value,e.Ligature-=1,""!==e.Type&&(0==(i&this.vowel)?(t+=e.Type,e.Ligature-=1):e.Ligature-=1),""!==e.vowel&&(0==(i&this.vowel)?(t+=e.vowel,e.Ligature-=1):e.Ligature-=1)),t},t.prototype.ligature=function(t,e){if(""!==e.Value){var i=0;if(t>=this.fathatan&&t<=this.hamzaBelow||t===this.superScriptalef){if(i=1,""!==e.vowel&&t!==this.shadda&&(i=2),t===this.shadda){if(null!=e.Type)return 0;e.Type=this.shadda}else t===this.hamzaBelow?e.Value===this.alef?(e.Value=this.alefHamzaBelow,i=2):t===this.lwa?(e.Value=this.lwawhb,i=2):e.Type=this.hamzaBelow:t===this.hamzaAbove?e.Value===this.alef?(e.Value=this.alefHamza,i=2):e.Value===this.lwa?(e.Value=this.lwawh,i=2):e.Value===this.waw?(e.Value=this.wawHamza,i=2):e.Value===this.yeh||e.Value===this.alefMaksura||e.Value===this.farsiYeh?(e.Value=this.yehHamza,i=2):e.Type=this.hamzaAbove:t===this.madda?e.Value===this.alef&&(e.Value=this.alefMadda,i=2):e.vowel=t;return 1===i&&e.Ligature++,i}return""!==e.vowel?0:(e.Value===this.lam&&(t===this.alef?(e.Value=this.lwa,e.Shapes=2,i=3):t===this.alefHamza?(e.Value=this.lwawh,e.Shapes=2,i=3):t===this.alefHamzaBelow?(e.Value=this.lwawhb,e.Shapes=2,i=3):t===this.alefMadda&&(e.Value=this.lwawm,e.Shapes=2,i=3)),i)}return 0},t.prototype.getShapeCount=function(t){if(t>=this.hamza&&t<=this.bwhb&&!(t>=this.fathatan&&t<=this.hamzaBelow||t===this.superScriptalef)){var e=[];if(this.arabicMapTable.getValue(t))return e=this.arabicMapTable.getValue(t),e.length-1}else if(t===this.zeroWidthJoiner)return 4;return 1},t}(),o=function(){function t(){this.shapeValue="",this.shapeType="",this.shapeVowel="",this.shapeLigature=0,this.shapeShapes=1}return Object.defineProperty(t.prototype,"Value",{get:function(){return this.shapeValue},set:function(t){this.shapeValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.shapeType},set:function(t){this.shapeType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vowel",{get:function(){return this.shapeVowel},set:function(t){this.shapeVowel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Ligature",{get:function(){return this.shapeLigature},set:function(t){this.shapeLigature=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Shapes",{get:function(){return this.shapeShapes},set:function(t){this.shapeShapes=t},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){this.pdfMargin=40,this.setMargins(this.pdfMargin)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftMargin},set:function(t){this.leftMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topMargin},set:function(t){this.topMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightMargin},set:function(t){this.rightMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomMargin},set:function(t){this.bottomMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"all",{set:function(t){this.setMargins(t)},enumerable:!0,configurable:!0}),t.prototype.setMargins=function(t,e,i,r){void 0===e?this.leftMargin=this.topMargin=this.rightMargin=this.bottomMargin=t:void 0===i?(this.leftMargin=this.rightMargin=t,this.bottomMargin=this.topMargin=e):(this.leftMargin=t,this.topMargin=e,this.rightMargin=i,this.bottomMargin=r)},t.prototype.clone=function(){return this},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return s});var r=i(0),n=i(5),o=function(){function t(t){this.radDegFactor=180/Math.PI,this.transformationMatrix=void 0===t?new s(1,0,0,1,0,0):new s(1,0,0,-1,0,0)}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.transformationMatrix},set:function(t){this.transformationMatrix=t},enumerable:!0,configurable:!0}),t.prototype.translate=function(t,e){this.transformationMatrix.translate(t,e)},t.prototype.scale=function(t,e){this.transformationMatrix.elements[0]=t,this.transformationMatrix.elements[3]=e},t.prototype.rotate=function(t){t=t*Math.PI/180,this.transformationMatrix.elements[0]=Math.cos(t),this.transformationMatrix.elements[1]=Math.sin(t),this.transformationMatrix.elements[2]=-Math.sin(t),this.transformationMatrix.elements[3]=Math.cos(t)},t.prototype.toString=function(){for(var t="",e=0,i=this.transformationMatrix.elements.length;e<i;e++){this.matrix.elements[e];t+=n.a.floatToString(this.transformationMatrix.elements[e]),t+=" "}return t},t.prototype.multiply=function(t){this.transformationMatrix.multiply(t.matrix)},t.degreesToRadians=function(t){return this.degRadFactor*t},t.prototype.radiansToDegrees=function(t){return this.radDegFactor*t},t.prototype.clone=function(){return this},t.degRadFactor=Math.PI/180,t}(),s=function(){function t(t,e,i,r,n,o){void 0===t?this.metrixElements=[]:"number"==typeof t?(this.metrixElements=[],this.metrixElements.push(t),this.metrixElements.push(e),this.metrixElements.push(i),this.metrixElements.push(r),this.metrixElements.push(n),this.metrixElements.push(o)):this.metrixElements=t}return Object.defineProperty(t.prototype,"elements",{get:function(){return this.metrixElements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetX",{get:function(){return this.metrixElements[4]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetY",{get:function(){return this.metrixElements[5]},enumerable:!0,configurable:!0}),t.prototype.translate=function(t,e){this.metrixElements[4]=t,this.metrixElements[5]=e},t.prototype.transform=function(t){var e=t.x,i=t.y,n=e*this.elements[0]+i*this.elements[2]+this.offsetX,o=e*this.elements[1]+i*this.elements[3]+this.offsetY;return new r.a(n,o)},t.prototype.multiply=function(t){var e=[];e.push(this.elements[0]*t.elements[0]+this.elements[1]*t.elements[2]),e[1]=this.elements[0]*t.elements[1]+this.elements[1]*t.elements[3],e[2]=this.elements[2]*t.elements[0]+this.elements[3]*t.elements[2],e[3]=this.elements[2]*t.elements[1]+this.elements[3]*t.elements[3],e[4]=this.offsetX*t.elements[0]+this.offsetY*t.elements[2]+t.offsetX,e[5]=this.offsetX*t.elements[1]+this.offsetY*t.elements[3]+t.offsetY;for(var i=0;i<e.length;i++)this.elements[i]=e[i]},t.prototype.dispose=function(){this.metrixElements=null},t.prototype.clone=function(){return new t(this.metrixElements)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r;!function(t){t[t.Free=0]="Free",t[t.Normal=1]="Normal",t[t.Packed=2]="Packed"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return s});var r=i(10),n=i(50),o=function(){function t(){this.objectCollections=[],this.mainObjectCollection=new r.a,this.primitiveObjectCollection=new r.a}return Object.defineProperty(t.prototype,"count",{get:function(){return this.objectCollections.length},enumerable:!0,configurable:!0}),t.prototype.items=function(t){return this.objectCollections[t]},Object.defineProperty(t.prototype,"outIsNew",{get:function(){return this.isNew},enumerable:!0,configurable:!0}),t.prototype.add=function(t){var e=new s(t);this.objectCollections.push(e),this.primitiveObjectCollection.containsKey(t)||this.primitiveObjectCollection.setValue(t,this.objectCollections.length-1),t.position=this.index=this.objectCollections.length-1,t.status=n.a.Registered},t.prototype.lookFor=function(t){var e=-1;if(-1!==t.position)return t.position;if(this.primitiveObjectCollection.containsKey(t)&&this.count===this.primitiveObjectCollection.size())e=this.primitiveObjectCollection.getValue(t);else for(var i=this.count-1;i>=0;i--){var r=this.objectCollections[i];if(r.object===t){e=i;break}}return e},t.prototype.getReference=function(t,e){this.index=this.lookFor(t);var i;return this.isNew=!1,i=this.objectCollections[this.index].reference,{reference:i,wasNew:e}},t.prototype.trySetReference=function(t,e,i){return!0,this.index=this.lookFor(t),this.objectCollections[this.index].setReference(e),!0},t.prototype.destroy=function(){for(var t=0,e=this.objectCollections;t<e.length;t++){var i=e[t];void 0!==i&&(i.pdfObject.position=-1,i.pdfObject.isSaving=void 0,i.pdfObject.objectCollectionIndex=void 0,i.pdfObject.position=void 0)}this.objectCollections=[],this.mainObjectCollection=new r.a,this.primitiveObjectCollection=new r.a},t}(),s=function(){function t(t,e){this.pdfObject=t,this.pdfReference=e}return Object.defineProperty(t.prototype,"object",{get:function(){return this.pdfObject},set:function(t){this.pdfObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),t.prototype.setReference=function(t){this.pdfReference=t},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(16),n=i(5),o=i(0),s=i(17),a=i(3),h=function(){function t(t){if(null==t)throw new Error("ArgumentNullException:stream");this.stream=t}return t.prototype.clear=function(){this.stream.clearStream()},t.prototype.setGraphicsState=function(t){t instanceof a.a?(this.stream.write(t.toString()),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setGraphicsState)):(this.stream.write(r.a.slash),this.stream.write(t),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setGraphicsState))},t.prototype.executeObject=function(t){this.stream.write(t.toString()),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.paintXObject),this.stream.write(r.a.newLine)},t.prototype.closePath=function(){this.writeOperator(r.a.closePath)},t.prototype.clipPath=function(t){this.stream.write(r.a.clipPath),t&&this.stream.write(r.a.evenOdd),this.stream.write(r.a.whiteSpace),this.stream.write(r.a.endPath),this.stream.write(r.a.newLine)},t.prototype.closeFillStrokePath=function(t){this.stream.write(r.a.closeFillStrokePath),t?(this.stream.write(r.a.evenOdd),this.stream.write(r.a.newLine)):this.stream.write(r.a.newLine)},t.prototype.fillStrokePath=function(t){this.stream.write(r.a.fillStroke),t?(this.stream.write(r.a.evenOdd),this.stream.write(r.a.newLine)):this.stream.write(r.a.newLine)},t.prototype.fillPath=function(t){this.stream.write(r.a.fill),t?(this.stream.write(r.a.evenOdd),this.stream.write(r.a.newLine)):this.stream.write(r.a.newLine)},t.prototype.endPath=function(){this.writeOperator(r.a.n)},t.prototype.closeFillPath=function(t){this.writeOperator(r.a.closePath),this.stream.write(r.a.fill),t?(this.stream.write(r.a.evenOdd),this.stream.write(r.a.newLine)):this.stream.write(r.a.newLine)},t.prototype.closeStrokePath=function(){this.writeOperator(r.a.closeStrokePath)},t.prototype.setTextScaling=function(t){this.stream.write(n.a.floatToString(t)),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setTextScaling)},t.prototype.strokePath=function(){this.writeOperator(r.a.stroke)},t.prototype.restoreGraphicsState=function(){this.writeOperator(r.a.restoreState)},t.prototype.saveGraphicsState=function(){this.writeOperator(r.a.saveState)},t.prototype.startNextLine=function(t,e){void 0===t?this.writeOperator(r.a.goToNextLine):t instanceof o.a?(this.writePoint(t),this.writeOperator(r.a.setCoords)):(this.writePoint(t,e),this.writeOperator(r.a.setCoords))},t.prototype.showText=function(t){this.checkTextParam(t),this.writeText(t),this.writeOperator(r.a.setText)},t.prototype.setLeading=function(t){this.stream.write(n.a.floatToString(t)),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setTextLeading)},t.prototype.beginPath=function(t,e){this.writePoint(t,e),this.writeOperator(r.a.beginPath)},t.prototype.beginText=function(){this.writeOperator(r.a.beginText)},t.prototype.endText=function(){this.writeOperator(r.a.endText)},t.prototype.appendRectangle=function(t,e,i,n){t instanceof o.c?this.appendRectangle(t.x,t.y,t.width,t.height):(this.writePoint(t,e),this.writePoint(i,n),this.writeOperator(r.a.appendRectangle))},t.prototype.appendLineSegment=function(t,e){t instanceof o.a?this.appendLineSegment(t.x,t.y):(this.writePoint(t,e),this.writeOperator(r.a.appendLineSegment))},t.prototype.setTextRenderingMode=function(t){this.stream.write(t.toString()),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setRenderingMode)},t.prototype.setCharacterSpacing=function(t){this.stream.write(n.a.floatToString(t)),this.stream.write(r.a.whiteSpace),this.stream.write(r.a.setCharacterSpace),this.stream.write(r.a.newLine)},t.prototype.setWordSpacing=function(t){this.stream.write(n.a.floatToString(t)),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setWordSpace)},t.prototype.showNextLineText=function(t,e){t instanceof s.b?(this.checkTextParam(t),this.writeText(t),this.writeOperator(r.a.setTextOnNewLine)):(this.checkTextParam(t),this.writeText(t,e),this.writeOperator(r.a.setTextOnNewLine))},t.prototype.setColorSpace=function(t,e){if(t instanceof a.a&&"boolean"==typeof e){var i=t,n=e,o=n?r.a.selectcolorspaceforstroking:r.a.selectcolorspacefornonstroking;this.stream.write(i.toString()),this.stream.write(r.a.whiteSpace),this.stream.write(o),this.stream.write(r.a.newLine)}else{var i=t,n=e;this.setColorSpace(new a.a(i),n)}},t.prototype.modifyCtm=function(t){if(null==t)throw new Error("ArgumentNullException:matrix");this.stream.write(t.toString()),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.modifyCtm)},t.prototype.setFont=function(t,e,i){if("string"==typeof e)this.setFont(t,new a.a(e),i);else{if(null==t)throw new Error("ArgumentNullException:font");this.stream.write(e.toString()),this.stream.write(r.a.whiteSpace),this.stream.write(n.a.floatToString(i)),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setFont)}},t.prototype.writeOperator=function(t){this.stream.write(t),this.stream.write(r.a.newLine)},t.prototype.checkTextParam=function(t){if(null==t)throw new Error("ArgumentNullException:text");if("string"==typeof t&&""===t)throw new Error("ArgumentException:The text can not be an empty string, text")},t.prototype.writeText=function(t,e){if(t instanceof s.b&&void 0===e)this.stream.write(t.pdfEncode());else{var i=void 0,r=void 0;e?(i=s.b.hexStringMark[0],r=s.b.hexStringMark[1]):(i=s.b.stringMark[0],r=s.b.stringMark[1]),this.stream.write(i),this.stream.write(t),this.stream.write(r)}},t.prototype.writePoint=function(t,e){if(t instanceof o.a&&void 0===e)this.writePoint(t.x,t.y);else{var i=t;this.stream.write(n.a.floatToString(i)),this.stream.write(r.a.whiteSpace),e=this.updateY(e),this.stream.write(n.a.floatToString(e)),this.stream.write(r.a.whiteSpace)}},t.prototype.updateY=function(t){return-t},t.prototype.write=function(t){var e="";e+=t,e+=r.a.newLine,this.writeOperator(e)},t.prototype.writeComment=function(t){if(!(null!=t&&t.length>0))throw new Error("Invalid comment");var e="";e+=r.a.comment,e+=r.a.whiteSpace,e+=t,this.writeOperator(e)},t.prototype.setColorAndSpace=function(t,e,i){t.isEmpty||(this.stream.write(t.toString(e,i)),this.stream.write(r.a.newLine))},t.prototype.setLineDashPattern=function(t,e){this.setLineDashPatternHelper(t,e)},t.prototype.setLineDashPatternHelper=function(t,e){var i="[";if(t.length>1)for(var n=0;n<t.length;n++)n===t.length-1?i+=t[n].toString():i+=t[n].toString()+" ";i+="] ",i+=e.toString(),i+=" "+r.a.setDashPattern,this.stream.write(i),this.stream.write(r.a.newLine)},t.prototype.setMiterLimit=function(t){this.stream.write(n.a.floatToString(t)),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setMiterLimit)},t.prototype.setLineWidth=function(t){this.stream.write(n.a.floatToString(t)),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setLineWidth)},t.prototype.setLineCap=function(t){this.stream.write(t.toString()),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setLineCapStyle)},t.prototype.setLineJoin=function(t){this.stream.write(t.toString()),this.stream.write(r.a.whiteSpace),this.writeOperator(r.a.setLineJoinStyle)},Object.defineProperty(t.prototype,"position",{get:function(){return this.stream.position},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){var t=0;if(0!==this.stream.data.length&&-1!==this.stream.data.length)for(var e=0;e<this.stream.data.length;e++)t+=this.stream.data[e].length;return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.appendBezierSegment=function(t,e,i,n,s,a){t instanceof o.a&&e instanceof o.a&&i instanceof o.a?(this.writePoint(t.x,t.y),this.writePoint(e.x,e.y),this.writePoint(i.x,i.y)):(this.writePoint(t,e),this.writePoint(i,n),this.writePoint(s,a)),this.writeOperator(r.a.appendbeziercurve)},t.prototype.setColourWithPattern=function(t,e,i){if(null!=t){var n=t.length,o=0;for(o=0;o<n;++o)this.stream.write(t[o].toString()),this.stream.write(r.a.whiteSpace)}null!=e&&(this.stream.write(e.toString()),this.stream.write(r.a.whiteSpace)),i?this.writeOperator(r.a.setColorAndPatternStroking):this.writeOperator(r.a.setColorAndPattern)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.streamWriter=t}return Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stream",{get:function(){return this.streamWriter},enumerable:!0,configurable:!0}),t.prototype.write=function(t){var e=t;this.streamWriter.write(e)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.pdfPage=void 0!==t?t:null}return Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(25),n=i(10),o=function(){function t(t){this.pdfPageCollectionIndex=new n.a,this.document=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this.countPages()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageCollectionIndex",{get:function(){return this.pdfPageCollectionIndex},enumerable:!0,configurable:!0}),t.prototype.add=function(t){if(void 0===t){var e=new r.a;return this.add(e),e}this.getLastSection().add(t)},t.prototype.getLastSection=function(){var t=this.document.sections;return 0===t.section.length&&t.add(),t.section[t.section.length-1]},t.prototype.onPageAdded=function(t){},t.prototype.countPages=function(){for(var t=this.document.sections,e=0,i=0;i<t.section.length;i++)e+=t.section[i].count;return e},t.prototype.getPageByIndex=function(t){return this.getPage(t)},t.prototype.getPage=function(t){if(t<0||t>=this.count)throw Error('ArgumentOutOfRangeException("index", "Value can not be less 0")');for(var e=null,i=0,r=0,n=0,o=this.document.sections.count,s=0;s<o;s++){var a=this.document.sections.section[s];if(r=a.count,n=t-i,t>=i&&n<r){e=a.getPages()[n];break}i+=r}return e},t.prototype.indexOf=function(t){var e=-1;if(null==t)throw new Error("ArgumentNullException: page");for(var i=0,r=0,n=this.document.sections.count;r<n;r++){var o=this.document.sections.pdfSectionCollection(r);if((e=o.indexOf(t))>=0){e+=i;break}e=-1,i+=o.count}return e},t.prototype.remove=function(t){if(null==t)throw Error('ArgumentNullException("page")');for(var e=null,i=0,r=this.document.sections.count;i<r;i++)if(e=this.document.sections.pdfSectionCollection(i),e.pages.contains(t)){e.pages.remove(t);break}return e},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(0),n=i(91),o=i(19),s=i(82),a=function(){function t(t){this.pageMargins=new s.a,this.pageSize=n.a.a4,this.rotateAngle=o.b.RotateAngle0,this.pageOrientation=o.a.Portrait,this.pageOrigin=new r.a(0,0),this.isRotation=!1,"number"==typeof t&&this.pageMargins.setMargins(t)}return Object.defineProperty(t.prototype,"size",{get:function(){return this.pageSize},set:function(t){this.setSize(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(t){this.pageOrientation!==t&&(this.pageOrientation=t,this.updateSize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"margins",{get:function(){return this.pageMargins},set:function(t){this.pageMargins=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.pageSize.width},set:function(t){this.pageSize.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.pageSize.height},set:function(t){this.pageSize.height=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this.pageOrigin},set:function(t){this.pageOrigin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this.rotateAngle},set:function(t){this.rotateAngle=t,this.isRotation=!0},enumerable:!0,configurable:!0}),t.prototype.updateSize=function(t){var e=Math.min(this.pageSize.width,this.pageSize.height),i=Math.max(this.pageSize.width,this.pageSize.height);switch(t){case o.a.Portrait:this.pageSize=new r.b(e,i);break;case o.a.Landscape:this.pageSize=new r.b(i,e)}},t.prototype.clone=function(){var t=this;return t.pageMargins=this.pageMargins.clone(),t},t.prototype.getActualSize=function(){var t=this.width-(this.margins.left+this.margins.right),e=this.height-(this.margins.top+this.margins.bottom);return new r.b(t,e)},t.prototype.setSize=function(t){var e=Math.min(t.width,t.height),i=Math.max(t.width,t.height);this.orientation===o.a.Portrait?this.pageSize=new r.b(e,i):this.pageSize=new r.b(i,e)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(0),n=function(){function t(){}return t.letter=new r.b(612,792),t.note=new r.b(540,720),t.legal=new r.b(612,1008),t.a0=new r.b(2380,3368),t.a1=new r.b(1684,2380),t.a2=new r.b(1190,1684),t.a3=new r.b(842,1190),t.a4=new r.b(595,842),t.a5=new r.b(421,595),t.a6=new r.b(297,421),t.a7=new r.b(210,297),t.a8=new r.b(148,210),t.a9=new r.b(105,148),t.a10=new r.b(74,105),t.b0=new r.b(2836,4008),t.b1=new r.b(2004,2836),t.b2=new r.b(1418,2004),t.b3=new r.b(1002,1418),t.b4=new r.b(709,1002),t.b5=new r.b(501,709),t.archE=new r.b(2592,3456),t.archD=new r.b(1728,2592),t.archC=new r.b(1296,1728),t.archB=new r.b(864,1296),t.archA=new r.b(648,864),t.flsa=new r.b(612,936),t.halfLetter=new r.b(396,612),t.letter11x17=new r.b(792,1224),t.ledger=new r.b(1224,792),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){if(this.pdfSection=null,null==t)throw Error('ArgumentNullException("section")');this.section=t}return Object.defineProperty(t.prototype,"section",{get:function(){return this.pdfSection},set:function(t){this.pdfSection=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t){return this.section.contains(t)},t.prototype.remove=function(t){this.section.remove(t)},t.prototype.add=function(){return this.section.add()},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(45),n=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o=function(t){function e(){var e=t.call(this)||this;return e.leftValue=e.topValue=e.rightValue=e.bottomValue=e.stampValue=!0,e}return n(e,t),Object.defineProperty(e.prototype,"applyDocumentLeftTemplate",{get:function(){return this.leftValue},set:function(t){this.leftValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentTopTemplate",{get:function(){return this.topValue},set:function(t){this.topValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentRightTemplate",{get:function(){return this.rightValue},set:function(t){this.rightValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentBottomTemplate",{get:function(){return this.bottomValue},set:function(t){this.bottomValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentStamps",{get:function(){return this.stampValue},set:function(t){this.stampValue=t},enumerable:!0,configurable:!0}),e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return g}),i.d(e,"b",function(){return m});var r=i(25),n=i(88),o=i(8),s=i(6),a=i(5),h=i(3),u=i(4),l=i(1),c=i(55),d=i(92),f=i(0),p=i(93),g=function(){function t(t,e){this.pageAdded=new n.a,this.pdfPages=[],this.dictionaryProperties=new l.a,this.pdfDocument=t,void 0===e?(this.settings=t.pageSettings.clone(),this.initialSettings=this.settings.clone()):(this.settings=e.clone(),this.initialSettings=this.settings.clone()),this.initialize()}return Object.defineProperty(t.prototype,"parent",{get:function(){return this.sectionCollection},set:function(t){this.sectionCollection=t,this.section.items.setValue(this.dictionaryProperties.parent,new o.b(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentDocument",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSettings",{get:function(){return this.settings},set:function(t){if(null==t)throw Error("Value can not be null.");this.settings=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.section},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.pagesReferences.count},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new p.a),this.pageTemplate},set:function(t){this.pageTemplate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.sectionCollection.document},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pages",{get:function(){return null!=this.pagesCollection&&void 0!==this.pagesCollection||(this.pagesCollection=new d.a(this)),this.pagesCollection},enumerable:!0,configurable:!0}),t.prototype.getPages=function(){return this.pdfPages},t.prototype.pointToNativePdf=function(t,e){var i=this.getActualBounds(t,!0);return e.x+=i.x,e.y=this.pageSettings.height-e.y,e},t.prototype.setPageSettings=function(t){this.settings=t,this.state.orientation=t.orientation,this.state.rotate=t.rotate,this.state.size=t.size,this.state.origin=t.origin},t.prototype.initialize=function(){this.pagesReferences=new s.a,this.section=new u.a,this.state=new m(this.pdfDocument),this.section.sectionBeginSave=new u.f(this,this.state),this.pageCount=new a.a(0),this.section.items.setValue(this.dictionaryProperties.count,this.pageCount),this.section.items.setValue(this.dictionaryProperties.type,new h.a(this.dictionaryProperties.pages)),this.section.items.setValue(this.dictionaryProperties.kids,this.pagesReferences)},t.prototype.containsTemplates=function(t,e,i){var r=this.getDocumentTemplates(t,e,i),n=this.getSectionTemplates(e,i);return r.length>0||n.length>0},t.prototype.getDocumentTemplates=function(t,e,i){var r=[];return this.template.applyDocumentTopTemplate&&null!=t.template.getTop(e)&&(!t.template.getTop(e).foreground&&!i||t.template.getTop(e).foreground&&i)&&r.push(t.template.getTop(e)),this.template.applyDocumentBottomTemplate&&null!=t.template.getBottom(e)&&(!t.template.getBottom(e).foreground&&!i||t.template.getBottom(e).foreground&&i)&&r.push(t.template.getBottom(e)),this.template.applyDocumentLeftTemplate&&null!=t.template.getLeft(e)&&(!t.template.getLeft(e).foreground&&!i||t.template.getLeft(e).foreground&&i)&&r.push(t.template.getLeft(e)),this.template.applyDocumentRightTemplate&&null!=t.template.getRight(e)&&(!t.template.getRight(e).foreground&&!i||t.template.getRight(e).foreground&&i)&&r.push(t.template.getRight(e)),r},t.prototype.getSectionTemplates=function(t,e){var i=[];if(null!=this.template.getTop(t)){var r=this.template.getTop(t);(!r.foreground&&!e||r.foreground&&e)&&i.push(r)}if(null!=this.template.getBottom(t)){var r=this.template.getBottom(t);(!r.foreground&&!e||r.foreground&&e)&&i.push(r)}if(null!=this.template.getLeft(t)){var r=this.template.getLeft(t);(!r.foreground&&!e||r.foreground&&e)&&i.push(r)}if(null!=this.template.getRight(t)){var r=this.template.getRight(t);(!r.foreground&&!e||r.foreground&&e)&&i.push(r)}return i},t.prototype.add=function(t){if(void 0===t){var e=new r.a;return this.add(e),e}var i=this.checkPresence(t);this.pdfPages.push(t),this.pagesReferences.add(i),t.setSection(this),t.resetProgress(),this.pageAddedMethod(t)},t.prototype.checkPresence=function(t){for(var e=new o.b(t),i=!1,r=this.parent,n=0;n<r.section.length;n++){var s=r.section[n];i=i||s.contains(t)}return e},t.prototype.contains=function(t){return 0<=this.indexOf(t)},t.prototype.indexOf=function(t){for(var e=0;e<this.pdfPages.length;e++)if(this.pdfPages[e]===t)return this.pdfPages.indexOf(t);var i=new o.b(t);return this.pagesReferences.indexOf(i)},t.prototype.pageAddedMethod=function(t){var e=new n.a(t);this.onPageAdded(e),this.parent.document.pages.onPageAdded(e),this.pageCount.intValue=this.count},t.prototype.onPageAdded=function(t){},t.prototype.getActualBounds=function(t,e,i){if(t instanceof r.a&&"boolean"==typeof e){var n=this.parent.document;return this.getActualBounds(n,t,e)}t=t,e=e,i=i;var o=new f.c(0,0,0,0);o.height=i?this.pageSettings.size.height:this.pageSettings.getActualSize().height,o.width=i?this.pageSettings.size.width:this.pageSettings.getActualSize().width;var s=this.getLeftIndentWidth(t,e,i),a=this.getTopIndentHeight(t,e,i),h=this.getRightIndentWidth(t,e,i),u=this.getBottomIndentHeight(t,e,i);return o.x+=s,o.y+=a,o.width-=s+h,o.height-=a+u,o},t.prototype.getLeftIndentWidth=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.left:0,n=null!=this.template.getLeft(e)?this.template.getLeft(e).width:0,o=null!=t.template.getLeft(e)?t.template.getLeft(e).width:0;return r+=this.template.applyDocumentLeftTemplate?Math.max(n,o):n},t.prototype.getTopIndentHeight=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.top:0,n=null!=this.template.getTop(e)?this.template.getTop(e).height:0,o=null!=t.template.getTop(e)?t.template.getTop(e).height:0;return r+=this.template.applyDocumentTopTemplate?Math.max(n,o):n},t.prototype.getRightIndentWidth=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.right:0,n=null!=this.template.getRight(e)?this.template.getRight(e).width:0,o=null!=t.template.getRight(e)?t.template.getRight(e).width:0;return r+=this.template.applyDocumentRightTemplate?Math.max(n,o):n},t.prototype.getBottomIndentHeight=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.bottom:0,n=null!=this.template.getBottom(e)?this.template.getBottom(e).height:0,o=null!=t.template.getBottom(e)?t.template.getBottom(e).height:0;return r+=this.template.applyDocumentBottomTemplate?Math.max(n,o):n},t.prototype.remove=function(t){if(null==t)throw Error('ArgumentNullException("page")');var e=this.pdfPages.indexOf(t);this.pagesReferences.removeAt(e);for(var i=[],r=0;r<e;r++)i.push(this.pdfPages[r]);for(var r=e+1;r<this.pdfPages.length;r++)i.push(this.pdfPages[r]);this.pdfPages=i},t.prototype.applyPageSettings=function(t,e,i){var r=new f.c(i.origin,i.size);t.items.setValue(this.dictionaryProperties.mediaBox,s.a.fromRectangle(r));var n=0;n=c.a.rotateFactor*i.rotate;var o=new a.a(n);t.items.setValue(this.dictionaryProperties.rotate,o)},t.prototype.beginSave=function(t,e){var i=e.document;this.applyPageSettings(this.section,i.pageSettings,t)},t.prototype.drawTemplates=function(t,e,i,r){var n=this.getDocumentTemplates(i,t,r),o=this.getSectionTemplates(t,r);this.drawTemplatesHelper(e,i,n),this.drawTemplatesHelper(e,i,o)},t.prototype.drawTemplatesHelper=function(t,e,i){if(null!=i&&i.length>0)for(var r=i.length,n=0;n<r;n++){var o=i[n];o.draw(t,e)}},t}(),m=function(){function t(t){this.pageOrientation=t.pageSettings.orientation,this.pageRotate=t.pageSettings.rotate,this.pageSize=t.pageSettings.size,this.pageOrigin=t.pageSettings.origin}return Object.defineProperty(t.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(t){this.pageOrientation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this.pageRotate},set:function(t){this.pageRotate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.pageSize},set:function(t){this.pageSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this.pageOrigin},set:function(t){this.pageOrigin=t},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return s});var r=i(56),n=i(23),o=function(){function t(t){this.columnWidth=0,this.grid=t}return Object.defineProperty(t.prototype,"width",{get:function(){return this.columnWidth},set:function(t){this.isCustomWidth=!0,this.columnWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return null==this.stringFormat&&(this.stringFormat=new n.a),this.stringFormat},set:function(t){this.stringFormat=t},enumerable:!0,configurable:!0}),t}(),s=function(){function t(t){this.internalColumns=[],this.columnWidth=0,this.grid=t,this.internalColumns=[]}return t.prototype.add=function(t){for(var e=0;e<t;e++){this.internalColumns.push(new o(this.grid));for(var i=0;i<this.grid.rows.count;i++){var n=this.grid.rows.getRow(i),s=new r.a;s.value="",n.cells.add(s)}}},Object.defineProperty(t.prototype,"count",{get:function(){return this.internalColumns.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 0===this.columnWidth&&(this.columnWidth=this.measureColumnsWidth()),0===this.grid.initialWidth||this.columnWidth===this.grid.initialWidth||this.grid.style.allowHorizontalOverflow||(this.columnWidth=this.grid.initialWidth,this.grid.isPageWidth=!0),this.columnWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.internalColumns},enumerable:!0,configurable:!0}),t.prototype.getColumn=function(t){if(t>=0&&t<=this.columns.length)return this.columns[t];throw Error("can not get the column from the index: "+t)},t.prototype.measureColumnsWidth=function(){var t=0;this.grid.measureColumnsWidth();for(var e=0,i=this.internalColumns.length;e<i;e++)t+=this.internalColumns[e].width;return t},t.prototype.getDefaultWidths=function(t){for(var e=[],i=this.count,r=0;r<this.count;r++)this.grid.isPageWidth&&t>=0&&!this.internalColumns[r].isCustomWidth?this.internalColumns[r].width=0:(e[r]=this.internalColumns[r].width,this.internalColumns[r].width>0&&this.internalColumns[r].isCustomWidth?(t-=this.internalColumns[r].width,i--):e[r]=0);for(var r=0;r<this.count;r++){var n=t/i;e[r]<=0&&(e[r]=n)}return e},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return s}),i.d(e,"c",function(){return a});var r=i(56),n=i(31),o=function(){function t(t){this.gridRowOverflowIndex=0,this.rowHeight=0,this.rowWidth=0,this.isrowFinish=!1,this.isRowSpanRowHeightSet=!1,this.noOfPageCount=0,this.isRowHeightSet=!1,this.isPageBreakRowSpanApplied=!1,this.isRowMergeComplete=!0,this.repeatFlag=!1,this.rowFontSplit=!1,this.isHeaderRow=!1,this.pdfGrid=t}return Object.defineProperty(t.prototype,"rowSpanExists",{get:function(){return this.bRowSpanExists},set:function(t){this.bRowSpanExists=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return null==this.gridCells&&(this.gridCells=new r.b(this)),this.gridCells},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"grid",{get:function(){return this.pdfGrid},set:function(t){this.pdfGrid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return void 0===this.rowStyle&&(this.rowStyle=new n.d,this.rowStyle.setParent(this)),this.rowStyle},set:function(t){this.rowStyle=t;for(var e=0;e<this.cells.count;e++)this.cells.getCell(e).style.borders=t.border,void 0!==t.font&&(this.cells.getCell(e).style.font=t.font),void 0!==t.backgroundBrush&&(this.cells.getCell(e).style.backgroundBrush=t.backgroundBrush),void 0!==t.backgroundImage&&(this.cells.getCell(e).style.backgroundImage=t.backgroundImage),void 0!==t.textBrush&&(this.cells.getCell(e).style.textBrush=t.textBrush),void 0!==t.textPen&&(this.cells.getCell(e).style.textPen=t.textPen)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowBreakHeight",{get:function(){return void 0===this.gridRowBreakHeight&&(this.gridRowBreakHeight=0),this.gridRowBreakHeight},set:function(t){this.gridRowBreakHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowOverflowIndex",{get:function(){return this.gridRowOverflowIndex},set:function(t){this.gridRowOverflowIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.isRowHeightSet||(this.rowHeight=this.measureHeight()),this.rowHeight},set:function(t){this.rowHeight=t,this.isRowHeightSet=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 0!==this.rowWidth&&void 0!==this.rowWidth||(this.rowWidth=this.measureWidth()),this.rowWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"NestedGridLayoutResult",{get:function(){return this.gridResult},set:function(t){this.gridResult=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnSpanExists",{get:function(){return this.bColumnSpanExists},set:function(t){this.bColumnSpanExists=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowMergeComplete",{get:function(){return this.isRowMergeComplete},set:function(t){this.isRowMergeComplete=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowIndex",{get:function(){return this.grid.rows.rowCollection.indexOf(this)},enumerable:!0,configurable:!0}),t.prototype.measureHeight=function(){var t,e=0,i=0;t=this.cells.getCell(0).rowSpan>1?0:this.cells.getCell(0).height;for(var r=0;r<this.cells.count;r++){var n=this.cells.getCell(r);if(n.rowSpanRemainingHeight>e&&(e=n.rowSpanRemainingHeight),this.rowMergeComplete=!1,n.rowSpan>1){for(var o=r,s=this.isHeaderRow?this.grid.headers.indexOf(this):this.grid.rows.rowCollection.indexOf(this),a=0;a<n.rowSpan;a++)a+1<n.rowSpan&&((this.isHeaderRow?this.grid.headers.getHeader(s+a+1):this.grid.rows.getRow(s+a+1)).cells.getCell(o).hasRowSpan=!0);i<n.height&&(i=n.height)}else t=Math.max(t,n.height)}return i>t&&(t=i),0===t?t=i:e>0&&(t+=e),t},t.prototype.measureWidth=function(){for(var t=0,e=0;e<this.grid.columns.count;e++){t+=this.grid.columns.getColumn(e).width}return t},t}(),s=function(){function t(t){this.rows=[],this.grid=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this.rows.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowCollection",{get:function(){return this.rows},enumerable:!0,configurable:!0}),t.prototype.addRow=function(t){if(void 0===t){var e=new o(this.grid);return this.addRow(e),e}if(t.style.setBackgroundBrush(this.grid.style.backgroundBrush),t.style.setFont(this.grid.style.font),t.style.setTextBrush(this.grid.style.textBrush),t.style.setTextPen(this.grid.style.textPen),0===t.cells.count)for(var i=0;i<this.grid.columns.count;i++)t.cells.add(new r.a);this.rows.push(t)},t.prototype.getRow=function(t){return this.rows[t]},t}(),a=function(){function t(t){this.rows=[],this.grid=t,this.rows=[]}return t.prototype.getHeader=function(t){return this.rows[t]},Object.defineProperty(t.prototype,"count",{get:function(){return this.rows.length},enumerable:!0,configurable:!0}),t.prototype.add=function(t){if("number"==typeof t){for(var e=void 0,i=0;i<t;i++){e=new o(this.grid),e.isHeaderRow=!0;for(var n=0;n<this.grid.columns.count;n++)e.cells.add(new r.a);this.rows.push(e)}return this.rows}this.rows.push(t)},t.prototype.indexOf=function(t){return this.rows.indexOf(t)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(0),n=i(59),o=function(){function t(e,i,o,s){this.pageNumberFieldLocation=new r.a,this.pageNumberField=null,this.scaleX=1,this.scaleY=1,void 0===i&&e instanceof t?(this.pageNumberField=e.field,this.pageNumberFieldLocation=e.location,this.scaleX=e.scalingX,this.scaleY=e.scalingY):void 0===o&&i instanceof r.a&&e instanceof n.a?(this.pageNumberField=e,this.pageNumberFieldLocation=i):(this.pageNumberField=e,this.pageNumberFieldLocation=i,this.scaleX=o,this.scaleY=s)}return Object.defineProperty(t.prototype,"location",{get:function(){return this.pageNumberFieldLocation},set:function(t){this.pageNumberFieldLocation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"field",{get:function(){return this.pageNumberField},set:function(t){this.pageNumberField=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scalingX",{get:function(){return this.scaleX},set:function(t){this.scaleX=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scalingY",{get:function(){return this.scaleY},set:function(t){this.scaleY=t},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var r=i(59),n=i(32),o=i(100),s=i(0),a=i(27),h=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=function(t){function e(){var e=t.call(this)||this;return e.list=new n.a,e}return h(e,t),e.prototype.performDraw=function(e,i,r,n){t.prototype.performDrawHelper.call(this,e,i,r,n);var h=this.getValue(e),u=new a.a(this.getSize());this.list.setValue(e,new o.a(u,h));var l=(u.graphics,this.getSize());u.graphics.drawString(h,this.getFont(),this.pen,this.getBrush(),0,0,l.width,l.height,this.stringFormat);var c=new s.a(i.x+this.location.x,i.y+this.location.y);e.drawPdfTemplate(u,c,new s.b(u.width*r,u.height*n))},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(19),n=function(){function t(){}return t.convert=function(t,e){var i="";switch(e){case r.c.None:i="";break;case r.c.Numeric:i=t.toString();break;case r.c.LowerLatin:i=this.arabicToLetter(t).toLowerCase();break;case r.c.LowerRoman:i=this.arabicToRoman(t).toLowerCase();break;case r.c.UpperLatin:i=this.arabicToLetter(t);break;case r.c.UpperRoman:i=this.arabicToRoman(t)}return i},t.arabicToRoman=function(t){var e="",i=this.generateNumber(t,1e3,"M");e+=i.returnValue,t=i.intArabic;var r=this.generateNumber(t,900,"CM");e+=r.returnValue,t=r.intArabic;var n=this.generateNumber(t,500,"D");e+=n.returnValue,t=n.intArabic;var o=this.generateNumber(t,400,"CD");e+=o.returnValue,t=o.intArabic;var s=this.generateNumber(t,100,"C");e+=s.returnValue,t=s.intArabic;var a=this.generateNumber(t,90,"XC");e+=a.returnValue,t=a.intArabic;var h=this.generateNumber(t,50,"L");e+=h.returnValue,t=h.intArabic;var u=this.generateNumber(t,40,"XL");e+=u.returnValue,t=u.intArabic;var l=this.generateNumber(t,10,"X");e+=l.returnValue,t=l.intArabic;var c=this.generateNumber(t,9,"IX");e+=c.returnValue,t=c.intArabic;var d=this.generateNumber(t,5,"V");e+=d.returnValue,t=d.intArabic;var f=this.generateNumber(t,4,"IV");e+=f.returnValue,t=f.intArabic;var p=this.generateNumber(t,1,"I");return e+=p.returnValue,t=p.intArabic,e.toString()},t.arabicToLetter=function(t){for(var e=this.convertToLetter(t),i="";e.length>0;){var r=e.pop();i=this.appendChar(i,r)}return i.toString()},t.generateNumber=function(t,e,i){for(var r="";t>=e;)t-=e,r+=i;return{returnValue:r.toString(),intArabic:t}},t.convertToLetter=function(t){if(t<=0)throw Error("ArgumentOutOfRangeException-arabic, Value can not be less 0");for(var e=[];t>this.letterLimit;){var i=t%this.letterLimit;0===i?(t=t/this.letterLimit-1,i=this.letterLimit):t/=this.letterLimit,e.push(i)}return e.push(t),e},t.appendChar=function(e,i){return e+=String.fromCharCode(t.acsiiStartIndex+i)},t.letterLimit=26,t.acsiiStartIndex=64,t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t,e){this.pdfTemplate=null,this.content="",void 0===t||(this.template=t,this.value=e)}return Object.defineProperty(t.prototype,"template",{get:function(){return this.pdfTemplate},set:function(t){this.pdfTemplate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.content},set:function(t){this.content=t},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(117),n=i(15),o=i(9),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e,i){var r=t.call(this)||this;return r.mbrush=null,void 0===e||(e instanceof n.a?r=t.call(this,e)||this:r.mbrush=i),r}return s(e,t),Object.defineProperty(e.prototype,"brush",{get:function(){return this.mbrush},set:function(t){this.mbrush=t},enumerable:!0,configurable:!0}),e.prototype.obtainPen=function(){return null==this.mbrush&&null==this.pen?new n.a(new o.a(0,0,0)):this.pen},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return b});var r=i(141),n=i(138),o=i(4),s=i(13),a=i(6),h=i(3),u=i(5),l=i(17),c=i(8),d=i(36),f=i(1),p=i(10),g=i(7),m=i(0),y=i(16),b=function(){function t(t,e){if(this.nameString="ABCDEFGHIJKLMNOPQRSTUVWXYZ",this.dictionaryProperties=new f.a,this.isCompress=!1,this.isEmbedFont=!1,this.cmapPrefix="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap"+y.a.newLine+"/CIDSystemInfo << /Registry (Adobe)/Ordering (UCS)/Supplement 0>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange"+y.a.newLine,this.cmapEndCodespaceRange="endcodespacerange"+y.a.newLine,this.cmapBeginRange="beginbfrange"+y.a.newLine,this.cmapEndRange="endbfrange"+y.a.newLine,this.cmapSuffix="endbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend end"+y.a.newLine,null===t||void 0===t)throw new Error("ArgumentNullException:base64String");this.fontSize=e,this.fontString=t,this.Initialize()}return t.prototype.getCharWidth=function(t){return this.ttfReader.getCharWidth(t)},t.prototype.getLineWidth=function(t){for(var e=0,i=0,r=t.length;i<r;i++){var n=t[i];e+=this.getCharWidth(n)}return e},t.prototype.Initialize=function(){var t=new r.a(this.fontString.length);t.writeFromBase64String(this.fontString),this.fontData=t.internalBuffer,this.ttfReader=new n.a(this.fontData),this.ttfMetrics=this.ttfReader.metrics},t.prototype.createInternals=function(){this.fontDictionary=new o.a,this.fontProgram=new s.a,this.cmap=new s.a,this.descendantFont=new o.a,this.metrics=new d.a,this.ttfReader.createInternals(),this.ttfMetrics=this.ttfReader.metrics,this.initializeMetrics(),this.subsetName=this.getFontName(),this.createDescendantFont(),this.createCmap(),this.createFontDictionary(),this.createFontProgram()},t.prototype.getInternals=function(){return this.fontDictionary},t.prototype.initializeMetrics=function(){var t=this.ttfReader.metrics;this.metrics.ascent=t.macAscent,this.metrics.descent=t.macDescent,this.metrics.height=t.macAscent-t.macDescent+t.lineGap,this.metrics.name=t.fontFamily,this.metrics.postScriptName=t.postScriptName,this.metrics.size=this.fontSize,this.metrics.widthTable=new d.c(t.widthTable),this.metrics.lineGap=t.lineGap,this.metrics.subScriptSizeFactor=t.subScriptSizeFactor,this.metrics.superscriptSizeFactor=t.superscriptSizeFactor,this.metrics.isBold=t.isBold},t.prototype.getFontName=function(){for(var t,e="",i=0;i<6;i++){var r=Math.floor(26*Math.random())+0;e+=this.nameString[r]}return e+="+",e+=this.ttfReader.metrics.postScriptName,t=e.toString(),t=this.formatName(t)},t.prototype.formatName=function(t){var e=t.replace("(","#28");return e=e.replace(")","#29"),e=e.replace("[","#5B"),e=e.replace("]","#5D"),e=e.replace("<","#3C"),e=e.replace(">","#3E"),e=e.replace("{","#7B"),e=e.replace("}","#7D"),e=e.replace("/","#2F"),e=e.replace("%","#25"),e.replace(" ","#20")},t.prototype.createDescendantFont=function(){this.descendantFont.isResource=!0,this.descendantFont.descendantFontBeginSave=new o.c(this),this.descendantFont.items.setValue(this.dictionaryProperties.type,new h.a(this.dictionaryProperties.font)),this.descendantFont.items.setValue(this.dictionaryProperties.subtype,new h.a(this.dictionaryProperties.cIDFontType2)),this.descendantFont.items.setValue(this.dictionaryProperties.baseFont,new h.a(this.subsetName)),this.descendantFont.items.setValue(this.dictionaryProperties.cIDToGIDMap,new h.a(this.dictionaryProperties.identity)),this.descendantFont.items.setValue(this.dictionaryProperties.dw,new u.a(1e3)),this.fontDescriptor=this.createFontDescriptor(),this.descendantFont.items.setValue(this.dictionaryProperties.fontDescriptor,new c.b(this.fontDescriptor));var t=this.createSystemInfo();this.descendantFont.items.setValue(this.dictionaryProperties.cIDSystemInfo,t)},t.prototype.createFontDescriptor=function(){var t=new o.a,e=this.ttfReader.metrics;return t.isResource=!0,t.items.setValue(this.dictionaryProperties.type,new h.a(this.dictionaryProperties.fontDescriptor)),t.items.setValue(this.dictionaryProperties.fontName,new h.a(this.subsetName)),t.items.setValue(this.dictionaryProperties.flags,new u.a(this.getDescriptorFlags())),t.items.setValue(this.dictionaryProperties.fontBBox,a.a.fromRectangle(this.getBoundBox())),t.items.setValue(this.dictionaryProperties.missingWidth,new u.a(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.stemV,new u.a(e.stemV)),t.items.setValue(this.dictionaryProperties.italicAngle,new u.a(e.italicAngle)),t.items.setValue(this.dictionaryProperties.capHeight,new u.a(e.capHeight)),t.items.setValue(this.dictionaryProperties.ascent,new u.a(e.winAscent)),t.items.setValue(this.dictionaryProperties.descent,new u.a(e.winDescent)),t.items.setValue(this.dictionaryProperties.leading,new u.a(e.leading)),t.items.setValue(this.dictionaryProperties.avgWidth,new u.a(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.fontFile2,new c.b(this.fontProgram)),t.items.setValue(this.dictionaryProperties.maxWidth,new u.a(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.xHeight,new u.a(0)),t.items.setValue(this.dictionaryProperties.stemH,new u.a(0)),t},t.prototype.createCmap=function(){this.cmap.cmapBeginSave=new s.b(this)},t.prototype.createFontDictionary=function(){this.fontDictionary.isResource=!0,this.fontDictionary.fontDictionaryBeginSave=new o.d(this),this.fontDictionary.items.setValue(this.dictionaryProperties.type,new h.a(this.dictionaryProperties.font)),this.fontDictionary.items.setValue(this.dictionaryProperties.baseFont,new h.a(this.subsetName)),this.fontDictionary.items.setValue(this.dictionaryProperties.subtype,new h.a(this.dictionaryProperties.type0)),this.fontDictionary.items.setValue(this.dictionaryProperties.encoding,new h.a(this.dictionaryProperties.identityH));var t=new a.a,e=new c.b(this.descendantFont);t.isFont=!0,t.add(e),this.fontDictionary.items.setValue(this.dictionaryProperties.descendantFonts,t)},t.prototype.createFontProgram=function(){this.fontProgram.fontProgramBeginSave=new s.c(this)},t.prototype.createSystemInfo=function(){var t=new o.a;return t.items.setValue(this.dictionaryProperties.registry,new l.b("Adobe")),t.items.setValue(this.dictionaryProperties.ordering,new l.b(this.dictionaryProperties.identity)),t.items.setValue(this.dictionaryProperties.supplement,new u.a(0)),t},t.prototype.descendantFontBeginSave=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var t=this.getDescendantWidth();null!==t&&this.descendantFont.items.setValue(this.dictionaryProperties.w,t)}},t.prototype.cmapBeginSave=function(){this.generateCmap()},t.prototype.fontDictionaryBeginSave=function(){null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0&&!this.fontDictionary.containsKey(this.dictionaryProperties.toUnicode)&&this.fontDictionary.items.setValue(this.dictionaryProperties.toUnicode,new c.b(this.cmap))},t.prototype.fontProgramBeginSave=function(){this.isCompress=!0,this.generateFontProgram()},t.prototype.getDescendantWidth=function(){var t=new a.a;if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){for(var e=[],i=this.usedChars.keys(),r=0;r<i.length;r++){var n=i[r],o=this.ttfReader.getGlyph(n);o.empty||e.push(o)}e.sort(function(t,e){return t.index-e.index});for(var s=0,h=0,l=!1,c=new a.a,r=0;r<e.length;r++){var o=e[r];l||(l=!0,s=o.index,h=o.index-1),(h+1!==o.index||r+1===e.length)&&e.length>1&&(t.add(new u.a(s)),0!==r&&t.add(c),s=o.index,c=new a.a),c.add(new u.a(o.width)),r+1===e.length&&(t.add(new u.a(s)),t.add(c)),h=o.index}}return t},t.prototype.generateCmap=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var t=this.ttfReader.getGlyphChars(this.usedChars);if(t.size()>0){var e=t.keys().sort(),i=e[0],r=e[e.length-1],n=this.toHexString(i,!1)+this.toHexString(r,!1)+y.a.newLine,o="";o+=this.cmapPrefix,o+=n,o+=this.cmapEndCodespaceRange;for(var s=0,a=0;a<e.length;a++){0===s&&(0!==a&&(o+=this.cmapEndRange),s=Math.min(100,e.length-a),o+=s,o+=y.a.whiteSpace,o+=this.cmapBeginRange),s-=1;var h=e[a];o+=this.toHexString(h,!0)+this.toHexString(h,!0)+this.toHexString(t.getValue(h),!0)+"\n"}o+=this.cmapSuffix,this.cmap.clearStream(),this.cmap.isResource=!0,this.cmap.write(o)}}},t.prototype.generateFontProgram=function(){var t=null;this.usedChars=null===this.usedChars||void 0===this.usedChars?new p.a:this.usedChars,this.ttfReader.setOffset(0),t=this.ttfReader.readFontProgram(this.usedChars),this.fontProgram.clearStream(),this.fontProgram.isResource=!0,this.fontProgram.writeBytes(t)},t.prototype.getDescriptorFlags=function(){var t=0,e=this.ttfReader.metrics;return e.isFixedPitch&&(t|=g.l.FixedPitch),e.isSymbol?t|=g.l.Symbolic:t|=g.l.Nonsymbolic,e.isItalic&&(t|=g.l.Italic),e.isBold&&(t|=g.l.ForceBold),t},t.prototype.getBoundBox=function(){var t=this.ttfReader.metrics.fontBox,e=Math.abs(t.right-t.left),i=Math.abs(t.top-t.bottom);return new m.c(t.left,t.bottom,e,i)},t.prototype.toHexString=function(t,e){var i=t.toString(16);return e&&(i=i.toUpperCase()),"<0000".substring(0,5-i.length)+i+">"},t.prototype.setSymbols=function(t){if(null===t)throw new Error("Argument Null Exception : text");null!==this.usedChars&&void 0!==this.usedChars||(this.usedChars=new p.a);for(var e=0;e<t.length;e++){var i=t[e];this.usedChars.setValue(i,String.fromCharCode(0))}!1===this.isEmbedFont&&this.getDescendantWidth()},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(42),n=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o=function(t){function e(e,i){var r=t.call(this,e)||this;return r.pdfDestination=null,void 0!==i&&(r.destination=i),r}return n(e,t),Object.defineProperty(e.prototype,"destination",{get:function(){return this.pdfDestination},set:function(t){this.pdfDestination=t},enumerable:!0,configurable:!0}),e.prototype.save=function(){t.prototype.save.call(this),null!=this.pdfDestination&&this.dictionary.items.setValue(this.dictionaryProperties.dest,this.pdfDestination.element)},e.prototype.clone=function(){var t=new e(this.bounds,this.destination);return t.color=this.color,t.brush=this.brush,t.destination=this.destination,t.font=this.font,t},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(98),n=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o=function(t){function e(e,i,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];var s=t.call(this)||this;return s.internalAutomaticFields=null,s.internalText="",s.font=e,s.brush=i,s.text=r,s.automaticFields=n,s}return n(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this.internalText},set:function(t){this.internalText=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"automaticFields",{get:function(){return this.internalAutomaticFields},set:function(t){this.internalAutomaticFields=t},enumerable:!0,configurable:!0}),e.prototype.getValue=function(t){var e=this.text.toString();if(void 0!==this.automaticFields&&null!=this.automaticFields&&this.automaticFields.length>0)for(var i=0;i<this.automaticFields.length;i++){var r=this.automaticFields[i];e=e.replace("{"+i+"}",r.getValue(t))}return e},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(116),n=i(19),o=i(11),s=i(99),a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e,i){var r=t.call(this)||this;return r.internalNumberStyle=n.c.Numeric,void 0===i?r.font=e:i instanceof o.a?(r.font=e,r.brush=i):(r.font=e,r.bounds=i),r}return a(e,t),Object.defineProperty(e.prototype,"numberStyle",{get:function(){return this.internalNumberStyle},set:function(t){this.internalNumberStyle=t},enumerable:!0,configurable:!0}),e.prototype.getValue=function(t){var e=this.getPageFromGraphics(t),i=e.section.parent.document,r=i.pages.count;return s.a.convert(r,this.numberStyle)},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(11),n=i(19),o=i(99),s=i(98),a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e,i){var o=t.call(this)||this;return o.internalNumberStyle=n.c.Numeric,void 0===i?o.font=e:i instanceof r.a?(o.font=e,o.brush=i):(o.font=e,o.bounds=i),o}return a(e,t),Object.defineProperty(e.prototype,"numberStyle",{get:function(){return this.internalNumberStyle},set:function(t){this.internalNumberStyle=t},enumerable:!0,configurable:!0}),e.prototype.getValue=function(t){var e=this.getPageFromGraphics(t);return this.internalGetValue(e)},e.prototype.internalGetValue=function(t){var e=t.document,i=e.pages.indexOf(t)+1;return o.a.convert(i,this.numberStyle)},e}(s.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return c});var r=i(0),n=i(6),o=i(19),s=i(70),a=i(8),h=i(3),u=i(5),l=i(1),c=function(){function t(t,e){this.dictionaryProperties=new l.a,this.destinationMode=s.a.Location,this.zoomFactor=0,this.destinationLocation=new r.a(0,0),this.bounds=new r.c,this.array=new n.a;o.b.RotateAngle0;this.destinationLocation=new r.a(0,this.destinationLocation.y),this.pdfPage=t,e instanceof r.a?this.destinationLocation=e:this.bounds=e}return Object.defineProperty(t.prototype,"zoom",{get:function(){return this.zoomFactor},set:function(t){this.zoomFactor=t,this.initializePrimitive()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},set:function(t){this.pdfPage=t,this.initializePrimitive()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.destinationMode},set:function(t){this.destinationMode=t,this.initializePrimitive()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.destinationLocation},set:function(t){this.destinationLocation=t,this.initializePrimitive()},enumerable:!0,configurable:!0}),t.prototype.pointToNativePdf=function(t,e){return t.section.pointToNativePdf(t,e)},t.prototype.initializePrimitive=function(){switch(this.array.clear(),this.array.add(new a.b(this.pdfPage)),this.destinationMode){case s.a.Location:var t=this.pdfPage,e=new r.a;e=this.pointToNativePdf(t,this.destinationLocation),this.array.add(new h.a(this.dictionaryProperties.xyz)),this.array.add(new u.a(e.x)),this.array.add(new u.a(e.y)),this.array.add(new u.a(this.zoomFactor));break;case s.a.FitToPage:this.array.add(new h.a(this.dictionaryProperties.fit))}},Object.defineProperty(t.prototype,"element",{get:function(){return this.initializePrimitive(),this.array},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(9),n=i(10),o=i(60),s=i(18),a=function(){function t(){}return Object.defineProperty(t,"AliceBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.AliceBlue)&&(t=this.sBrushes.getValue(o.d.AliceBlue)),null==t&&(t=this.getBrush(o.d.AliceBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"AntiqueWhite",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.AntiqueWhite)&&(t=this.sBrushes.getValue(o.d.AntiqueWhite)),null==t&&(t=this.getBrush(o.d.AntiqueWhite)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Aqua",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Aqua)&&(t=this.sBrushes.getValue(o.d.Aqua)),null==t&&(t=this.getBrush(o.d.Aqua)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Aquamarine",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Aquamarine)&&(t=this.sBrushes.getValue(o.d.Aquamarine)),null==t&&(t=this.getBrush(o.d.Aquamarine)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Azure",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Azure)&&(t=this.sBrushes.getValue(o.d.Azure)),null==t&&(t=this.getBrush(o.d.Azure)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Beige",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Beige)&&(t=this.sBrushes.getValue(o.d.Beige)),null==t&&(t=this.getBrush(o.d.Beige)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Bisque",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Bisque)&&(t=this.sBrushes.getValue(o.d.Bisque)),null==t&&(t=this.getBrush(o.d.Bisque)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Black",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Black)&&(t=this.sBrushes.getValue(o.d.Black)),null==t&&(t=this.getBrush(o.d.Black)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"BlanchedAlmond",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.BlanchedAlmond)&&(t=this.sBrushes.getValue(o.d.BlanchedAlmond)),null==t&&(t=this.getBrush(o.d.BlanchedAlmond)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Blue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Blue)&&(t=this.sBrushes.getValue(o.d.Blue)),null==t&&(t=this.getBrush(o.d.Blue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"BlueViolet",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.BlueViolet)&&(t=this.sBrushes.getValue(o.d.BlueViolet)),null==t&&(t=this.getBrush(o.d.BlueViolet)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Brown",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Brown)&&(t=this.sBrushes.getValue(o.d.Brown)),null==t&&(t=this.getBrush(o.d.Brown)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"BurlyWood",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.BurlyWood)&&(t=this.sBrushes.getValue(o.d.BurlyWood)),null==t&&(t=this.getBrush(o.d.BurlyWood)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CadetBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.CadetBlue)&&(t=this.sBrushes.getValue(o.d.CadetBlue)),null==t&&(t=this.getBrush(o.d.CadetBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Chartreuse",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Chartreuse)&&(t=this.sBrushes.getValue(o.d.Chartreuse)),null==t&&(t=this.getBrush(o.d.Chartreuse)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Chocolate",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Chocolate)&&(t=this.sBrushes.getValue(o.d.Chocolate)),null==t&&(t=this.getBrush(o.d.Chocolate)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Coral",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Coral)&&(t=this.sBrushes.getValue(o.d.Coral)),null==t&&(t=this.getBrush(o.d.Coral)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CornflowerBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.CornflowerBlue)&&(t=this.sBrushes.getValue(o.d.CornflowerBlue)),null==t&&(t=this.getBrush(o.d.CornflowerBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Cornsilk",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Cornsilk)&&(t=this.sBrushes.getValue(o.d.Cornsilk)),null==t&&(t=this.getBrush(o.d.Cornsilk)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Crimson",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Crimson)&&(t=this.sBrushes.getValue(o.d.Crimson)),null==t&&(t=this.getBrush(o.d.Crimson)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Cyan",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Cyan)&&(t=this.sBrushes.getValue(o.d.Cyan)),null==t&&(t=this.getBrush(o.d.Cyan)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkBlue)&&(t=this.sBrushes.getValue(o.d.DarkBlue)),null==t&&(t=this.getBrush(o.d.DarkBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkCyan",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkCyan)&&(t=this.sBrushes.getValue(o.d.DarkCyan)),null==t&&(t=this.getBrush(o.d.DarkCyan)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkGoldenrod",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkGoldenrod)&&(t=this.sBrushes.getValue(o.d.DarkGoldenrod)),null==t&&(t=this.getBrush(o.d.DarkGoldenrod)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkGray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkGray)&&(t=this.sBrushes.getValue(o.d.DarkGray)),null==t&&(t=this.getBrush(o.d.DarkGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkGreen)&&(t=this.sBrushes.getValue(o.d.DarkGreen)),null==t&&(t=this.getBrush(o.d.DarkGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkKhaki",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkKhaki)&&(t=this.sBrushes.getValue(o.d.DarkKhaki)),null==t&&(t=this.getBrush(o.d.DarkKhaki)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkMagenta",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkMagenta)&&(t=this.sBrushes.getValue(o.d.DarkMagenta)),null==t&&(t=this.getBrush(o.d.DarkMagenta)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkOliveGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkOliveGreen)&&(t=this.sBrushes.getValue(o.d.DarkOliveGreen)),null==t&&(t=this.getBrush(o.d.DarkOliveGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkOrange",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkOrange)&&(t=this.sBrushes.getValue(o.d.DarkOrange)),null==t&&(t=this.getBrush(o.d.DarkOrange)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkOrchid",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkOrchid)&&(t=this.sBrushes.getValue(o.d.DarkOrchid)),null==t&&(t=this.getBrush(o.d.DarkOrchid)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkRed",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkRed)&&(t=this.sBrushes.getValue(o.d.DarkRed)),null==t&&(t=this.getBrush(o.d.DarkRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkSalmon",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkSalmon)&&(t=this.sBrushes.getValue(o.d.DarkSalmon)),null==t&&(t=this.getBrush(o.d.DarkSalmon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkSeaGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkSeaGreen)&&(t=this.sBrushes.getValue(o.d.DarkSeaGreen)),null==t&&(t=this.getBrush(o.d.DarkSeaGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkSlateBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkSlateBlue)&&(t=this.sBrushes.getValue(o.d.DarkSlateBlue)),null==t&&(t=this.getBrush(o.d.DarkSlateBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkSlateGray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkSlateGray)&&(t=this.sBrushes.getValue(o.d.DarkSlateGray)),null==t&&(t=this.getBrush(o.d.DarkSlateGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkTurquoise",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkTurquoise)&&(t=this.sBrushes.getValue(o.d.DarkTurquoise)),null==t&&(t=this.getBrush(o.d.DarkTurquoise)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkViolet",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DarkViolet)&&(t=this.sBrushes.getValue(o.d.DarkViolet)),null==t&&(t=this.getBrush(o.d.DarkViolet)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DeepPink",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DeepPink)&&(t=this.sBrushes.getValue(o.d.DeepPink)),null==t&&(t=this.getBrush(o.d.DeepPink)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DeepSkyBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DeepSkyBlue)&&(t=this.sBrushes.getValue(o.d.DeepSkyBlue)),null==t&&(t=this.getBrush(o.d.DeepSkyBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DimGray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DimGray)&&(t=this.sBrushes.getValue(o.d.DimGray)),null==t&&(t=this.getBrush(o.d.DimGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DodgerBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.DodgerBlue)&&(t=this.sBrushes.getValue(o.d.DodgerBlue)),null==t&&(t=this.getBrush(o.d.DodgerBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Firebrick",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Firebrick)&&(t=this.sBrushes.getValue(o.d.Firebrick)),null==t&&(t=this.getBrush(o.d.Firebrick)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"FloralWhite",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.FloralWhite)&&(t=this.sBrushes.getValue(o.d.FloralWhite)),null==t&&(t=this.getBrush(o.d.FloralWhite)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"ForestGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.ForestGreen)&&(t=this.sBrushes.getValue(o.d.ForestGreen)),null==t&&(t=this.getBrush(o.d.ForestGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Fuchsia",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Fuchsia)&&(t=this.sBrushes.getValue(o.d.Fuchsia)),null==t&&(t=this.getBrush(o.d.Fuchsia)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Gainsboro",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Gainsboro)&&(t=this.sBrushes.getValue(o.d.Gainsboro)),null==t&&(t=this.getBrush(o.d.Gainsboro)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GhostWhite",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.GhostWhite)&&(t=this.sBrushes.getValue(o.d.GhostWhite)),null==t&&(t=this.getBrush(o.d.GhostWhite)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Gold",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Gold)&&(t=this.sBrushes.getValue(o.d.Gold)),null==t&&(t=this.getBrush(o.d.Gold)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Goldenrod",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Goldenrod)&&(t=this.sBrushes.getValue(o.d.Goldenrod)),null==t&&(t=this.getBrush(o.d.Goldenrod)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Gray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Gray)&&(t=this.sBrushes.getValue(o.d.Gray)),null==t&&(t=this.getBrush(o.d.Gray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Green",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Green)&&(t=this.sBrushes.getValue(o.d.Green)),null==t&&(t=this.getBrush(o.d.Green)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GreenYellow",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.GreenYellow)&&(t=this.sBrushes.getValue(o.d.GreenYellow)),null==t&&(t=this.getBrush(o.d.GreenYellow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Honeydew",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Honeydew)&&(t=this.sBrushes.getValue(o.d.Honeydew)),null==t&&(t=this.getBrush(o.d.Honeydew)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"HotPink",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.HotPink)&&(t=this.sBrushes.getValue(o.d.HotPink)),null==t&&(t=this.getBrush(o.d.HotPink)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"IndianRed",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.IndianRed)&&(t=this.sBrushes.getValue(o.d.IndianRed)),null==t&&(t=this.getBrush(o.d.IndianRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Indigo",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Indigo)&&(t=this.sBrushes.getValue(o.d.Indigo)),null==t&&(t=this.getBrush(o.d.Indigo)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Ivory",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Ivory)&&(t=this.sBrushes.getValue(o.d.Ivory)),null==t&&(t=this.getBrush(o.d.Ivory)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Khaki",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Khaki)&&(t=this.sBrushes.getValue(o.d.Khaki)),null==t&&(t=this.getBrush(o.d.Khaki)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Lavender",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Lavender)&&(t=this.sBrushes.getValue(o.d.Lavender)),null==t&&(t=this.getBrush(o.d.Lavender)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LavenderBlush",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LavenderBlush)&&(t=this.sBrushes.getValue(o.d.LavenderBlush)),null==t&&(t=this.getBrush(o.d.LavenderBlush)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LawnGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LawnGreen)&&(t=this.sBrushes.getValue(o.d.LawnGreen)),null==t&&(t=this.getBrush(o.d.LawnGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LemonChiffon",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LemonChiffon)&&(t=this.sBrushes.getValue(o.d.LemonChiffon)),null==t&&(t=this.getBrush(o.d.LemonChiffon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightBlue)&&(t=this.sBrushes.getValue(o.d.LightBlue)),null==t&&(t=this.getBrush(o.d.LightBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightCoral",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightCoral)&&(t=this.sBrushes.getValue(o.d.LightCoral)),null==t&&(t=this.getBrush(o.d.LightCoral)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightCyan",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightCyan)&&(t=this.sBrushes.getValue(o.d.LightCyan)),null==t&&(t=this.getBrush(o.d.LightCyan)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightGoldenrodYellow",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightGoldenrodYellow)&&(t=this.sBrushes.getValue(o.d.LightGoldenrodYellow)),null==t&&(t=this.getBrush(o.d.LightGoldenrodYellow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightGray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightGray)&&(t=this.sBrushes.getValue(o.d.LightGray)),null==t&&(t=this.getBrush(o.d.LightGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightGreen)&&(t=this.sBrushes.getValue(o.d.LightGreen)),null==t&&(t=this.getBrush(o.d.LightGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightPink",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightPink)&&(t=this.sBrushes.getValue(o.d.LightPink)),null==t&&(t=this.getBrush(o.d.LightPink)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSalmon",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightSalmon)&&(t=this.sBrushes.getValue(o.d.LightSalmon)),null==t&&(t=this.getBrush(o.d.LightSalmon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSeaGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightSeaGreen)&&(t=this.sBrushes.getValue(o.d.LightSeaGreen)),null==t&&(t=this.getBrush(o.d.LightSeaGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSkyBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightSkyBlue)&&(t=this.sBrushes.getValue(o.d.LightSkyBlue)),null==t&&(t=this.getBrush(o.d.LightSkyBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSlateGray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightSlateGray)&&(t=this.sBrushes.getValue(o.d.LightSlateGray)),null==t&&(t=this.getBrush(o.d.LightSlateGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSteelBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightSteelBlue)&&(t=this.sBrushes.getValue(o.d.LightSteelBlue)),null==t&&(t=this.getBrush(o.d.LightSteelBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightYellow",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LightYellow)&&(t=this.sBrushes.getValue(o.d.LightYellow)),null==t&&(t=this.getBrush(o.d.LightYellow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Lime",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Lime)&&(t=this.sBrushes.getValue(o.d.Lime)),null==t&&(t=this.getBrush(o.d.Lime)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LimeGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.LimeGreen)&&(t=this.sBrushes.getValue(o.d.LimeGreen)),null==t&&(t=this.getBrush(o.d.LimeGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Linen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Linen)&&(t=this.sBrushes.getValue(o.d.Linen)),null==t&&(t=this.getBrush(o.d.Linen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Magenta",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Magenta)&&(t=this.sBrushes.getValue(o.d.Magenta)),null==t&&(t=this.getBrush(o.d.Magenta)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Maroon",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Maroon)&&(t=this.sBrushes.getValue(o.d.Maroon)),null==t&&(t=this.getBrush(o.d.Maroon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumAquamarine",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumAquamarine)&&(t=this.sBrushes.getValue(o.d.MediumAquamarine)),null==t&&(t=this.getBrush(o.d.MediumAquamarine)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumBlue)&&(t=this.sBrushes.getValue(o.d.MediumBlue)),null==t&&(t=this.getBrush(o.d.MediumBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumOrchid",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumOrchid)&&(t=this.sBrushes.getValue(o.d.MediumOrchid)),null==t&&(t=this.getBrush(o.d.MediumOrchid)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumPurple",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumPurple)&&(t=this.sBrushes.getValue(o.d.MediumPurple)),null==t&&(t=this.getBrush(o.d.MediumPurple)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumSeaGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumSeaGreen)&&(t=this.sBrushes.getValue(o.d.MediumSeaGreen)),null==t&&(t=this.getBrush(o.d.MediumSeaGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumSlateBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumSlateBlue)&&(t=this.sBrushes.getValue(o.d.MediumSlateBlue)),null==t&&(t=this.getBrush(o.d.MediumSlateBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumSpringGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumSpringGreen)&&(t=this.sBrushes.getValue(o.d.MediumSpringGreen)),null==t&&(t=this.getBrush(o.d.MediumSpringGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumTurquoise",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumTurquoise)&&(t=this.sBrushes.getValue(o.d.MediumTurquoise)),null==t&&(t=this.getBrush(o.d.MediumTurquoise)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumVioletRed",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MediumVioletRed)&&(t=this.sBrushes.getValue(o.d.MediumVioletRed)),null==t&&(t=this.getBrush(o.d.MediumVioletRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MidnightBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MidnightBlue)&&(t=this.sBrushes.getValue(o.d.MidnightBlue)),null==t&&(t=this.getBrush(o.d.MidnightBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MintCream",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MintCream)&&(t=this.sBrushes.getValue(o.d.MintCream)),null==t&&(t=this.getBrush(o.d.MintCream)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MistyRose",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.MistyRose)&&(t=this.sBrushes.getValue(o.d.MistyRose)),null==t&&(t=this.getBrush(o.d.MistyRose)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Moccasin",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Moccasin)&&(t=this.sBrushes.getValue(o.d.Moccasin)),null==t&&(t=this.getBrush(o.d.Moccasin)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"NavajoWhite",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.NavajoWhite)&&(t=this.sBrushes.getValue(o.d.NavajoWhite)),null==t&&(t=this.getBrush(o.d.NavajoWhite)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Navy",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Navy)&&(t=this.sBrushes.getValue(o.d.Navy)),null==t&&(t=this.getBrush(o.d.Navy)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OldLace",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.OldLace)&&(t=this.sBrushes.getValue(o.d.OldLace)),null==t&&(t=this.getBrush(o.d.OldLace)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Olive",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Olive)&&(t=this.sBrushes.getValue(o.d.Olive)),null==t&&(t=this.getBrush(o.d.Olive)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OliveDrab",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.OliveDrab)&&(t=this.sBrushes.getValue(o.d.OliveDrab)),null==t&&(t=this.getBrush(o.d.OliveDrab)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Orange",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Orange)&&(t=this.sBrushes.getValue(o.d.Orange)),null==t&&(t=this.getBrush(o.d.Orange)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OrangeRed",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.OrangeRed)&&(t=this.sBrushes.getValue(o.d.OrangeRed)),null==t&&(t=this.getBrush(o.d.OrangeRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Orchid",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Orchid)&&(t=this.sBrushes.getValue(o.d.Orchid)),null==t&&(t=this.getBrush(o.d.Orchid)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PaleGoldenrod",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PaleGoldenrod)&&(t=this.sBrushes.getValue(o.d.PaleGoldenrod)),null==t&&(t=this.getBrush(o.d.PaleGoldenrod)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PaleGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PaleGreen)&&(t=this.sBrushes.getValue(o.d.PaleGreen)),null==t&&(t=this.getBrush(o.d.PaleGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PaleTurquoise",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PaleTurquoise)&&(t=this.sBrushes.getValue(o.d.PaleTurquoise)),null==t&&(t=this.getBrush(o.d.PaleTurquoise)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PaleVioletRed",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PaleVioletRed)&&(t=this.sBrushes.getValue(o.d.PaleVioletRed)),null==t&&(t=this.getBrush(o.d.PaleVioletRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PapayaWhip",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PapayaWhip)&&(t=this.sBrushes.getValue(o.d.PapayaWhip)),null==t&&(t=this.getBrush(o.d.PapayaWhip)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PeachPuff",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PeachPuff)&&(t=this.sBrushes.getValue(o.d.PeachPuff)),null==t&&(t=this.getBrush(o.d.PeachPuff)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Peru",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Peru)&&(t=this.sBrushes.getValue(o.d.Peru)),null==t&&(t=this.getBrush(o.d.Peru)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Pink",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Pink)&&(t=this.sBrushes.getValue(o.d.Pink)),null==t&&(t=this.getBrush(o.d.Pink)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Plum",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Plum)&&(t=this.sBrushes.getValue(o.d.Plum)),null==t&&(t=this.getBrush(o.d.Plum)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PowderBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.PowderBlue)&&(t=this.sBrushes.getValue(o.d.PowderBlue)),null==t&&(t=this.getBrush(o.d.PowderBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Purple",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Purple)&&(t=this.sBrushes.getValue(o.d.Purple)),null==t&&(t=this.getBrush(o.d.Purple)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Red",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Red)&&(t=this.sBrushes.getValue(o.d.Red)),null==t&&(t=this.getBrush(o.d.Red)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"RosyBrown",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.RosyBrown)&&(t=this.sBrushes.getValue(o.d.RosyBrown)),null==t&&(t=this.getBrush(o.d.RosyBrown)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"RoyalBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.RoyalBlue)&&(t=this.sBrushes.getValue(o.d.RoyalBlue)),null==t&&(t=this.getBrush(o.d.RoyalBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SaddleBrown",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SaddleBrown)&&(t=this.sBrushes.getValue(o.d.SaddleBrown)),null==t&&(t=this.getBrush(o.d.SaddleBrown)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Salmon",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Salmon)&&(t=this.sBrushes.getValue(o.d.Salmon)),null==t&&(t=this.getBrush(o.d.Salmon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SandyBrown",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SandyBrown)&&(t=this.sBrushes.getValue(o.d.SandyBrown)),null==t&&(t=this.getBrush(o.d.SandyBrown)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SeaGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SeaGreen)&&(t=this.sBrushes.getValue(o.d.SeaGreen)),null==t&&(t=this.getBrush(o.d.SeaGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SeaShell",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SeaShell)&&(t=this.sBrushes.getValue(o.d.SeaShell)),null==t&&(t=this.getBrush(o.d.SeaShell)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Sienna",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Sienna)&&(t=this.sBrushes.getValue(o.d.Sienna)),null==t&&(t=this.getBrush(o.d.Sienna)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Silver",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Silver)&&(t=this.sBrushes.getValue(o.d.Silver)),null==t&&(t=this.getBrush(o.d.Silver)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SkyBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SkyBlue)&&(t=this.sBrushes.getValue(o.d.SkyBlue)),null==t&&(t=this.getBrush(o.d.SkyBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SlateBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SlateBlue)&&(t=this.sBrushes.getValue(o.d.SlateBlue)),null==t&&(t=this.getBrush(o.d.SlateBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SlateGray",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SlateGray)&&(t=this.sBrushes.getValue(o.d.SlateGray)),null==t&&(t=this.getBrush(o.d.SlateGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Snow",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Snow)&&(t=this.sBrushes.getValue(o.d.Snow)),null==t&&(t=this.getBrush(o.d.Snow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SpringGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SpringGreen)&&(t=this.sBrushes.getValue(o.d.SpringGreen)),null==t&&(t=this.getBrush(o.d.SpringGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SteelBlue",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.SteelBlue)&&(t=this.sBrushes.getValue(o.d.SteelBlue)),null==t&&(t=this.getBrush(o.d.SteelBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Tan",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Tan)&&(t=this.sBrushes.getValue(o.d.Tan)),null==t&&(t=this.getBrush(o.d.Tan)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Teal",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Teal)&&(t=this.sBrushes.getValue(o.d.Teal)),null==t&&(t=this.getBrush(o.d.Teal)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Thistle",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Thistle)&&(t=this.sBrushes.getValue(o.d.Thistle)),null==t&&(t=this.getBrush(o.d.Thistle)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Tomato",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Tomato)&&(t=this.sBrushes.getValue(o.d.Tomato)),null==t&&(t=this.getBrush(o.d.Tomato)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Transparent",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Transparent)&&(t=this.sBrushes.getValue(o.d.Transparent)),null==t&&(t=this.getBrush(o.d.Transparent)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Turquoise",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Turquoise)&&(t=this.sBrushes.getValue(o.d.Turquoise)),null==t&&(t=this.getBrush(o.d.Turquoise)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Violet",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Violet)&&(t=this.sBrushes.getValue(o.d.Violet)),null==t&&(t=this.getBrush(o.d.Violet)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Wheat",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Wheat)&&(t=this.sBrushes.getValue(o.d.Wheat)),null==t&&(t=this.getBrush(o.d.Wheat)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"White",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.White)&&(t=this.sBrushes.getValue(o.d.White)),null==t&&(t=this.getBrush(o.d.White)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WhiteSmoke",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.WhiteSmoke)&&(t=this.sBrushes.getValue(o.d.WhiteSmoke)),null==t&&(t=this.getBrush(o.d.WhiteSmoke)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Yellow",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.Yellow)&&(t=this.sBrushes.getValue(o.d.Yellow)),null==t&&(t=this.getBrush(o.d.Yellow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"YellowGreen",{get:function(){var t=null;return this.sBrushes.containsKey(o.d.YellowGreen)&&(t=this.sBrushes.getValue(o.d.YellowGreen)),null==t&&(t=this.getBrush(o.d.YellowGreen)),t},enumerable:!0,configurable:!0}),t.getBrush=function(t){var e=this.getColorValue(t),i=new s.a(e);return this.sBrushes.setValue(t,i),i},t.getColorValue=function(t){var e=new r.a;switch(t){case o.d.Transparent:e=new r.a(0,255,255,255);break;case o.d.AliceBlue:e=new r.a(255,240,248,255);break;case o.d.AntiqueWhite:e=new r.a(255,250,235,215);break;case o.d.Aqua:e=new r.a(255,0,255,255);break;case o.d.Aquamarine:e=new r.a(255,127,255,212);break;case o.d.Azure:e=new r.a(255,240,255,255);break;case o.d.Beige:e=new r.a(255,245,245,220);break;case o.d.Bisque:e=new r.a(255,255,228,196);break;case o.d.Black:e=new r.a(255,0,0,0);break;case o.d.BlanchedAlmond:e=new r.a(255,255,235,205);break;case o.d.Blue:e=new r.a(255,0,0,255);break;case o.d.BlueViolet:e=new r.a(255,138,43,226);break;case o.d.Brown:e=new r.a(255,165,42,42);break;case o.d.BurlyWood:e=new r.a(255,222,184,135);break;case o.d.CadetBlue:e=new r.a(255,95,158,160);break;case o.d.Chartreuse:e=new r.a(255,127,255,0);break;case o.d.Chocolate:e=new r.a(255,210,105,30);break;case o.d.Coral:e=new r.a(255,255,127,80);break;case o.d.CornflowerBlue:e=new r.a(255,100,149,237);break;case o.d.Cornsilk:e=new r.a(255,255,248,220);break;case o.d.Crimson:e=new r.a(255,220,20,60);break;case o.d.Cyan:e=new r.a(255,0,255,255);break;case o.d.DarkBlue:e=new r.a(255,0,0,139);break;case o.d.DarkCyan:e=new r.a(255,0,139,139);break;case o.d.DarkGoldenrod:e=new r.a(255,184,134,11);break;case o.d.DarkGray:e=new r.a(255,169,169,169);break;case o.d.DarkGreen:e=new r.a(255,0,100,0);break;case o.d.DarkKhaki:e=new r.a(255,189,183,107);break;case o.d.DarkMagenta:e=new r.a(255,139,0,139);break;case o.d.DarkOliveGreen:e=new r.a(255,85,107,47);break;case o.d.DarkOrange:e=new r.a(255,255,140,0);break;case o.d.DarkOrchid:e=new r.a(255,153,50,204);break;case o.d.DarkRed:e=new r.a(255,139,0,0);break;case o.d.DarkSalmon:e=new r.a(255,233,150,122);break;case o.d.DarkSeaGreen:e=new r.a(255,143,188,139);break;case o.d.DarkSlateBlue:e=new r.a(255,72,61,139);break;case o.d.DarkSlateGray:e=new r.a(255,47,79,79);break;case o.d.DarkTurquoise:e=new r.a(255,0,206,209);break;case o.d.DarkViolet:e=new r.a(255,148,0,211);break;case o.d.DeepPink:e=new r.a(255,255,20,147);break;case o.d.DeepSkyBlue:e=new r.a(255,0,191,255);break;case o.d.DimGray:e=new r.a(255,105,105,105);break;case o.d.DodgerBlue:e=new r.a(255,30,144,255);break;case o.d.Firebrick:e=new r.a(255,178,34,34);break;case o.d.FloralWhite:e=new r.a(255,255,250,240);break;case o.d.ForestGreen:e=new r.a(255,34,139,34);break;case o.d.Fuchsia:e=new r.a(255,255,0,255);break;case o.d.Gainsboro:e=new r.a(255,220,220,220);break;case o.d.GhostWhite:e=new r.a(255,248,248,255);break;case o.d.Gold:e=new r.a(255,255,215,0);break;case o.d.Goldenrod:e=new r.a(255,218,165,32);break;case o.d.Gray:e=new r.a(255,128,128,128);break;case o.d.Green:e=new r.a(255,0,128,0);break;case o.d.GreenYellow:e=new r.a(255,173,255,47);break;case o.d.Honeydew:e=new r.a(255,240,255,240);break;case o.d.HotPink:e=new r.a(255,255,105,180);break;case o.d.IndianRed:e=new r.a(255,205,92,92);break;case o.d.Indigo:e=new r.a(255,75,0,130);break;case o.d.Ivory:e=new r.a(255,255,255,240);break;case o.d.Khaki:e=new r.a(255,240,230,140);break;case o.d.Lavender:e=new r.a(255,230,230,250);break;case o.d.LavenderBlush:e=new r.a(255,255,240,245);break;case o.d.LawnGreen:e=new r.a(255,124,252,0);break;case o.d.LemonChiffon:e=new r.a(255,255,250,205);break;case o.d.LightBlue:e=new r.a(255,173,216,230);break;case o.d.LightCoral:e=new r.a(255,240,128,128);break;case o.d.LightCyan:e=new r.a(255,224,255,255);break;case o.d.LightGoldenrodYellow:e=new r.a(255,250,250,210);break;case o.d.LightGreen:e=new r.a(255,144,238,144);break;case o.d.LightGray:e=new r.a(255,211,211,211);break;case o.d.LightPink:e=new r.a(255,255,182,193);break;case o.d.LightSalmon:e=new r.a(255,255,160,122);break;case o.d.LightSeaGreen:e=new r.a(255,32,178,170);break;case o.d.LightSkyBlue:e=new r.a(255,135,206,250);break;case o.d.LightSlateGray:e=new r.a(255,119,136,153);break;case o.d.LightSteelBlue:e=new r.a(255,176,196,222);break;case o.d.LightYellow:e=new r.a(255,255,255,224);break;case o.d.Lime:e=new r.a(255,0,255,0);break;case o.d.LimeGreen:e=new r.a(255,50,205,50);break;case o.d.Linen:e=new r.a(255,250,240,230);break;case o.d.Magenta:e=new r.a(255,255,0,255);break;case o.d.Maroon:e=new r.a(255,128,0,0);break;case o.d.MediumAquamarine:e=new r.a(255,102,205,170);break;case o.d.MediumBlue:e=new r.a(255,0,0,205);break;case o.d.MediumOrchid:e=new r.a(255,186,85,211);break;case o.d.MediumPurple:e=new r.a(255,147,112,219);break;case o.d.MediumSeaGreen:e=new r.a(255,60,179,113);break;case o.d.MediumSlateBlue:e=new r.a(255,123,104,238);break;case o.d.MediumSpringGreen:e=new r.a(255,0,250,154);break;case o.d.MediumTurquoise:e=new r.a(255,72,209,204);break;case o.d.MediumVioletRed:e=new r.a(255,199,21,133);break;case o.d.MidnightBlue:e=new r.a(255,25,25,112);break;case o.d.MintCream:e=new r.a(255,245,255,250);break;case o.d.MistyRose:e=new r.a(255,255,228,225);break;case o.d.Moccasin:e=new r.a(255,255,228,181);break;case o.d.NavajoWhite:e=new r.a(255,255,222,173);break;case o.d.Navy:e=new r.a(255,0,0,128);break;case o.d.OldLace:e=new r.a(255,253,245,230);break;case o.d.Olive:e=new r.a(255,128,128,0);break;case o.d.OliveDrab:e=new r.a(255,107,142,35);break;case o.d.Orange:e=new r.a(255,255,165,0);break;case o.d.OrangeRed:e=new r.a(255,255,69,0);break;case o.d.Orchid:e=new r.a(255,218,112,214);break;case o.d.PaleGoldenrod:e=new r.a(255,238,232,170);break;case o.d.PaleGreen:e=new r.a(255,152,251,152);break;case o.d.PaleTurquoise:e=new r.a(255,175,238,238);break;case o.d.PaleVioletRed:e=new r.a(255,219,112,147);break;case o.d.PapayaWhip:e=new r.a(255,255,239,213);break;case o.d.PeachPuff:e=new r.a(255,255,218,185);break;case o.d.Peru:e=new r.a(255,205,133,63);break;case o.d.Pink:e=new r.a(255,255,192,203);break;case o.d.Plum:e=new r.a(255,221,160,221);break;case o.d.PowderBlue:e=new r.a(255,176,224,230);break;case o.d.Purple:e=new r.a(255,128,0,128);break;case o.d.Red:e=new r.a(255,255,0,0);break;case o.d.RosyBrown:e=new r.a(255,188,143,143);break;case o.d.RoyalBlue:e=new r.a(255,65,105,225);break;case o.d.SaddleBrown:e=new r.a(255,139,69,19);break;case o.d.Salmon:e=new r.a(255,250,128,114);break;case o.d.SandyBrown:e=new r.a(255,244,164,96);break;case o.d.SeaGreen:e=new r.a(255,46,139,87);break;case o.d.SeaShell:e=new r.a(255,255,245,238);break;case o.d.Sienna:e=new r.a(255,160,82,45);break;case o.d.Silver:e=new r.a(255,192,192,192);break;case o.d.SkyBlue:e=new r.a(255,135,206,235);break;case o.d.SlateBlue:e=new r.a(255,106,90,205);break;case o.d.SlateGray:e=new r.a(255,112,128,144);break;case o.d.Snow:e=new r.a(255,255,250,250);break;case o.d.SpringGreen:e=new r.a(255,0,255,127);break;case o.d.SteelBlue:e=new r.a(255,70,130,180);break;case o.d.Tan:e=new r.a(255,210,180,140);break;case o.d.Teal:e=new r.a(255,0,128,128);break;case o.d.Thistle:e=new r.a(255,216,191,216);break;case o.d.Tomato:e=new r.a(255,255,99,71);break;case o.d.Turquoise:e=new r.a(255,64,224,208);break;case o.d.Violet:e=new r.a(255,238,130,238);break;case o.d.Wheat:e=new r.a(255,245,222,179);break;case o.d.White:e=new r.a(255,255,255,255);break;case o.d.WhiteSmoke:e=new r.a(255,245,245,245);break;case o.d.Yellow:e=new r.a(255,255,255,0);break;case o.d.YellowGreen:e=new r.a(255,154,205,50)}return e},t.sBrushes=new n.a,t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return g});var r=i(2),n=i(9),o=i(0),s=i(4),a=i(1),h=i(33),u=i(6),l=i(5),c=i(34),d=i(26),f=i(60),p=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),g=function(t){function e(e,i,r,h){var u=t.call(this,new s.a)||this;if(u.mDictionaryProperties=new a.a,e instanceof o.a&&i instanceof o.a&&r instanceof n.a&&h instanceof n.a)u.initialize(r,h),u.mPointStart=e,u.mPointEnd=i,u.setPoints(u.mPointStart,u.mPointEnd);else if(e instanceof o.d)if(u.initialize(i,r),h===f.c.BackwardDiagonal||h===f.c.ForwardDiagonal||h===f.c.Horizontal||h===f.c.Vertical){switch(u.mBoundaries=e,h){case f.c.BackwardDiagonal:u.mPointStart=new o.a(e.right,e.top),u.mPointEnd=new o.a(e.left,e.bottom);break;case f.c.ForwardDiagonal:u.mPointStart=new o.a(e.left,e.top),u.mPointEnd=new o.a(e.right,e.bottom);break;case f.c.Horizontal:u.mPointStart=new o.a(e.left,e.top),u.mPointEnd=new o.a(e.right,e.top);break;case f.c.Vertical:u.mPointStart=new o.a(e.left,e.top),u.mPointEnd=new o.a(e.left,e.bottom);break;default:throw new Error("ArgumentException -- Unsupported linear gradient mode: "+h+" mode")}u.setPoints(u.mPointStart,u.mPointEnd)}else if("number"==typeof h&&void 0!==h){if(u.mBoundaries=e,0===(h%=360))u.mPointStart=new o.a(e.left,e.top),u.mPointEnd=new o.a(e.right,e.top);else if(90===h)u.mPointStart=new o.a(e.left,e.top),u.mPointEnd=new o.a(e.left,e.bottom);else if(180===h)u.mPointEnd=new o.a(e.left,e.top),u.mPointStart=new o.a(e.right,e.top);else if(270===h)u.mPointEnd=new o.a(e.left,e.top),u.mPointStart=new o.a(e.left,e.bottom);else{var l=Math.PI/180,c=h*l,d=Math.tan(c),p=u.mBoundaries.left+(u.mBoundaries.right-u.mBoundaries.left)/2,g=u.mBoundaries.top+(u.mBoundaries.bottom-u.mBoundaries.top)/2,m=new o.a(p,g);p=u.mBoundaries.width/(2*Math.cos(c)),g=d*p,p+=m.x,g+=m.y;var y=new o.a(p,g),b=u.subPoints(y,m),w=u.choosePoint(h),v=u.mulPoints(u.subPoints(w,m),b)/u.mulPoints(b,b);u.mPointEnd=u.addPoints(m,u.mulPoint(b,v)),u.mPointStart=u.addPoints(m,u.mulPoint(b,-1*v))}u.setPoints(u.mPointEnd,u.mPointStart)}return u}return p(e,t),e.prototype.initialize=function(t,e){this.mColours=[t,e],this.mColourBlend=new c.a(2),this.mColourBlend.positions=[0,1],this.mColourBlend.colors=this.mColours,this.initShading()},Object.defineProperty(e.prototype,"blend",{get:function(){return this.mBlend},set:function(t){if(null==t)throw new Error("ArgumentNullException : Blend");if(null==this.mColours)throw new Error("NotSupportedException : There is no starting and ending colours specified.");this.mBlend=t,this.mColourBlend=this.mBlend.generateColorBlend(this.mColours,this.colorSpace),this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interpolationColors",{get:function(){return this.mColourBlend},set:function(t){if(null==t)throw new Error("ArgumentNullException : InterpolationColors");this.mBlend=null,this.mColours=null,this.mColourBlend=t,this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linearColors",{get:function(){return this.mColours},set:function(t){if(null==t)throw new Error("ArgumentNullException : LinearColors");if(t.length<2)throw new Error("ArgumentException : The array is too small - LinearColors");null==this.mColours&&void 0===this.mColours?this.mColours=[t[0],t[1]]:(this.mColours[0]=t[0],this.mColours[1]=t[1]),null==this.mBlend&&void 0===this.mBlend?(this.mColourBlend=new c.a(2),this.mColourBlend.colors=this.mColours,this.mColourBlend.positions=[0,1]):this.mColourBlend=this.mBlend.generateColorBlend(this.mColours,this.colorSpace),this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectangle",{get:function(){return this.mBoundaries},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extend",{get:function(){var t=f.a.None,e=this.shading.items.getValue(this.mDictionaryProperties.extend);if(null!=e){var i=e.items(0),r=e.items(1);i.value&&(t|=f.a.Start),r.value&&(t|=f.a.End)}return t},set:function(t){var e,i,r=this.shading.items.getValue(this.mDictionaryProperties.extend);null==r?(e=new h.a(!1),i=new h.a(!1),r=new u.a,r.add(e),r.add(i),this.shading.items.setValue(this.mDictionaryProperties.extend,r)):(e=r.items(0),i=r.items(1))},enumerable:!0,configurable:!0}),e.prototype.addPoints=function(t,e){var i=t.x+e.x,r=t.y+e.y;return new o.a(i,r)},e.prototype.subPoints=function(t,e){var i=t.x-e.x,r=t.y-e.y;return new o.a(i,r)},e.prototype.mulPoints=function(t,e){return t.x*e.x+t.y*e.y},e.prototype.mulPoint=function(t,e){return t.x=t.x*e,t.y=t.y*e,t},e.prototype.choosePoint=function(t){var e=new o.a(0,0);if(t<90&&t>0)e=new o.a(this.mBoundaries.right,this.mBoundaries.bottom);else if(t<180&&t>90)e=new o.a(this.mBoundaries.left,this.mBoundaries.bottom);else if(t<270&&t>180)e=new o.a(this.mBoundaries.left,this.mBoundaries.top);else{if(!(t>270))throw new Error("PdfException - Internal error.");e=new o.a(this.mBoundaries.right,this.mBoundaries.top)}return e},e.prototype.setPoints=function(t,e){var i=new u.a;i.add(new l.a(t.x)),i.add(new l.a(this.updateY(t.y))),i.add(new l.a(e.x)),i.add(new l.a(this.updateY(e.y))),this.shading.items.setValue(this.mDictionaryProperties.coords,i)},e.prototype.updateY=function(t){return 0!==t?-t:t},e.prototype.initShading=function(){this.colorSpace=r.i.Rgb,this.function=this.mColourBlend.getFunction(this.colorSpace),this.shading.items.setValue(this.mDictionaryProperties.shadingType,new l.a(f.b.Axial))},e.prototype.clone=function(){var t=this;return t.resetPatternDictionary(new s.a(this.patternDictionary)),t.shading=new s.a,t.initShading(),t.setPoints(t.mPointStart,t.mPointEnd),null!==t&&t instanceof e&&null!=this.matrix&&void 0!==this.matrix&&(t.matrix=this.matrix.clone()),null!=this.mColours&&void 0!==this.mColours&&(t.mColours=this.mColours),null!=this.blend&&void 0!==this.blend?t.blend=this.blend.clonePdfBlend():null!=this.interpolationColors&&void 0!==this.interpolationColors&&(t.interpolationColors=this.interpolationColors.cloneColorBlend()),t.extend=this.extend,this.cloneBackgroundValue(t),this.cloneAntiAliasingValue(t),t},e.prototype.resetFunction=function(){this.function=this.mColourBlend.getFunction(this.colorSpace)},e}(d.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return f});var r=i(2),n=i(4),o=i(1),s=i(33),a=i(6),h=i(5),u=i(34),l=i(26),c=i(60),d=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f=function(t){function e(e,i,r,s,a,h){var u=t.call(this,new n.a)||this;if(u.mDictionaryProperties=new o.a,u.initialize(a,h),i<0)throw new Error("ArgumentOutOfRangeException : radiusStart - The radius cannot be less then zero.");if(s<0)throw new Error("ArgumentOutOfRangeException : radiusEnd - The radius cannpt be less then zero.");return u.mPointEnd=r,u.mPointStart=e,u.mRadiusStart=i,u.mRadiusEnd=s,u.setPoints(u.mPointStart,u.mPointEnd,u.mRadiusStart,u.mRadiusEnd),u}return d(e,t),e.prototype.initialize=function(t,e){this.mColour=[t,e],this.mColourBlends=new u.a(2),this.mColourBlends.positions=[0,1],this.mColourBlends.colors=this.mColour,this.initShading()},Object.defineProperty(e.prototype,"blend",{get:function(){return this.mBlend},set:function(t){if(null==t)throw new Error("ArgumentNullException : Blend");if(null==this.mColour&&void 0===this.mColour)throw new Error("NotSupportedException : There is no starting and ending colours specified.");this.mBlend=t,this.mColourBlends=this.mBlend.generateColorBlend(this.mColour,this.colorSpace),this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interpolationColors",{get:function(){return this.mColourBlends},set:function(t){if(null==t)throw new Error("ArgumentNullException : InterpolationColors");this.mBlend=null,this.mColour=null,this.mColourBlends=t,this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linearColors",{get:function(){return this.mColour},set:function(t){if(null==t)throw new Error("ArgumentNullException : radial LinearColors");if(t.length<2)throw new Error("ArgumentException : The array is too small LinearColors");null==this.mColour&&void 0===this.mColour?this.mColour=[t[0],t[1]]:(this.mColour[0]=t[0],this.mColour[1]=t[1]),null==this.mBlend&&void 0===this.mBlend?(this.mColourBlends=new u.a(2),this.mColourBlends.colors=this.mColour,this.mColourBlends.positions=[0,1]):this.mColourBlends=this.mBlend.generateColorBlend(this.mColour,this.colorSpace),this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectangle",{get:function(){return this.mBoundaries},set:function(t){this.mBoundaries=t,this.bBox=a.a.fromRectangle(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extend",{get:function(){var t=c.a.None,e=this.shading.items.getValue(this.mDictionaryProperties.extend);if(null!==e&&void 0!==e){var i=e.items(0),r=e.items(1);i.value&&(t|=c.a.Start),r.value&&(t|=c.a.End)}return t},set:function(t){var e,i,r=this.shading.items.getValue(this.mDictionaryProperties.extend);null==r&&void 0===r?(e=new s.a(!1),i=new s.a(!1),r=new a.a,r.add(e),r.add(i),this.shading.items.setValue(this.mDictionaryProperties.extend,r)):(e=r.items(0),i=r.items(1))},enumerable:!0,configurable:!0}),e.prototype.setPoints=function(t,e,i,r){var n=new a.a;n.add(new h.a(t.x)),n.add(new h.a(this.updateY(t.y))),n.add(new h.a(i)),n.add(new h.a(e.x)),n.add(new h.a(this.updateY(e.y))),i!==r?n.add(new h.a(r)):n.add(new h.a(0)),this.shading.items.setValue(this.mDictionaryProperties.coords,n)},e.prototype.updateY=function(t){return 0!==t?-t:t},e.prototype.initShading=function(){this.colorSpace=r.i.Rgb,this.function=this.mColourBlends.getFunction(this.colorSpace),this.shading.items.setValue(this.mDictionaryProperties.shadingType,new h.a(c.b.Radial))},e.prototype.clone=function(){var t=this;return t.resetPatternDictionary(new n.a(this.patternDictionary)),t.shading=new n.a,t.initShading(),t.setPoints(this.mPointStart,this.mPointEnd,this.mRadiusStart,this.mRadiusEnd),t instanceof e&&null!==this.matrix&&void 0!==this.matrix&&(t.matrix=this.matrix.clone()),null!==this.mColour&&void 0!==this.mColour&&(t.mColour=this.mColour),null!==this.blend&&void 0!==this.blend?t.blend=this.blend.clonePdfBlend():null!==this.interpolationColors&&void 0!==this.interpolationColors&&(t.interpolationColors=this.interpolationColors.cloneColorBlend()),t.extend=this.extend,this.cloneBackgroundValue(t),this.cloneAntiAliasingValue(t),t},e.prototype.resetFunction=function(){this.function=this.mColourBlends.getFunction(this.colorSpace)},e}(l.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(15),n=i(12),o=i(0),s=i(121),a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e,i,n,s,a,h,u){var l=this;return void 0===e?l=t.call(this)||this:e instanceof o.c?l=t.call(this,e,i,n)||this:e instanceof r.a?i instanceof o.c?l=t.call(this,e,null,i,n,s)||this:void 0===h&&void 0===u?l=t.call(this,e,null,0,0,i,n,s,a)||this:void 0!==h&&void 0!==u&&(l=t.call(this,e,null,i,n,s,a,h,u)||this):void 0!==e&&void 0===a&&void 0===h?l=t.call(this,0,0,e,i,n,s)||this:void 0!==e&&void 0!==a&&void 0!==h&&(l=t.call(this,e,i,n,s,a,h)||this),l}return a(e,t),e.prototype.draw=function(t,e,i,r){if(e instanceof o.a&&void 0===e.width&&void 0===i)return this.drawHelper(t,e.x,e.y);if(e instanceof o.c&&void 0!==e.width&&void 0===i)return this.drawHelper(t,e,null);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.drawHelper(t,e,i,null);if(e instanceof o.a&&i instanceof n.b)return this.drawHelper(t,e.x,e.y,i);if("number"==typeof e&&(r instanceof n.b||null==r)&&"number"==typeof i){var s=t.graphics.clientSize.width-e,a=new o.c(e,i,s,0);return this.drawHelper(t,a,r)}return this.drawHelper(t,e,i)},e.prototype.drawInternal=function(t){if(null==t)throw new Error("ArgumentNullException : graphics");t.drawArc(this.obtainPen(),this.bounds,this.startAngle,this.sweepAngle)},e}(s.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return c});var r=i(11),n=i(15),o=i(12),s=i(0),a=i(21),h=i(101),u=i(2),l=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),c=function(t){function e(e,i,o,s){var a=t.call(this)||this;return a.mpoints=null,a.mpathTypes=null,a.mStartFigure=!0,a.mfillMode=u.h.Alternate,a.isBeziers3=!1,a.isXps=!1,void 0===e||(e instanceof n.a?(a=t.call(this,e)||this,i instanceof r.a?(a=t.call(this,e,i)||this,a.fillMode=o):null!==i&&void 0!==i&&null!==o&&void 0!==o&&a.addPath(i,o)):e instanceof r.a?(a=t.call(this,e)||this,null!==i&&void 0!==i&&(a.fillMode=i),null!==o&&void 0!==o&&null!==s&&void 0!==s&&a.addPath(o,s)):a.addPath(e,i)),a}return l(e,t),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this.mfillMode},set:function(t){this.mfillMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathPoints",{get:function(){return this.points},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathTypes",{get:function(){return this.types},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointCount",{get:function(){var t=0;return null!=this.mpoints&&(t=this.mpoints.length),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastPoint",{get:function(){return this.getLastPoint()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"points",{get:function(){return null==this.mpoints&&(this.mpoints=[]),this.mpoints},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"types",{get:function(){return null==this.mpathTypes&&(this.mpathTypes=[]),this.mpathTypes},enumerable:!0,configurable:!0}),e.prototype.draw=function(t,e,i,r){if(e instanceof s.a&&void 0===e.width&&void 0===i)return this.drawHelper(t,e.x,e.y);if(e instanceof s.c&&void 0!==e.width&&void 0===i)return this.drawHelper(t,e,null);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.drawHelper(t,e,i,null);if(e instanceof s.a&&i instanceof o.b)return this.drawHelper(t,e.x,e.y,i);if("number"==typeof e&&(r instanceof o.b||null==r)&&"number"==typeof i){var n=t.graphics.clientSize.width-e,a=new s.c(e,i,n,0);return this.drawHelper(t,a,r)}return e instanceof s.c&&o.b,this.drawHelper(t,e,i)},e.prototype.addArc=function(t,e,i,r,n,o){if(t instanceof s.c)this.addArc(t.x,t.y,t.width,t.height,e,i);else for(var h=this.getBezierArcPoints(t,e,e+i,e+r,n,o),u=0;u<h.length;u+=8){var l=[h[u],h[u+1],h[u+2],h[u+3],h[u+4],h[u+5],h[u+6],h[u+7]];this.addPoints(l,a.c.Bezier3)}},e.prototype.addBezier=function(t,e,i,r,n,o,h,u){if(t instanceof s.a&&e instanceof s.a&&i instanceof s.a&&r instanceof s.a)this.addBezier(t.x,t.y,e.x,e.y,i.x,i.y,r.x,r.y);else{var l=[];l.push(t),l.push(e),l.push(i),l.push(r),l.push(n),l.push(o),l.push(h),l.push(u),this.addPoints(l,a.c.Bezier3)}},e.prototype.addEllipse=function(t,e,i,r){t instanceof s.c?this.addEllipse(t.x,t.y,t.width,t.height):(this.startFigure(),this.addArc(t,e,i,r,0,360),this.closeFigure())},e.prototype.addLine=function(t,e,i,r){if(t instanceof s.a&&e instanceof s.a)this.addLine(t.x,t.y,e.x,e.y);else{var n=[];n.push(t),n.push(e),n.push(i),n.push(r),this.addPoints(n,a.c.Line)}},e.prototype.addPath=function(t,i){if(t instanceof e)this.addPath(t.pathPoints,t.pathTypes);else{if(null==t)throw new Error("ArgumentNullException:pathPoints");if(null==i)throw new Error("ArgumentNullException:pathTypes");if(t.length!==i.length)throw new Error("The argument arrays should be of equal length.")}},e.prototype.addPie=function(t,e,i,r,n,o){t instanceof s.c?this.addPie(t.x,t.y,t.width,t.height,e,i):(this.startFigure(),this.addArc(t,e,i,r,n,o),this.addPoint(new s.a(t+i/2,e+r/2),a.c.Line),this.closeFigure())},e.prototype.addPolygon=function(t){var e=(t.length,[]);this.startFigure();for(var i=0;i<t.length;i++)e.push(t[i].x),e.push(t[i].y);this.addPoints(e,a.c.Line),this.closeFigure()},e.prototype.addRectangle=function(t,e,i,r){if(t instanceof s.c)this.addRectangle(t.x,t.y,t.width,t.height);else{var n=[];this.startFigure(),n.push(t),n.push(e),n.push(t+i),n.push(e),n.push(t+i),n.push(e+r),n.push(t),n.push(e+r),this.addPoints(n,a.c.Line),this.closeFigure()}},e.prototype.startFigure=function(){this.mStartFigure=!0},e.prototype.closeAllFigures=function(){for(var t=this.pathPoints[0],e=0;e<this.mpathTypes.length;e++){var i=this.types[e],r=!1;0!==e&&i===a.c.Start?(this.closeFigure(e-1),r=!0):e===this.mpathTypes.length-1&&!r&&this.isXps&&t.x===this.pathPoints[e].y&&this.closeFigure(e)}},e.prototype.getLastPoint=function(){var t=new s.a(0,0),e=this.pointCount;return e>0&&null!=this.mpoints&&(t.x=this.mpoints[e-1].x,t.y=this.mpoints[e-1].y),t},e.prototype.getBezierArcPoints=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){var s=void 0;s=e,e=r,r=s}var a,h;Math.abs(o)<=90?(a=o,h=1):(h=Math.ceil(Math.abs(o)/90),a=o/h);for(var u=(t+i)/2,l=(e+r)/2,c=(i-t)/2,d=(r-e)/2,f=a*(Math.PI/360),p=Math.abs(4/3*(1-Math.cos(f))/Math.sin(f)),g=[],m=0;m<h;m++){var y=(n+m*a)*(Math.PI/180),b=(n+(m+1)*a)*(Math.PI/180),w=Math.cos(y),v=Math.cos(b),S=Math.sin(y),P=Math.sin(b);a>0?g.push(u+c*w,l-d*S,u+c*(w-p*S),l-d*(S+p*w),u+c*(v+p*P),l-d*(P-p*v),u+c*v,l-d*P):g.push(u+c*w,l-d*S,u+c*(w+p*S),l-d*(S-p*w),u+c*(v-p*P),l-d*(P+p*v),u+c*v,l-d*P)}return g},e.prototype.getBoundsInternal=function(){var t=this.pathPoints,e=new s.c(0,0,0,0);if(t.length>0){for(var i=t[0].x,r=t[0].x,n=t[0].y,o=t[0].y,a=1;a<t.length;a++){var h=t[a];i=Math.min(h.x,i),r=Math.max(h.x,r),n=Math.min(h.y,n),o=Math.max(h.y,o)}e=new s.c(i,n,r-i,o-n)}return e},e.prototype.drawInternal=function(t){if(null==t)throw new Error("ArgumentNullException :graphics");t.drawPath(this.obtainPen(),this.brush,this)},e.prototype.addPoints=function(t,e,i,r){if(void 0===i&&void 0===r)this.addPoints(t,e,0,t.length);else for(var n=i;n<r;n++){var o=new s.a(t[n],t[n+1]);n===i?this.pointCount<=0||this.mStartFigure?(this.addPoint(o,a.c.Start),this.mStartFigure=!1):o.x===this.lastPoint.x||o.y===this.lastPoint.y||this.isBeziers3?o.x!==this.lastPoint.x&&o.y!==this.lastPoint.y&&this.addPoint(o,a.c.Bezier3):this.addPoint(o,a.c.Line):this.addPoint(o,e),n++}},e.prototype.addPoint=function(t,e){this.points.push(t),this.types.push(e)},e.prototype.closeFigure=function(t){if(void 0===t)this.pointCount>0&&this.closeFigure(this.pointCount-1),this.startFigure();else{if(t<0)throw new Error("IndexOutOfRangeException()");var e=this.types[t];e|=a.c.CloseSubpath,this.types[t]=e}},e}(h.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return l});var r=i(102),n=i(22),o=i(7),s=i(20),a=i(2),h=i(47),u=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=function(t){function e(e,i,r){var n=t.call(this,i)||this;return n.isEmbedFont=!1,n.isUnicode=!0,void 0!==r?n.createFontInternal(e,r):n.createFontInternal(e,o.a.Regular),n}return u(e,t),e.prototype.equalsToFont=function(t){return!1},e.prototype.getLineWidth=function(t,e){var i=0;if(null!==e&&void 0!==e&&e.textDirection!==a.m.None){i=this.getUnicodeLineWidth(t,i,e).width}else i=this.fontInternal.getLineWidth(t);var r=this.metrics.getSize(e);return i*=n.a.charSizeMultiplier*r,i=this.applyFormatSettings(t,e,i)},e.prototype.getCharWidth=function(t,e){var i=this.fontInternal.getCharWidth(t);return i*=.001*this.metrics.getSize(e)},e.prototype.createFontInternal=function(t,e){this.fontInternal=new r.a(t,this.size),this.calculateStyle(e),this.initializeInternals()},e.prototype.calculateStyle=function(t){var e=this.fontInternal.ttfMetrics.macStyle;0!=(t&o.a.Underline)&&(e|=o.a.Underline),0!=(t&o.a.Strikeout)&&(e|=o.a.Strikeout),this.setStyle(e)},e.prototype.initializeInternals=function(){var t=null;s.a.enableCache&&(t=s.a.cache.search(this));var e=null;if(null!==t&&void 0!==t){e=t.getInternals();var i=t.metrics;i=i.clone(),i.size=this.size,this.metrics=i,this.fontInternal=t.fontInternal}else null==t&&(this.fontInternal instanceof r.a&&(this.fontInternal.isEmbed=this.isEmbedFont),this.fontInternal.createInternals(),e=this.fontInternal.getInternals(),this.metrics=this.fontInternal.metrics);this.metrics.isUnicodeFont=!0,this.setInternals(e)},e.prototype.setSymbols=function(t){var e=this.fontInternal;null!=e&&e.setSymbols(t)},Object.defineProperty(e.prototype,"Unicode",{get:function(){return this.isUnicode},enumerable:!0,configurable:!0}),e.prototype.getUnicodeLineWidth=function(t,e,i){e=0;var r=null,n=new h.a,o=n.getGlyphIndex(t,this,i.textDirection===a.m.RightToLeft,r,!0),s=o.success;if(r=o.glyphs,s&&null!==r)for(var u=this.fontInternal.ttfReader,l=0,c=r.length;l<c;l++){var d=r[l],f=u.getGlyph(d);null!==f&&void 0!==f&&(e+=f.width)}return{success:s,width:e}},e}(n.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(19),n=i(0),o=i(27),s=i(25),a=function(){function t(t,e,i,r,o){t instanceof n.c&&void 0===e?this.InitiateBounds(t.x,t.y,t.width,t.height,null):t instanceof n.c&&e instanceof s.a&&void 0===i?this.InitiateBounds(t.x,t.y,t.width,t.height,e):t instanceof n.a&&e instanceof n.b&&void 0===i?this.InitiateBounds(t.x,t.y,e.width,e.height,null):t instanceof n.a&&e instanceof n.b&&i instanceof s.a&&void 0===r?this.InitiateBounds(t.x,t.y,e.width,e.height,i):t instanceof n.b&&void 0===e?this.InitiateBounds(0,0,t.width,t.height,null):"number"==typeof t&&"number"==typeof e&&void 0===i?this.InitiateBounds(0,0,t,e,null):"number"==typeof t&&"number"==typeof e&&i instanceof s.a&&void 0===r?this.InitiateBounds(0,0,t,e,i):this.InitiateBounds(t,e,i,r,null)}return Object.defineProperty(t.prototype,"dock",{get:function(){return this.dockStyle},set:function(t){this.dockStyle=t,this.resetAlignment()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alignment",{get:function(){return this.alignmentStyle},set:function(t){this.setAlignment(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"foreground",{get:function(){return this.isForeground},set:function(t){this.isForeground=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"background",{get:function(){return!this.isForeground},set:function(t){this.isForeground=!t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.currentLocation},set:function(t){this.type===r.f.None&&(this.currentLocation=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return void 0!==this.currentLocation?this.currentLocation.x:0},set:function(t){this.type===r.f.None&&(this.currentLocation.x=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return void 0!==this.currentLocation?this.currentLocation.y:0},set:function(t){this.type===r.f.None&&(this.currentLocation.y=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.template.size},set:function(t){this.type===r.f.None&&this.template.reset(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.template.width},set:function(t){if(this.template.width!==t&&this.type===r.f.None){var e=this.template.size;e.width=t,this.template.reset(e)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.template.height},set:function(t){if(this.template.height!==t&&this.type===r.f.None){var e=this.template.size;e.height=t,this.template.reset(e)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){return this.template.graphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return this.pdfTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.templateType},set:function(t){this.updateDocking(t),this.templateType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return new n.c(new n.a(this.x,this.y),this.size)},set:function(t){this.type===r.f.None&&(this.location=new n.a(t.x,t.y),this.size=new n.b(t.width,t.height))},enumerable:!0,configurable:!0}),t.prototype.InitiateBounds=function(t,e,i,r,n){this.x=t,this.y=e,this.pdfTemplate=new o.a(i,r)},t.prototype.updateDocking=function(t){if(t!==r.f.None){switch(t){case r.f.Top:this.dock=r.d.Top;break;case r.f.Bottom:this.dock=r.d.Bottom;break;case r.f.Left:this.dock=r.d.Left;break;case r.f.Right:this.dock=r.d.Right}this.resetAlignment()}},t.prototype.resetAlignment=function(){this.alignment=r.e.None},t.prototype.setAlignment=function(t){if(this.dock===r.d.None)this.alignmentStyle=t;else{var e=!1;switch(this.dock){case r.d.Left:e=t===r.e.TopLeft||t===r.e.MiddleLeft||t===r.e.BottomLeft||t===r.e.None;break;case r.d.Top:e=t===r.e.TopLeft||t===r.e.TopCenter||t===r.e.TopRight||t===r.e.None;break;case r.d.Right:e=t===r.e.TopRight||t===r.e.MiddleRight||t===r.e.BottomRight||t===r.e.None;break;case r.d.Bottom:e=t===r.e.BottomLeft||t===r.e.BottomCenter||t===r.e.BottomRight||t===r.e.None;break;case r.d.Fill:e=t===r.e.MiddleCenter||t===r.e.None}e&&(this.alignmentStyle=t)}},t.prototype.draw=function(t,e){var i=t.page,r=this.calculateBounds(i,e);t.graphics.drawPdfTemplate(this.template,new n.a(r.x,r.y),new n.b(r.width,r.height))},t.prototype.calculateBounds=function(t,e){var i=this.bounds;return this.alignmentStyle!==r.e.None?i=this.getAlignmentBounds(t,e):this.dockStyle!==r.d.None&&(i=this.getDockBounds(t,e)),i},t.prototype.getAlignmentBounds=function(t,e){this.bounds;return this.type===r.f.None?this.getSimpleAlignmentBounds(t,e):this.getTemplateAlignmentBounds(t,e)},t.prototype.getSimpleAlignmentBounds=function(t,e){var i=this.bounds,n=t.section,o=n.getActualBounds(e,t,!1),s=this.x,a=this.y;switch(this.alignmentStyle){case r.e.TopLeft:s=0,a=0;break;case r.e.TopCenter:s=(o.width-this.width)/2,a=0;break;case r.e.TopRight:s=o.width-this.width,a=0;break;case r.e.MiddleLeft:s=0,a=(o.height-this.height)/2;break;case r.e.MiddleCenter:s=(o.width-this.width)/2,a=(o.height-this.height)/2;break;case r.e.MiddleRight:s=o.width-this.width,a=(o.height-this.height)/2;break;case r.e.BottomLeft:s=0,a=o.height-this.height;break;case r.e.BottomCenter:s=(o.width-this.width)/2,a=o.height-this.height;break;case r.e.BottomRight:s=o.width-this.width,a=o.height-this.height}return i.x=s,i.y=a,i},t.prototype.getTemplateAlignmentBounds=function(t,e){var i=this.bounds,n=t.section,o=n.getActualBounds(e,t,!1),s=this.x,a=this.y;switch(this.alignmentStyle){case r.e.TopLeft:this.type===r.f.Left?(s=this.convertSign(o.x),a=0):this.type===r.f.Top&&(s=this.convertSign(o.x),a=this.convertSign(o.y));break;case r.e.TopCenter:s=(o.width-this.width)/2,a=this.convertSign(o.y);break;case r.e.TopRight:this.type===r.f.Right?(s=o.width+n.getRightIndentWidth(e,t,!1)-this.width,a=0):this.type===r.f.Top&&(s=o.width+n.getRightIndentWidth(e,t,!1)-this.width,a=this.convertSign(o.y));break;case r.e.MiddleLeft:s=this.convertSign(o.x),a=(o.height-this.height)/2;break;case r.e.MiddleCenter:s=(o.width-this.width)/2,a=(o.height-this.height)/2;break;case r.e.MiddleRight:s=o.width+n.getRightIndentWidth(e,t,!1)-this.width,a=(o.height-this.height)/2;break;case r.e.BottomLeft:this.type===r.f.Left?(s=this.convertSign(o.x),a=o.height-this.height):this.type===r.f.Bottom&&(s=this.convertSign(o.x),a=o.height+n.getBottomIndentHeight(e,t,!1)-this.height);break;case r.e.BottomCenter:s=(o.width-this.width)/2,a=o.height+n.getBottomIndentHeight(e,t,!1)-this.height;break;case r.e.BottomRight:this.type===r.f.Right?(s=o.width+n.getRightIndentWidth(e,t,!1)-this.width,a=o.height-this.height):this.type===r.f.Bottom&&(s=o.width+n.getRightIndentWidth(e,t,!1)-this.width,a=o.height+n.getBottomIndentHeight(e,t,!1)-this.height)}return i.x=s,i.y=a,i},t.prototype.getDockBounds=function(t,e){this.bounds;return this.type===r.f.None?this.getSimpleDockBounds(t,e):this.getTemplateDockBounds(t,e)},t.prototype.getSimpleDockBounds=function(t,e){var i=(this.bounds,t.section),o=i.getActualBounds(e,t,!1),s=this.x,a=this.y,h=this.width,u=this.height;switch(this.dockStyle){case r.d.Left:s=0,a=0,h=this.width,u=o.height;break;case r.d.Top:s=0,a=0,h=o.width,u=this.height;break;case r.d.Right:s=o.width-this.width,a=0,h=this.width,u=o.height;break;case r.d.Bottom:s=0,a=o.height-this.height,h=o.width,u=this.height;break;case r.d.Fill:s=0,s=0,h=o.width,u=o.height}return new n.c(s,a,h,u)},t.prototype.getTemplateDockBounds=function(t,e){var i=(this.bounds,t.section),o=i.getActualBounds(e,t,!1),s=i.pageSettings.getActualSize(),a=this.x,h=this.y,u=this.width,l=this.height;switch(this.dockStyle){case r.d.Left:a=this.convertSign(o.x),h=0,u=this.width,l=o.height;break;case r.d.Top:a=this.convertSign(o.x),h=this.convertSign(o.y),u=s.width,l=this.height,o.height<0&&(h=s.height-o.y);break;case r.d.Right:a=o.width+i.getRightIndentWidth(e,t,!1)-this.width,h=0,u=this.width,l=o.height;break;case r.d.Bottom:a=this.convertSign(o.x),h=o.height+i.getBottomIndentHeight(e,t,!1)-this.height,u=s.width,l=this.height,o.height<0&&(h-=s.height);break;case r.d.Fill:a=0,a=0,u=o.width,l=o.height}return new n.c(a,h,u,l)},t.prototype.convertSign=function(t){return 0!==t||0===t&&1/t==-1/0?-t:t},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){this.automaticFieldsInformation=[]}return Object.defineProperty(t.prototype,"automaticFields",{get:function(){return this.automaticFieldsInformation},enumerable:!0,configurable:!0}),t.prototype.add=function(t){return this.automaticFields.push(t)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return u});var r=i(59),n=i(32),o=i(100),s=i(0),a=i(27),h=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=function(t){function e(){var e=t.call(this)||this;return e.list=new n.a,e.painterGraphics=[],e}return h(e,t),e.prototype.performDraw=function(e,i,r,n){t.prototype.performDrawHelper.call(this,e,i,r,n);var h=this.getPageFromGraphics(e),u=h.document,l=this.getValue(e);if(this.list.containsKey(u)){var c=this.list.getValue(u),d=new s.a(i.x+this.location.x,i.y+this.location.y);e.drawPdfTemplate(c.template,d,new s.b(c.template.width*r,c.template.height*n)),this.painterGraphics.push(e)}else{var f=this.getSize(),p=new a.a(f);this.list.setValue(u,new o.a(p,l)),p.graphics.drawString(l,this.getFont(),this.pen,this.getBrush(),0,0,f.width,f.height,this.stringFormat);var d=new s.a(i.x+this.location.x,i.y+this.location.y);e.drawPdfTemplate(p,d,new s.b(p.width*r,p.height*n)),this.painterGraphics.push(e)}},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var r=i(119),n=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),o=function(t){function e(e){var i=t.call(this)||this;return void 0!==e&&(i.mpen=e),i}return n(e,t),Object.defineProperty(e.prototype,"pen",{get:function(){return this.mpen},set:function(t){this.mpen=t},enumerable:!0,configurable:!0}),e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t.prototype.drawHelper=function(t,e,i){var r=0!==e||0!==i,n=null;r&&(n=t.save(),t.translateTransform(e,i)),this.drawInternal(t),r&&t.restore(n)},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return s});var r=i(35),n=i(120),o=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getBounds=function(){return this.getBoundsInternal()},e.prototype.drawGraphicsHelper=function(t,e){if(null==t)throw new Error("ArgumentNullException :graphics");this.drawShapeHelper(t,e.x,e.y)},e.prototype.drawShapeHelper=function(t,e,i){var r=.5!==e||.5!==i,n=null;r&&(n=t.save(),t.translateTransform(e,i)),this.drawInternal(t),r&&t.restore(n)},e.prototype.layout=function(t){return new n.a(this).layout(t)},e}(r.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r=i(12),n=i(0),o=i(21),s=i(41),a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e){var i=t.call(this,e)||this;return i.olderPdfForm=0,i.shapeBounds=new n.c,i.totalPageSize=0,i}return a(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this.elements},enumerable:!0,configurable:!0}),e.prototype.layoutInternal=function(t){var e=t.page,i=t.bounds,r=this.element.getBounds();r.x=0,r.y=0;var n=this.shapeBounds.x===this.shapeBounds.y&&this.shapeBounds.y===this.shapeBounds.width&&this.shapeBounds.width===this.shapeBounds.height&&0===this.shapeBounds.height;this.isPdfGrid&&!n&&(r=this.shapeBounds);var o=null,s=new u;for(s.page=e;;){var a=this.raiseBeforePageLayout(e,i);i=a.currentBounds;var h=null;if(a.cancel||(s=this.layoutOnPage(e,i,r,t),h=this.raiseEndPageLayout(s),a.cancel=null!==h&&h.cancel),s.end||a.cancel){o=this.getLayoutResult(s);break}if(i=this.getPaginateBounds(t),r=this.getNextShapeBounds(r,s),e=null===h||null===h.nextPage?this.getNextPage(e):h.nextPage,this.isPdfGrid){o=this.getLayoutResult(s);break}}return o},e.prototype.raiseBeforePageLayout=function(t,e){var i=!1;if(this.element.raiseBeginPageLayout){var r=new s.h(e,t);this.element.onBeginPageLayout(r),i=r.cancel,e=r.bounds}return{currentBounds:e,cancel:i}},e.prototype.raiseEndPageLayout=function(t){var e=null;if(this.element.raiseEndPageLayout){var i=this.getLayoutResult(t);e=new s.i(i),this.element.onEndPageLayout(e)}return e},e.prototype.getLayoutResult=function(t){return new r.d(t.page,t.bounds)},e.prototype.getNextShapeBounds=function(t,e){var i=e.bounds;return t.y=t.y+i.height,t.height=t.height-i.height,t},e.prototype.layoutOnPage=function(t,e,i,r){var n=new u;e=this.checkCorrectCurrentBounds(t,e,r);var s=this.fitsToBounds(e,i),a=!(r.format.break===o.b.FitElement&&!s&&t===r.page),h=!1;if(a){var l=this.getDrawBounds(e,i);this.drawShape(t.graphics,e,l),n.bounds=this.getPageResultBounds(e,i),h=e.height>=i.height}return n.end=h||r.format.layout===o.a.OnePage,n.page=t,n},e.prototype.getDrawBounds=function(t,e){var i=t;return i.y=i.y-e.y,i.height=i.height+e.y,i},e.prototype.drawShape=function(t,e,i){var r=t.save();try{t.setClip(e),this.element.drawGraphicsHelper(t,new n.a(i.x,i.y))}finally{t.restore(r)}},e.prototype.checkCorrectCurrentBounds=function(t,e,i){var r=t.graphics.clientSize;return e.width=e.width>0?e.width:r.width-e.x,e.height=e.height>0?e.height:r.height-e.y,this.isPdfGrid&&(e.height=e.height-this.bottomCellPadding),e},e.prototype.getPageResultBounds=function(t,e){var i=t;return i.height=Math.min(i.height,e.height),i},e.prototype.fitsToBounds=function(t,e){return e.height<=t.height},e.index=0,e.splitDiff=0,e.last=!1,e.borderWidth=0,e}(r.a),u=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(15),n=i(0),o=i(122),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e,i,o,s,a,h,u,l){var c=t.call(this)||this;return c.startAngle=0,c.sweepAngle=0,void 0===e||(e instanceof n.c&&void 0!==i&&void 0!==o?(c=t.call(this,e)||this,c.startAngle=i,c.sweepAngle=o):e instanceof r.a?o instanceof n.c?(c=t.call(this,e,i,o)||this,c.startAngle=s,c.sweepAngle=a):(c=t.call(this,e,i,o,s,a,h)||this,c.startAngle=u,c.sweepAngle=l):(c=t.call(this,e,i,o,s)||this,c.startAngle=a,c.sweepAngle=h)),c}return s(e,t),e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r=i(15),n=i(0),o=i(101),s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function e(e,i,o,s,a,h){var u=t.call(this)||this;return u.bounds=new n.c(0,0,0,0),void 0===e||(e instanceof r.a?(u=t.call(this,e,i)||this,o instanceof n.c?u.bounds=o:u.bounds=new n.c(o,s,a,h)):e instanceof n.c?u.bounds=e:u.bounds=new n.c(e,i,o,s)),u}return s(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this.bounds.x},set:function(t){this.bounds.x=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.bounds.y},set:function(t){this.bounds.y=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.bounds.width},set:function(t){this.bounds.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bounds.height},set:function(t){this.bounds.height=t},enumerable:!0,configurable:!0}),e.prototype.getBoundsInternal=function(){return this.bounds},e}(o.a)},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return Object.defineProperty(t.prototype,"empty",{get:function(){return this.index===this.width&&this.width===this.charCode&&0===this.charCode},enumerable:!0,configurable:!0}),t.prototype.compareTo=function(t){var e=t;return this.index-e.index},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return Object.defineProperty(t.prototype,"isItalic",{get:function(){return 0!=(2&this.macStyle)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBold",{get:function(){return 0!=(1&this.macStyle)},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return O});var r=i(139),n=i(10),o=i(136),s=i(135),a=i(129),h=i(133),u=i(130),l=i(123),c=i(137),d=i(132),f=i(125),p=i(126),g=i(128),m=i(131),y=i(124),b=i(134),w=i(140),v=i(127),S=i(0),P=i(28),C=i(7),B=i(143),O=function(){function t(t){this.int32Size=4,this.isTtcFont=!1,this.isMacTtf=!1,this.metricsName="",this.isMacTTF=!1,this.missedGlyphs=0,this.tableNames=["cvt ","fpgm","glyf","head","hhea","hmtx","loca","maxp","prep"],this.entrySelectors=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4],this.fontData=t,this.initialize()}return Object.defineProperty(t.prototype,"macintosh",{get:function(){return null!==this.macintoshDictionary&&void 0!==this.macintoshDictionary||(this.macintoshDictionary=new n.a),this.macintoshDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"microsoft",{get:function(){return null!==this.microsoftDictionary&&void 0!==this.microsoftDictionary||(this.microsoftDictionary=new n.a),this.microsoftDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"macintoshGlyphs",{get:function(){return null!==this.internalMacintoshGlyphs&&void 0!==this.internalMacintoshGlyphs||(this.internalMacintoshGlyphs=new n.a),this.internalMacintoshGlyphs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"microsoftGlyphs",{get:function(){return null!==this.internalMicrosoftGlyphs&&void 0!==this.internalMicrosoftGlyphs||(this.internalMicrosoftGlyphs=new n.a),this.internalMicrosoftGlyphs},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){void 0===this.metrics&&(this.metrics=new h.a),this.readFontDictionary();var t=this.readNameTable(),e=this.readHeadTable();this.initializeFontName(t),this.metrics.macStyle=e.macStyle},t.prototype.readFontDictionary=function(){this.offset=0;var t=(this.checkPreambula(),this.readInt16(this.offset));this.readInt16(this.offset),this.readInt16(this.offset),this.readInt16(this.offset);void 0===this.tableDirectory&&(this.tableDirectory=new n.a);for(var e=0;e<t;++e){var i=new r.a,o=this.readString(this.int32Size);i.checksum=this.readInt32(this.offset),i.offset=this.readInt32(this.offset),i.length=this.readInt32(this.offset),this.tableDirectory.setValue(o,i)}this.lowestPosition=this.offset,this.isTtcFont||this.fixOffsets()},t.prototype.fixOffsets=function(){for(var t=Number.MAX_VALUE,e=this.tableDirectory.keys(),i=0;i<e.length;i++){var r=this.tableDirectory.getValue(e[i]),o=r.offset;if(t>o&&(t=o)<=this.lowestPosition)break}var s=t-this.lowestPosition;if(0!==s){for(var a=new n.a,i=0;i<e.length;i++){var r=this.tableDirectory.getValue(e[i]);r.offset-=s,a.setValue(e[i],r)}this.tableDirectory=a}},t.prototype.checkPreambula=function(){var t=this.readInt32(this.offset);if(this.isMacTtf=1953658213===t,65536!==t&&1953658213!==t&&1330926671!==t){this.isTtcFont=!0,this.offset=0;if("ttcf"!==this.readString(4))throw new Error("Can not read TTF font data");this.offset+=4;if(this.readInt32(this.offset)<0)throw new Error("Can not read TTF font data");this.offset=this.readInt32(this.offset),t=this.readInt32(this.offset)}return t},t.prototype.readNameTable=function(){var t=this.getTable("name");this.offset=t.offset;var e=new o.a;e.formatSelector=this.readUInt16(this.offset),e.recordsCount=this.readUInt16(this.offset),e.offset=this.readUInt16(this.offset),e.nameRecords=[];for(var i=this.offset,r=0;r<e.recordsCount;r++){this.offset=i;var n=new s.a;n.platformID=this.readUInt16(this.offset),n.encodingID=this.readUInt16(this.offset),n.languageID=this.readUInt16(this.offset),n.nameID=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.offset=this.readUInt16(this.offset),this.offset=t.offset+e.offset+n.offset;var a=0===n.platformID||3===n.platformID;n.name=this.readString(n.length,a),e.nameRecords[r]=n,i+=12}return e},t.prototype.readHeadTable=function(){var t=this.getTable("head");this.offset=t.offset;var e=new a.a;return e.version=this.readFixed(this.offset),e.fontRevision=this.readFixed(this.offset),e.checkSumAdjustment=this.readUInt32(this.offset),e.magicNumber=this.readUInt32(this.offset),e.flags=this.readUInt16(this.offset),e.unitsPerEm=this.readUInt16(this.offset),e.created=this.readInt64(this.offset),e.modified=this.readInt64(this.offset),e.xMin=this.readInt16(this.offset),e.yMin=this.readInt16(this.offset),e.xMax=this.readInt16(this.offset),e.yMax=this.readInt16(this.offset),e.macStyle=this.readUInt16(this.offset),e.lowestReadableSize=this.readUInt16(this.offset),e.fontDirectionHint=this.readInt16(this.offset),e.indexToLocalFormat=this.readInt16(this.offset),e.glyphDataFormat=this.readInt16(this.offset),e},t.prototype.readHorizontalHeaderTable=function(){var t=this.getTable("hhea");this.offset=t.offset;var e=new u.a;return e.version=this.readFixed(this.offset),e.ascender=this.readInt16(this.offset),e.descender=this.readInt16(this.offset),e.lineGap=this.readInt16(this.offset),e.advanceWidthMax=this.readUInt16(this.offset),e.minLeftSideBearing=this.readInt16(this.offset),e.minRightSideBearing=this.readInt16(this.offset),e.xMaxExtent=this.readInt16(this.offset),e.caretSlopeRise=this.readInt16(this.offset),e.caretSlopeRun=this.readInt16(this.offset),this.offset+=10,e.metricDataFormat=this.readInt16(this.offset),e.numberOfHMetrics=this.readUInt16(this.offset),e},t.prototype.readOS2Table=function(){var t=this.getTable("OS/2");this.offset=t.offset;var e=new l.a;return e.version=this.readUInt16(this.offset),e.xAvgCharWidth=this.readInt16(this.offset),e.usWeightClass=this.readUInt16(this.offset),e.usWidthClass=this.readUInt16(this.offset),e.fsType=this.readInt16(this.offset),e.ySubscriptXSize=this.readInt16(this.offset),e.ySubscriptYSize=this.readInt16(this.offset),e.ySubscriptXOffset=this.readInt16(this.offset),e.ySubscriptYOffset=this.readInt16(this.offset),e.ySuperscriptXSize=this.readInt16(this.offset),e.ySuperscriptYSize=this.readInt16(this.offset),e.ySuperscriptXOffset=this.readInt16(this.offset),e.ySuperscriptYOffset=this.readInt16(this.offset),e.yStrikeoutSize=this.readInt16(this.offset),e.yStrikeoutPosition=this.readInt16(this.offset),e.sFamilyClass=this.readInt16(this.offset),e.panose=this.readBytes(10),e.ulUnicodeRange1=this.readUInt32(this.offset),e.ulUnicodeRange2=this.readUInt32(this.offset),e.ulUnicodeRange3=this.readUInt32(this.offset),e.ulUnicodeRange4=this.readUInt32(this.offset),e.vendorIdentifier=this.readBytes(4),e.fsSelection=this.readUInt16(this.offset),e.usFirstCharIndex=this.readUInt16(this.offset),e.usLastCharIndex=this.readUInt16(this.offset),e.sTypoAscender=this.readInt16(this.offset),e.sTypoDescender=this.readInt16(this.offset),e.sTypoLineGap=this.readInt16(this.offset),e.usWinAscent=this.readUInt16(this.offset),e.usWinDescent=this.readUInt16(this.offset),e.ulCodePageRange1=this.readUInt32(this.offset),e.ulCodePageRange2=this.readUInt32(this.offset),e.version>1?(e.sxHeight=this.readInt16(this.offset),e.sCapHeight=this.readInt16(this.offset),e.usDefaultChar=this.readUInt16(this.offset),e.usBreakChar=this.readUInt16(this.offset),e.usMaxContext=this.readUInt16(this.offset)):(e.sxHeight=0,e.sCapHeight=0,e.usDefaultChar=0,e.usBreakChar=0,e.usMaxContext=0),e},t.prototype.readPostTable=function(){var t=this.getTable("post");this.offset=t.offset;var e=new c.a;return e.formatType=this.readFixed(this.offset),e.italicAngle=this.readFixed(this.offset),e.underlinePosition=this.readInt16(this.offset),e.underlineThickness=this.readInt16(this.offset),e.isFixedPitch=this.readUInt32(this.offset),e.minType42=this.readUInt32(this.offset),e.maxType42=this.readUInt32(this.offset),e.minType1=this.readUInt32(this.offset),e.maxType1=this.readUInt32(this.offset),e},t.prototype.readWidthTable=function(t,e){var i=this.getTable("hmtx");this.offset=i.offset;for(var r=[],n=0;n<t;n++){var o=new d.a;o.advanceWidth=this.readUInt16(this.offset),o.lsb=this.readInt16(this.offset);var s=1e3*o.advanceWidth/e;r.push(Math.floor(s))}return r},t.prototype.readCmapTable=function(){var t=this.getTable("cmap");this.offset=t.offset;var e=new p.a;e.version=this.readUInt16(this.offset),e.tablesCount=this.readUInt16(this.offset);for(var i=this.offset,r=[],n=0;n<e.tablesCount;n++){this.offset=i;var o=new f.a;o.platformID=this.readUInt16(this.offset),o.encodingID=this.readUInt16(this.offset),o.offset=this.readUInt32(this.offset),i=this.offset,this.readCmapSubTable(o),r[n]=o}return r},t.prototype.readCmapSubTable=function(t){var e=this.getTable("cmap");this.offset=e.offset+t.offset;var i=this.readUInt16(this.offset),r=this.getCmapEncoding(t.platformID,t.encodingID);r===C.h.Macintosh?C.i.Macintosh:C.i.Microsoft;if(r!==C.h.Unknown)switch(i){case C.g.Apple:this.readAppleCmapTable(t,r);break;case C.g.Microsoft:this.readMicrosoftCmapTable(t,r);break;case C.g.Trimmed:this.readTrimmedCmapTable(t,r)}},t.prototype.readAppleCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=new y.a;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),null!==this.maxMacIndex&&void 0!==this.maxMacIndex||(this.maxMacIndex=0);for(var n=0;n<256;++n){var o=new g.a;o.index=this.readByte(this.offset),o.width=this.getWidth(o.index),o.charCode=n,this.macintosh.setValue(n,o),this.addGlyph(o,e),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},t.prototype.readMicrosoftCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=e===C.h.Unicode?this.microsoft:this.macintosh,n=new b.a;n.format=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.version=this.readUInt16(this.offset),n.segCountX2=this.readUInt16(this.offset),n.searchRange=this.readUInt16(this.offset),n.entrySelector=this.readUInt16(this.offset),n.rangeShift=this.readUInt16(this.offset);var o=n.segCountX2/2;n.endCount=this.readUshortArray(o),n.reservedPad=this.readUInt16(this.offset),n.startCount=this.readUshortArray(o),n.idDelta=this.readUshortArray(o),n.idRangeOffset=this.readUshortArray(o);var s=n.length/2-8-4*o;n.glyphID=this.readUshortArray(s);for(var a=0,h=0,u=0;u<o;u++)for(var l=n.startCount[u];l<=n.endCount[u]&&65535!==l;l++){if(0===n.idRangeOffset[u])a=l+n.idDelta[u]&65535;else{if((h=u+n.idRangeOffset[u]/2-o+l-n.startCount[u])>=n.glyphID.length)continue;a=n.glyphID[h]+n.idDelta[u]&65535}var c=new g.a;c.index=a,c.width=this.getWidth(c.index);var d=e===C.h.Symbol&&61440==(65280&l)?255&l:l;c.charCode=d,r.setValue(d,c),this.addGlyph(c,e)}},t.prototype.readTrimmedCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=new w.a;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),r.firstCode=this.readUInt16(this.offset),r.entryCount=this.readUInt16(this.offset);for(var n=0;n<r.entryCount;++n){var o=new g.a;o.index=this.readUInt16(this.offset),o.width=this.getWidth(o.index),o.charCode=n+r.firstCode,this.macintosh.setValue(n,o),this.addGlyph(o,e),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},t.prototype.initializeFontName=function(t){for(var e=0;e<t.recordsCount;e++){var i=t.nameRecords[e];if(1===i.nameID?this.metrics.fontFamily=i.name:6===i.nameID&&(this.metrics.postScriptName=i.name),null!==this.metrics.fontFamily&&void 0!==this.metrics.fontFamily&&null!==this.metrics.postScriptName&&void 0!==this.metrics.postScriptName)break}},t.prototype.getTable=function(t){var e,i=new r.a;return this.tableDirectory.containsKey(t)&&(e=this.tableDirectory.getValue(t)),null!==e&&void 0!==e&&(i=e),i},t.prototype.getWidth=function(t){return t=t<this.width.length?t:this.width.length-1,this.width[t]},t.prototype.getCmapEncoding=function(t,e){var i=C.h.Unknown;return t==C.i.Microsoft&&e==C.j.Undefined?i=C.h.Symbol:t==C.i.Microsoft&&e==C.j.Unicode?i=C.h.Unicode:t==C.i.Macintosh&&e==C.k.Roman&&(i=C.h.Macintosh),i},t.prototype.addGlyph=function(t,e){var i=null;switch(e){case C.h.Unicode:i=this.microsoftGlyphs;break;case C.h.Macintosh:case C.h.Symbol:i=this.macintoshGlyphs}i.setValue(t.index,t)},t.prototype.initializeMetrics=function(t,e,i,r,n,o){this.initializeFontName(t);for(var s=!1,a=0;a<o.length;a++){var h=o[a];if(this.getCmapEncoding(h.platformID,h.encodingID)===C.h.Symbol){s=!0;break}}this.metrics.isSymbol=s,this.metrics.macStyle=e.macStyle,this.metrics.isFixedPitch=0!==n.isFixedPitch,this.metrics.italicAngle=n.italicAngle;var u=1e3/e.unitsPerEm;this.metrics.winAscent=r.sTypoAscender*u,this.metrics.macAscent=i.ascender*u,this.metrics.capHeight=0!==r.sCapHeight?r.sCapHeight:.7*e.unitsPerEm*u,this.metrics.winDescent=r.sTypoDescender*u,this.metrics.macDescent=i.descender*u,this.metrics.leading=(r.sTypoAscender-r.sTypoDescender+r.sTypoLineGap)*u,this.metrics.lineGap=Math.ceil(i.lineGap*u);var l=e.xMin*u,c=Math.ceil(this.metrics.macAscent+this.metrics.lineGap),d=e.xMax*u,f=this.metrics.macDescent;this.metrics.fontBox=new S.d(l,c,d,f),this.metrics.stemV=80,this.metrics.widthTable=this.updateWidth(),this.metrics.contains=this.tableDirectory.containsKey("CFF"),this.metrics.subScriptSizeFactor=e.unitsPerEm/r.ySubscriptYSize,this.metrics.superscriptSizeFactor=e.unitsPerEm/r.ySuperscriptYSize},t.prototype.updateWidth=function(){var t=[];if(this.metrics.isSymbol)for(var e=0;e<256;e++){var i=this.getGlyph(String.fromCharCode(e));t[e]=i.empty?0:i.width}else for(var r=[],n=String.fromCharCode(32),e=0;e<256;e++){r[0]=e;var o=this.getString(r,0,r.length),s=o.length>0?o[0]:"?",i=this.getGlyph(s);i.empty?(i=this.getGlyph(n),t[e]=i.empty?0:i.width):t[e]=i.width}return t},t.prototype.getDefaultGlyph=function(){return this.getGlyph(P.a.whiteSpace)},t.prototype.getString=function(t,e,i){for(var r="",n=0;n<i;n++)r+=String.fromCharCode(t[n+e]);return r},t.prototype.readLocaTable=function(t){var e=this.getTable("loca");this.offset=e.offset;var i=new m.a,r=null;if(t){var n=e.length/2;r=[];for(var o=0;o<n;o++)r[o]=2*this.readUInt16(this.offset)}else{var n=e.length/4;r=[];for(var o=0;o<n;o++)r[o]=this.readUInt32(this.offset)}return i.offsets=r,i},t.prototype.updateGlyphChars=function(t,e){t.containsKey(0)||t.setValue(0,0);for(var i=new n.a,r=t.keys(),o=0;o<r.length;o++)i.setValue(r[o],t.getValue(r[o]));for(var o=0;o<r.length;o++){var s=r[o];this.processCompositeGlyph(t,s,e)}},t.prototype.processCompositeGlyph=function(t,e,i){if(e<i.offsets.length-1){var r=i.offsets[e];if(r!==i.offsets[e+1]){var n=this.getTable("glyf");this.offset=n.offset+r;var o=new v.a;if(o.numberOfContours=this.readInt16(this.offset),o.xMin=this.readInt16(this.offset),o.yMin=this.readInt16(this.offset),o.xMax=this.readInt16(this.offset),o.yMax=this.readInt16(this.offset),o.numberOfContours<0)for(var s=0;;){var a=this.readUInt16(this.offset),h=this.readUInt16(this.offset);if(t.containsKey(h)||t.setValue(h,0),0==(a&C.m.MoreComponents))break;s=0!=(a&C.m.Arg1And2AreWords)?4:2,0!=(a&C.m.WeHaveScale)?s+=2:0!=(a&C.m.WeHaveAnXyScale)?s+=4:0!=(a&C.m.WeHaveTwoByTwo)&&(s+=8),this.offset+=s}}}},t.prototype.generateGlyphTable=function(t,e,i,r){i=[];var n=t.keys();n.sort(function(t,e){return t-e});for(var o=0,s=0;s<n.length;s++){var a=n[s];e.offsets.length>0&&(o+=e.offsets[a+1]-e.offsets[a])}var h=this.align(o);r=[];for(var s=0;s<h;s++)r.push(0);for(var u=0,l=0,c=this.getTable("glyf"),s=0;s<e.offsets.length;s++)if(i.push(u),l<n.length&&n[l]===s){++l,i[s]=u;var d=e.offsets[s],f=e.offsets[s+1]-d;if(f>0){this.offset=c.offset+d;var p=this.read(r,u,f);r=p.buffer,u+=f}}return{glyphTableSize:o,newLocaTable:i,newGlyphTable:r}},t.prototype.updateLocaTable=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : newLocaTable");for(var r=e?2*t.length:4*t.length,n=this.align(r),o=new B.a(n),s=0;s<t.length;s++){var a=t[s];e?(a/=2,o.writeShort(a)):o.writeInt(a)}return{newLocaUpdated:o.data,newLocaSize:r}},t.prototype.align=function(t){return t+3&-4},t.prototype.getFontProgram=function(t,e,i,r){if(null===t)throw new Error("Argument Null Exception : newLocaTableOut");if(null===e)throw new Error("Argument Null Exception : newGlyphTable");var n=(this.tableNames,this.getFontProgramLength(t,e,0)),o=n.fontProgramLength,s=n.numTables,a=new B.a(o);a.writeInt(65536),a.writeShort(s);var h=this.entrySelectors[s];return a.writeShort(16*(1<<(31&h))),a.writeShort(h),a.writeShort(16*(s-(1<<(31&h)))),this.writeCheckSums(a,s,t,e,i,r),this.writeGlyphs(a,t,e),a.data},t.prototype.getFontProgramLength=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : newLocaTableOut");if(null===e)throw new Error("Argument Null Exception : newGlyphTable");i=2;for(var r=this.tableNames,n=0,o=0;o<r.length;o++){var s=r[o];if("glyf"!==s&&"loca"!==s){var a=this.getTable(s);a.empty||(++i,n+=this.align(a.length))}}return n+=t.length,n+=e.length,n+=16*i+12,{fontProgramLength:n,numTables:i}},t.prototype.writeCheckSums=function(t,e,i,r,n,o){if(null===t)throw new Error("Argument Null Exception : writer");if(null===i)throw new Error("Argument Null Exception : newLocaTableOut");if(null===r)throw new Error("Argument Null Exception : newGlyphTable");for(var s=this.tableNames,a=16*e+12,h=0,u=0;u<s.length;u++){var l=s[u],c=this.getTable(l);if(!c.empty){if(t.writeString(l),"glyf"===l){var d=this.calculateCheckSum(r);t.writeInt(d),h=n}else if("loca"===l){var d=this.calculateCheckSum(i);t.writeInt(d),h=o}else t.writeInt(c.checksum),h=c.length;t.writeUInt(a),t.writeUInt(h),a+=this.align(h)}}},t.prototype.calculateCheckSum=function(t){if(null===t)throw new Error("Argument Null Exception : bytes");for(var e=0,i=0,r=0,n=0,o=0,s=0;s<(t.length+1)/4;s++)o+=255&t[e++],n+=255&t[e++],r+=255&t[e++],i+=255&t[e++];var a=i;return a+=r<<8,a+=n<<16,a+=o<<24},t.prototype.writeGlyphs=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : writer");if(null===e)throw new Error("Argument Null Exception : newLocaTableOut");if(null===i)throw new Error("Argument Null Exception : newGlyphTable");for(var r=this.tableNames,n=0;n<r.length;n++){var o=r[n],s=this.getTable(o);if(!s.empty)if("glyf"===o)t.writeBytes(i);else if("loca"===o)t.writeBytes(e);else{for(var a=this.align(s.length),h=[],u=0;u<a;u++)h.push(0);this.offset=s.offset;var l=this.read(h,0,s.length);t.writeBytes(l.buffer)}}},t.prototype.setOffset=function(t){this.offset=t},t.prototype.createInternals=function(){this.metrics=new h.a;var t=this.readNameTable(),e=this.readHeadTable();this.bIsLocaShort=0===e.indexToLocalFormat;var i=this.readHorizontalHeaderTable(),r=this.readOS2Table(),n=this.readPostTable();this.width=this.readWidthTable(i.numberOfHMetrics,e.unitsPerEm);var o=this.readCmapTable();this.initializeMetrics(t,e,i,r,n,o)},t.prototype.getGlyph=function(t){if("number"==typeof t){var e=null;this.metrics.isSymbol||null==this.microsoftGlyphs?this.metrics.isSymbol&&null!=this.macintoshGlyphs&&this.macintoshGlyphs.containsKey(t)&&(e=this.macintoshGlyphs.getValue(t)):this.microsoftGlyphs.containsKey(t)&&(e=this.microsoftGlyphs.getValue(t));var i=null!=e?e:this.getDefaultGlyph();return i}var r=null,n=t.charCodeAt(0);this.metrics.isSymbol||null===this.microsoft?(this.metrics.isSymbol&&null!==this.macintosh||this.isMacTTF)&&(0!==this.maxMacIndex?n%=this.maxMacIndex+1:n=61440==(65280&n)?255&n:n,this.macintosh.containsKey(n)&&(r=this.macintosh.getValue(n),this.isFontPresent=!0)):this.microsoft.containsKey(n)?(r=this.microsoft.getValue(n),n!==P.a.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!0)):n!==P.a.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!1),t===P.a.whiteSpace&&null===r&&(r=new g.a);var i=null!==r?r:this.getDefaultGlyph();return i},t.prototype.getGlyphChars=function(t){if(null===t||void 0===t)throw new Error("Argument Null Exception : chars");for(var e=new n.a,i=t.keys(),r=0;r<i.length;r++){var o=i[r],s=this.getGlyph(o);s.empty||e.setValue(s.index,o.charCodeAt(0))}return e},t.prototype.getAllGlyphs=function(){for(var t=[],e=new g.a,i=0,r=0;r<this.width.length;r++){var n=this.width[r];e.index=i,e.width=n,t.push(e),i++}return t},t.prototype.readFontProgram=function(t){var e=this.getGlyphChars(t),i=this.readLocaTable(this.bIsLocaShort);e.size()<t.size()&&(this.missedGlyphs=t.size()-e.size()),this.updateGlyphChars(e,i);var r=this.generateGlyphTable(e,i,null,null),n=r.glyphTableSize,o=r.newLocaTable,s=r.newGlyphTable,a=this.updateLocaTable(o,this.bIsLocaShort,null),h=a.newLocaSize,u=a.newLocaUpdated;return this.getFontProgram(u,s,n,h)},t.prototype.convertString=function(t){if(null===t)throw new Error("Argument Null Exception : text");for(var e="",i=0,r=0;r<t.length;r++){var n=t[r],o=this.getGlyph(n);o.empty||(e+=String.fromCharCode(o.index),i++)}return e},t.prototype.getCharWidth=function(t){var e=this.getGlyph(t);return e=e.empty?this.getDefaultGlyph():e,e.empty?0:e.width},t.prototype.readString=function(t,e){if(void 0===e)return this.readString(t,!1);var i="";if(e)for(var r=0;r<t;r++)r%2!=0&&(i+=String.fromCharCode(this.fontData[this.offset])),this.offset+=1;else for(var r=0;r<t;r++)i+=String.fromCharCode(this.fontData[this.offset]),this.offset+=1;return i},t.prototype.readFixed=function(t){return this.readInt16(t)+this.readInt16(t+2)/16384},t.prototype.readInt32=function(t){var e=this.fontData[t+3],i=this.fontData[t+2],r=this.fontData[t+1],n=this.fontData[t];return this.offset+=4,e+(i<<8)+(r<<16)+(n<<24)},t.prototype.readUInt32=function(t){var e=this.fontData[t+3],i=this.fontData[t+2],r=this.fontData[t+1],n=this.fontData[t];return this.offset+=4,e|i<<8|r<<16|n<<24},t.prototype.readInt16=function(t){var e=(this.fontData[t]<<8)+this.fontData[t+1];return e=32768&e?e-65536:e,this.offset+=2,e},t.prototype.readInt64=function(t){var e=this.readInt32(t+4),i=4294967296*this.readInt32(t)+e;return e<0&&(i+=4294967296),i},t.prototype.readUInt16=function(t){var e=this.fontData[t]<<8|this.fontData[t+1];return this.offset+=2,e},t.prototype.readUshortArray=function(t){for(var e=[],i=0;i<t;i++)e[i]=this.readUInt16(this.offset);return e},t.prototype.readBytes=function(t){for(var e=[],i=0;i<t;i++)e.push(this.fontData[this.offset]),this.offset+=1;return e},t.prototype.readByte=function(t){var e=this.fontData[t];return this.offset+=1,e},t.prototype.read=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : buffer");var r=0,n=0;do{for(var o=0;o<i-r&&this.offset+o<this.fontData.length;o++)t[e+o]=this.fontData[this.offset+o];n=i-r,this.offset+=n,r+=n}while(r<i);return{buffer:t,written:r}},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return Object.defineProperty(t.prototype,"empty",{get:function(){return this.offset===this.length&&this.length===this.checksum&&0===this.checksum},enumerable:!0,configurable:!0}),t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,i){"use strict";var r=i(38);i.d(e,"a",function(){return r.a});i(48),i(39),i(29)},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.updateProportionsHelper(t)}return t.prototype.convertUnits=function(t,e,i){return this.convertFromPixels(this.convertToPixels(t,e),i)},t.prototype.convertToPixels=function(t,e){var i=e;return t*this.proportions[i]},t.prototype.convertFromPixels=function(t,e){var i=e;return t/this.proportions[i]},t.prototype.updateProportionsHelper=function(t){this.proportions=[t/2.54,t/6,1,t/72,t,t/300,t/25.4]},t.horizontalResolution=96,t.verticalResolution=96,t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var r=function(){function t(t){this.int32Size=4,this.int16Size=2,this.int64Size=8,this.bufferLength=t,this.buffer=[]}return Object.defineProperty(t.prototype,"data",{get:function(){if(this.buffer.length<this.bufferLength)for(var t=this.bufferLength-this.buffer.length,e=0;e<t;e++)this.buffer.push(0);return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return void 0!==this.internalPosition&&null!==this.internalPosition||(this.internalPosition=0),this.internalPosition},enumerable:!0,configurable:!0}),t.prototype.writeShort=function(t){var e=[(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeInt=function(t){var e=(4278190080&t)>>24;e=e<0?256+e:e;var i=(16711680&t)>>16;i=i<0?256+i:i;var r=(65280&t)>>8;r=r<0?256+r:r;var n=255&t;n=n<0?256+n:n;var o=[(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t];this.flush(o)},t.prototype.writeUInt=function(t){var e=[(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeString=function(t){if(null==t)throw new Error("Argument Null Exception : value");for(var e=[],i=0;i<t.length;i++)e.push(t.charCodeAt(i));this.flush(e)},t.prototype.writeBytes=function(t){this.flush(t)},t.prototype.flush=function(t){if(null===t)throw new Error("Argument Null Exception : buff");for(var e=this.position,i=0;i<t.length;i++)this.buffer[e]=t[i],e++;this.internalPosition+=t.length},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(61);i.d(e,"PdfAction",function(){return r.a});var n=i(62);i.d(e,"PdfUriAction",function(){return n.a});var o=i(63);i.d(e,"PdfActionLinkAnnotation",function(){return o.a});var s=i(65);i.d(e,"PdfAnnotation",function(){return s.a});var a=i(64);i.d(e,"PdfAnnotationCollection",function(){return a.a});var h=i(103);i.d(e,"PdfDocumentLinkAnnotation",function(){return h.a});var u=i(42);i.d(e,"PdfLinkAnnotation",function(){return u.a});var l=i(43);i.d(e,"PdfTextWebLink",function(){return l.a});var c=i(66);i.d(e,"PdfUriAnnotation",function(){return c.a});var d=i(10);i.d(e,"Dictionary",function(){return d.a});var f=i(67);i.d(e,"defaultToString",function(){return f.a});var p=i(44);i.d(e,"PdfCatalog",function(){return p.a});var g=i(20);i.d(e,"PdfDocument",function(){return g.a});var m=i(68);i.d(e,"PdfDocumentBase",function(){return m.a});var y=i(45);i.d(e,"PdfDocumentTemplate",function(){return y.a});var b=i(69);i.d(e,"PdfViewerPreferences",function(){return b.a}),i.d(e,"PdfPageMode",function(){return b.b}),i.d(e,"PdfPageLayout",function(){return b.c}),i.d(e,"DuplexMode",function(){return b.d}),i.d(e,"PageScalingMode",function(){return b.e});var w=i(106);i.d(e,"PdfPageNumberField",function(){return w.a});var v=i(104);i.d(e,"PdfCompositeField",function(){return v.a});var S=i(105);i.d(e,"PdfPageCountField",function(){return S.a});var P=i(0);i.d(e,"PointF",function(){return P.a}),i.d(e,"SizeF",function(){return P.b}),i.d(e,"RectangleF",function(){return P.c}),i.d(e,"Rectangle",function(){return P.d});var C=i(73);i.d(e,"PdfCacheCollection",function(){return C.a});var B=i(74);i.d(e,"PdfCollection",function(){return B.a});var O=i(107);i.d(e,"PdfDestination",function(){return O.a});var x=i(71);i.d(e,"PdfFunction",function(){return x.a});var L=i(72);i.d(e,"PdfSampledFunction",function(){return L.a});var j=i(70);i.d(e,"PdfDestinationMode",function(){return j.a});var V=i(76);i.d(e,"ProcedureSets",function(){return V.a});var k=i(2);i.d(e,"PdfHorizontalAlignment",function(){return k.a}),i.d(e,"PdfVerticalAlignment",function(){return k.b}),i.d(e,"PdfTextAlignment",function(){return k.c}),i.d(e,"TextRenderingMode",function(){return k.d}),i.d(e,"PdfLineJoin",function(){return k.e}),i.d(e,"PdfLineCap",function(){return k.f}),i.d(e,"PdfDashStyle",function(){return k.g}),i.d(e,"PdfFillMode",function(){return k.h}),i.d(e,"PdfColorSpace",function(){return k.i}),i.d(e,"PdfBlendMode",function(){return k.j}),i.d(e,"PdfGraphicsUnit",function(){return k.k}),i.d(e,"PdfGridImagePosition",function(){return k.l}),i.d(e,"PdfTextDirection",function(){return k.m});var T=i(9);i.d(e,"PdfColor",function(){return T.a});var R=i(24);i.d(e,"PdfGraphics",function(){return R.a}),i.d(e,"GetResourceEventHandler",function(){return R.b}),i.d(e,"PdfGraphicsState",function(){return R.c});var M=i(82);i.d(e,"PdfMargins",function(){return M.a});var N=i(15);i.d(e,"PdfPen",function(){return N.a});var I=i(40);i.d(e,"PdfResources",function(){return I.a}),i.d(e,"Guid",function(){return I.b});var A=i(83);i.d(e,"PdfTransformationMatrix",function(){return A.a}),i.d(e,"Matrix",function(){return A.b});var D=i(11);i.d(e,"PdfBrush",function(){return D.a});var E=i(108);i.d(e,"PdfBrushes",function(){return E.a});var F=i(18);i.d(e,"PdfSolidBrush",function(){return F.a});var G=i(109);i.d(e,"PdfLinearGradientBrush",function(){return G.a});var _=i(110);i.d(e,"PdfRadialGradientBrush",function(){return _.a});var z=i(46);i.d(e,"PdfTilingBrush",function(){return z.a});var W=i(26);i.d(e,"PdfGradientBrush",function(){return W.a});var H=i(34);i.d(e,"PdfColorBlend",function(){return H.a});var U=i(75);i.d(e,"PdfBlend",function(){return U.a});var K=i(27);i.d(e,"PdfTemplate",function(){return K.a});var q=i(35);i.d(e,"PdfLayoutElement",function(){return q.a});var Y=i(112);i.d(e,"PdfPath",function(){return Y.a});var X=i(111);i.d(e,"PdfArc",function(){return X.a});var J=i(78);i.d(e,"PdfTextElement",function(){return J.a});var Z=i(12);i.d(e,"ElementLayouter",function(){return Z.a}),i.d(e,"PdfLayoutFormat",function(){return Z.b}),i.d(e,"PdfLayoutParams",function(){return Z.c}),i.d(e,"PdfLayoutResult",function(){return Z.d});var $=i(77);i.d(e,"TextLayouter",function(){return $.a}),i.d(e,"TextPageLayoutResult",function(){return $.b}),i.d(e,"PdfTextLayoutResult",function(){return $.c});var Q=i(21);i.d(e,"PdfLayoutType",function(){return Q.a}),i.d(e,"PdfLayoutBreakType",function(){return Q.b}),i.d(e,"PathPointType",function(){return Q.c});var tt=i(7);i.d(e,"PdfFontStyle",function(){return tt.a}),i.d(e,"PdfFontFamily",function(){return tt.b}),i.d(e,"PdfFontType",function(){return tt.c}),i.d(e,"PdfWordWrapType",function(){return tt.d}),i.d(e,"PdfSubSuperScript",function(){return tt.e}),i.d(e,"FontEncoding",function(){return tt.f}),i.d(e,"TtfCmapFormat",function(){return tt.g}),i.d(e,"TtfCmapEncoding",function(){return tt.h}),i.d(e,"TtfPlatformID",function(){return tt.i}),i.d(e,"TtfMicrosoftEncodingID",function(){return tt.j}),i.d(e,"TtfMacintoshEncodingID",function(){return tt.k}),i.d(e,"FontDescriptorFlags",function(){return tt.l}),i.d(e,"TtfCompositeGlyphFlags",function(){return tt.m});var et=i(22);i.d(e,"PdfFont",function(){return et.a});var it=i(36);i.d(e,"PdfFontMetrics",function(){return it.a}),i.d(e,"WidthTable",function(){return it.b}),i.d(e,"StandardWidthTable",function(){return it.c});var rt=i(37);i.d(e,"PdfStandardFont",function(){return rt.a});var nt=i(79);i.d(e,"PdfStandardFontMetricsFactory",function(){return nt.a});var ot=i(23);i.d(e,"PdfStringFormat",function(){return ot.a});var st=i(14);i.d(e,"PdfStringLayouter",function(){return st.a}),i.d(e,"PdfStringLayoutResult",function(){return st.b}),i.d(e,"LineInfo",function(){return st.c}),i.d(e,"LineType",function(){return st.d});var at=i(28);i.d(e,"StringTokenizer",function(){return at.a});var ht=i(113);i.d(e,"PdfTrueTypeFont",function(){return ht.a});var ut=i(47);i.d(e,"RtlRenderer",function(){return ut.a});var lt=i(81);i.d(e,"ArabicShapeRenderer",function(){return lt.a}),i.d(e,"ArabicShape",function(){return lt.b});var ct=i(80);i.d(e,"Bidi",function(){return ct.a}),i.d(e,"RtlCharacters",function(){return ct.b});var dt=i(38);i.d(e,"ByteArray",function(){return dt.a});var ft=i(48);i.d(e,"ImageFormat",function(){return ft.a}),i.d(e,"ImageDecoder",function(){return ft.b});var pt=i(39);i.d(e,"PdfBitmap",function(){return pt.a});var gt=i(29);i.d(e,"PdfImage",function(){return gt.a});var mt=i(49);i.d(e,"PdfTransparency",function(){return mt.a});var yt=i(50);i.d(e,"ObjectStatus",function(){return yt.a});var bt=i(84);i.d(e,"ObjectType",function(){return bt.a});var wt=i(51);i.d(e,"PdfCrossTable",function(){return wt.a}),i.d(e,"RegisteredObject",function(){return wt.b});var vt=i(1);i.d(e,"DictionaryProperties",function(){return vt.a});var St=i(85);i.d(e,"PdfMainObjectCollection",function(){return St.a}),i.d(e,"ObjectInfo",function(){return St.b});var Pt=i(16);i.d(e,"Operators",function(){return Pt.a});var Ct=i(86);i.d(e,"PdfStreamWriter",function(){return Ct.a});var Bt=i(87);i.d(e,"PdfWriter",function(){return Bt.a});var Ot=i(19);i.d(e,"PdfPageOrientation",function(){return Ot.a}),i.d(e,"PdfPageRotateAngle",function(){return Ot.b}),i.d(e,"PdfNumberStyle",function(){return Ot.c}),i.d(e,"PdfDockStyle",function(){return Ot.d}),i.d(e,"PdfAlignmentStyle",function(){return Ot.e}),i.d(e,"TemplateType",function(){return Ot.f});var xt=i(88);i.d(e,"PageAddedEventArgs",function(){return xt.a});var Lt=i(89);i.d(e,"PdfDocumentPageCollection",function(){return Lt.a});var jt=i(25);i.d(e,"PdfPage",function(){return jt.a});var Vt=i(52);i.d(e,"PdfPageBase",function(){return Vt.a});var kt=i(54);i.d(e,"PdfPageLayer",function(){return kt.a});var Tt=i(53);i.d(e,"PdfPageLayerCollection",function(){return Tt.a});var Rt=i(90);i.d(e,"PdfPageSettings",function(){return Rt.a});var Mt=i(91);i.d(e,"PdfPageSize",function(){return Mt.a});var Nt=i(114);i.d(e,"PdfPageTemplateElement",function(){return Nt.a});var It=i(94);i.d(e,"PdfSection",function(){return It.a}),i.d(e,"PageSettingsState",function(){return It.b});var At=i(55);i.d(e,"PdfSectionCollection",function(){return At.a});var Dt=i(92);i.d(e,"PdfSectionPageCollection",function(){return Dt.a});var Et=i(93);i.d(e,"PdfSectionTemplate",function(){return Et.a});var Ft=i(6);i.d(e,"PdfArray",function(){return Ft.a});var Gt=i(4);i.d(e,"PdfDictionary",function(){return Gt.a}),i.d(e,"SaveSectionCollectionEventHandler",function(){return Gt.b}),i.d(e,"SaveDescendantFontEventHandler",function(){return Gt.c}),i.d(e,"SaveFontDictionaryEventHandler",function(){return Gt.d}),i.d(e,"SaveAnnotationEventHandler",function(){return Gt.e}),i.d(e,"SaveSectionEventHandler",function(){return Gt.f}),i.d(e,"SaveTemplateEventHandler",function(){return Gt.g});var _t=i(3);i.d(e,"PdfName",function(){return _t.a});var zt=i(5);i.d(e,"PdfNumber",function(){return zt.a});var Wt=i(8);i.d(e,"PdfReference",function(){return Wt.a}),i.d(e,"PdfReferenceHolder",function(){return Wt.b});var Ht=i(13);i.d(e,"PdfStream",function(){return Ht.a}),i.d(e,"SaveCmapEventHandler",function(){return Ht.b}),i.d(e,"SaveFontProgramEventHandler",function(){return Ht.c});var Ut=i(17);i.d(e,"InternalEnum",function(){return Ut.a}),i.d(e,"PdfString",function(){return Ut.b});var Kt=i(31);i.d(e,"PdfGridStyleBase",function(){return Kt.a}),i.d(e,"PdfGridStyle",function(){return Kt.b}),i.d(e,"PdfGridCellStyle",function(){return Kt.c}),i.d(e,"PdfGridRowStyle",function(){return Kt.d}),i.d(e,"PdfHorizontalOverflowType",function(){return Kt.e});var qt=i(30);i.d(e,"PdfBorders",function(){return qt.a}),i.d(e,"PdfPaddings",function(){return qt.b});var Yt=i(58);i.d(e,"PdfBorderOverlapStyle",function(){return Yt.a});var Xt=i(41);i.d(e,"PdfGridLayouter",function(){return Xt.a}),i.d(e,"PdfGridLayoutResult",function(){return Xt.b}),i.d(e,"PdfGridLayoutFormat",function(){return Xt.c}),i.d(e,"GridCellEventArgs",function(){return Xt.d}),i.d(e,"PdfGridBeginCellDrawEventArgs",function(){return Xt.e}),i.d(e,"PdfGridEndCellDrawEventArgs",function(){return Xt.f}),i.d(e,"PdfCancelEventArgs",function(){return Xt.g}),i.d(e,"BeginPageLayoutEventArgs",function(){return Xt.h}),i.d(e,"EndPageLayoutEventArgs",function(){return Xt.i}),i.d(e,"PdfGridBeginPageLayoutEventArgs",function(){return Xt.j}),i.d(e,"PdfGridEndPageLayoutEventArgs",function(){return Xt.k}),i.d(e,"RowLayoutResult",function(){return Xt.l});var Jt=i(57);i.d(e,"PdfGrid",function(){return Jt.a});var Zt=i(95);i.d(e,"PdfGridColumn",function(){return Zt.a}),i.d(e,"PdfGridColumnCollection",function(){return Zt.b});var $t=i(96);i.d(e,"PdfGridRow",function(){return $t.a}),i.d(e,"PdfGridRowCollection",function(){return $t.b}),i.d(e,"PdfGridHeaderCollection",function(){return $t.c});var Qt=i(56);i.d(e,"PdfGridCell",function(){return Qt.a}),i.d(e,"PdfGridCellCollection",function(){return Qt.b})},function(e,i){e.exports=t},function(t,i){t.exports=e}])});
|