/*!@license
* Infragistics.Web.ClientUI infragistics.barcode_core.js 21.2.20212.99
*
* Copyright (c) 2011-2022 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends:
*     jquery-1.4.4.js
*     jquery.ui.core.js
*     jquery.ui.widget.js
*     infragistics.util.js
*     infragistics.ext_core.js
*     infragistics.ext_collections.js
*     infragistics.ext_collectionsExtended.js
*     infragistics.ext_text.js
*     infragistics.dv_core.js
*     infragistics.encoding.core.js
*     infragistics.ext_ui.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core","./infragistics.ext_collections","./infragistics.ext_collectionsExtended","./infragistics.ext_text","./infragistics.dv_core","./infragistics.dv_visualdata","./infragistics.encoding_big5","./infragistics.encoding_cp437","./infragistics.encoding.core","./infragistics.encoding_gb2312","./infragistics.encoding_iso646-us","./infragistics.encoding_iso-8859-1","./infragistics.encoding_iso-8859-11","./infragistics.encoding_iso-8859-13","./infragistics.encoding_iso-8859-15","./infragistics.encoding_iso-8859-2","./infragistics.encoding_iso-8859-3","./infragistics.encoding_iso-8859-4","./infragistics.encoding_iso-8859-5","./infragistics.encoding_iso-8859-6","./infragistics.encoding_iso-8859-7","./infragistics.encoding_iso-8859-8","./infragistics.encoding_iso-8859-9","./infragistics.encoding_ksc5601","./infragistics.encoding_shift_jis","./infragistics.encoding_windows-1250","./infragistics.encoding_windows-1251","./infragistics.encoding_windows-1252","./infragistics.encoding_windows-1256","./infragistics.ext_ui"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$bo=$$t;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["BarcodeGridLength:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","IConvertible:g","IFormatProvider:h","Number:i","String:j","IComparable:k","Number:l","IComparable$1:m","IEquatable$1:n","Number:o","Number:p","Number:q","NumberStyles:r","Enum:s","Array:t","IList:u","ICollection:v","IEnumerable:w","IEnumerator:x","Error:y","Error:z","Number:aa","String:ab","StringComparison:ac","RegExp:ad","CultureInfo:ae","DateTimeFormat:af","Calendar:ag","Date:ah","Number:ai","DayOfWeek:aj","DateTimeKind:ak","CalendarWeekRule:al","NumberFormatInfo:am","CompareInfo:an","CompareOptions:ao","IEnumerable$1:ap","IEnumerator$1:aq","IDisposable:ar","StringSplitOptions:as","Number:at","Number:au","Number:av","Number:aw","Number:ax","Number:ay","Assembly:az","Stream:a0","SeekOrigin:a1","RuntimeTypeHandle:a2","MethodInfo:a3","MethodBase:a4","MemberInfo:a5","ParameterInfo:a6","TypeCode:a7","ConstructorInfo:a8","PropertyInfo:a9","BarcodeGridUnitType:ba","BarcodeColumnDefinition:bb","BarcodeRowDefinition:bc","EncodingService:bd","Dictionary$2:be","IDictionary$2:bf","ICollection$1:bg","KeyValuePair$2:bh","IDictionary:bi","Script:bj","IEqualityComparer$1:bk","EqualityComparer$1:bl","IEqualityComparer:bm","DefaultEqualityComparer$1:bn","InvalidOperationException:bo","NotImplementedException:bp","ArgumentException:bq","Thread:br","ThreadStart:bs","MulticastDelegate:bt","IntPtr:bu","Encoding:bv","UTF8Encoding:bw","Decoder:bx","UnicodeEncoding:by","Math:bz","AsciiEncoding:b0","ArgumentNullException:b1","DefaultDecoder:b2","IEncoding:b3","Windows1250Encoding:b4","SingleByteEncoding:b5","StringBuilder:b6","Environment:b7","RuntimeHelpers:b8","RuntimeFieldHandle:b9","Windows1251Encoding:ca","Windows1252Encoding:cb","Windows1256Encoding:cc","UsAsciiEncoding:cd","Big5Encoding:ce","DoubleByteEncoding:cf","Big5EncodingExtended:cg","Big5EncodingExtended2:ch","Windows936Encoding:ci","Windows936EncodingExtended:cj","Windows936EncodingExtended2:ck","Windows936EncodingExtended3:cl","Ksc5601Encoding:cm","Ksc5601EncodingExtended:cn","Ksc5601EncodingExtended2:co","Ksc5601EncodingExtended3:cp","Iso8859Dash1:cq","Iso8859Dash2:cr","Iso8859Dash3:cs","Iso8859Dash4:ct","Iso8859Dash5:cu","Iso8859Dash6:cv","Iso8859Dash7:cw","Iso8859Dash8:cx","Iso8859Dash9:cy","Iso8859Dash11:cz","Iso8859Dash13:c0","Iso8859Dash15:c1","Windows932Encoding:c2","Windows932EncodingExtended:c3","CodePage437Encoding:c4","List$1:c5","IList$1:c6","IArray:c7","IArrayList:c8","Array:c9","CompareCallback:da","Func$3:db","Action$1:dc","Comparer$1:dd","IComparer:de","IComparer$1:df","DefaultComparer$1:dg","Comparison$1:dh","ReadOnlyCollection$1:di","Predicate$1:dj","XamBarcodeView:dk","XamBarcode:dl","Control:dm","FrameworkElement:dn","UIElement:dp","DependencyObject:dq","Dictionary:dr","DependencyProperty:ds","PropertyMetadata:dt","PropertyChangedCallback:du","DependencyPropertyChangedEventArgs:dv","DependencyPropertiesCollection:dw","UnsetValue:dx","Binding:dy","PropertyPath:dz","Transform:d0","Visibility:d1","Style:d2","Thickness:d3","HorizontalAlignment:d4","VerticalAlignment:d5","Rect:d6","Size:d7","Point:d8","Brush:d9","Color:ea","CssGradientUtil:eb","GradientStop:ec","LinearGradientBrush:ed","Stretch:ee","SR:ef","DomRenderer:eg","DomWrapper:eh","DomWrapperPosition:ei","Action:ej","INormalizedEvent:ek","Callback:el","CanvasContext2D:em","CanvasContext:en","TextMetrics:eo","ImageData:ep","CanvasElement:eq","Element:er","Node:es","ElementAttributeCollection:et","ElementCollection:eu","WebStyle:ev","ElementNodeType:ew","document:ex","EventListener$1:ey","Event:ez","DOMTokenList:e0","EventListener:e1","IElementEventHandler:e2","ElementEventHandler:e3","ElementAttribute:e4","Gradient:e5","DomPortal:e6","DeviceUtils:e7","EventHandler$1:e8","DataChangedEventArgs:e9","EventArgs:fa","TextBlock:fb","ErrorMessageDisplayingEventArgs:fc","BarcodeVisualData:fd","RectData:fe","IVisualData:ff","Delegate:fg","Interlocked:fh","FontInfo:fi","FontUtil:fj","RenderingContext:fk","IRenderer:fl","Rectangle:fm","Shape:fn","DoubleCollection:fo","PenLineJoin:fp","Path:fq","Geometry:fr","GeometryType:fs","PathMarkupParser:ft","PathMarkupToken:fu","PathMarkupTokenType:fv","PathGeometry:fw","PathFigureCollection:fx","PathFigure:fy","PathSegmentCollection:fz","PathSegment:f0","PathSegmentType:f1","LineSegment:f2","BezierSegment:f3","ArcSegment:f4","SweepDirection:f5","Polygon:f6","PointCollection:f7","Polyline:f8","DataTemplateRenderInfo:f9","DataTemplatePassInfo:ga","ContentControl:gb","DataTemplate:gc","DataTemplateRenderHandler:gd","DataTemplateMeasureHandler:ge","DataTemplateMeasureInfo:gf","DataTemplatePassHandler:gg","Line:gh","BrushUtil:gi","ColorUtil:gj","Random:gk","InterpolationMode:gl","MathUtil:gm","Tuple$2:gn","BrushCollection:go","ObservableCollection$1:gp","INotifyCollectionChanged:gq","NotifyCollectionChangedEventHandler:gr","NotifyCollectionChangedEventArgs:gs","NotifyCollectionChangedAction:gt","INotifyPropertyChanged:gu","PropertyChangedEventHandler:gv","PropertyChangedEventArgs:gw","window:gx","CanvasViewRenderer:gy","GeometryGroup:gz","GeometryCollection:g0","FillRule:g1","LineGeometry:g2","RectangleGeometry:g3","EllipseGeometry:g4","PolyLineSegment:g5","PolyBezierSegment:g6","CoreGeometryUtil:g7","TransformGroup:g8","TransformCollection:g9","TranslateTransform:ha","RotateTransform:hb","ScaleTransform:hc","BarcodeAlgorithm:hd","BarcodeEncodedAlgorithm:he","Gs1Helper:hf","Gf256:hg","GfArithmetics:hh","ReedSolomon:hi","MeasureHelper:hj","BarcodeGrid:hk","Panel:hl","UIElementCollection:hm","Module:hn","XamGridBarcode:ho","XamGridBarcodeView:hp","BarsFillMode:hq","GridBarcodeVisualData:hr","PrimitiveVisualData:hs","PrimitiveAppearanceData:ht","ColorData:hu","BrushAppearanceData:hv","ShapeTags:hw","PointData:hx","GetPointsSettings:hy","PathVisualData:hz","GeometryData:h0","AppearanceHelper:h1","LinearGradientBrushAppearanceData:h2","GradientStopAppearanceData:h3","SolidBrushAppearanceData:h4","EllipseGeometryData:h5","RectangleGeometryData:h6","LineGeometryData:h7","PathGeometryData:h8","PathFigureData:h9","SegmentData:ia","LineSegmentData:ib","PolylineSegmentData:ic","ArcSegmentData:id","PolyBezierSegmentData:ie","BezierSegmentData:ig","LabelAppearanceData:ih","Collection$1:ii","Canvas:ij","Enumerable:ik","Func$2:il","IOrderedEnumerable$1:im","SortedList$1:io","EanUpcCodeType:ip","Code128CodeType:iq","GS1CodeType:ir","HeaderDisplayMode:is","AbstractEnumerable:it","Func$1:iu","AbstractEnumerator:iv","GenericEnumerable$1:iw","GenericEnumerator$1:ix"]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t,$w=$.ig.util.compare,$x=$.ig.util.replace,$y=$.ig.util.stringFormat,$z=$.ig.util.stringFormat1,$0=$.ig.util.stringFormat2,$1=$.ig.util.stringCompare1,$2=$.ig.util.stringCompare2,$3=$.ig.util.stringCompare3,$4=$.ig.util.compareSimple,$5=$.ig.util.tryParseNumber,$6=$.ig.util.tryParseNumber1,$7=$.ig.util.numberToString,$8=$.ig.util.numberToString1,$9=$.ig.util.parseNumber,$aa=$.ig.util.isDigit,$ab=$.ig.util.isDigit1,$ac=$.ig.util.isLetter,$ad=$.ig.util.isNumber,$ae=$.ig.util.isLetterOrDigit,$af=$.ig.util.isLower,$ag=$.ig.util.toLowerCase,$ah=$.ig.util.toUpperCase,$ai=$.ig.util.equalsSimple,$aj=$.ig.util.tryParseInt32_1,$ak=$.ig.util.tryParseInt32_2,$al=$.ig.util.intToString1,$am=$.ig.util.parseInt32_1,$an=$.ig.util.parseInt32_2;$d("HeaderDisplayMode:is",false,false,{Hide:0,Show:1});$d("GS1CodeType:ir",false,false,{Omnidirectional:0,StackedOmnidirectional:1,Expanded:2,Truncated:3,Stacked:4,Limited:5});$d("Code128CodeType:iq",false,false,{Standard:0,Ucc:1});$d("EanUpcCodeType:ip",false,false,{Ean13:0,Ean8:1,UpcA:2,UpcE:3});$d("BarsFillMode:hq",false,false,{FillSpace:0,EnsureEqualSize:1});$d("BarcodeGridUnitType:ba",false,false,{Auto:0,Pixel:1,Star:2});$c("BarcodeGridLength:a","Object",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$.ig.$op.init.call(this);this.b=b;this.d=1},init1:function(a,b,c){$.ig.$op.init.call(this);this.b=b;this.d=c},d:0,gridUnitType:function(){return this.d},b:0,value:function(){return this.b},isStar:function(){return this.d==2},$type:new $.ig.Type("BarcodeGridLength",$.ig.$ot)},true);$c("BarcodeColumnDefinition:bb","Object",{init:function(){$.ig.$op.init.call(this)},_maxWidth:0,maxWidth:function(a){if(arguments.length===1){this._maxWidth=a;return a}else{return this._maxWidth}},_minWidth:0,minWidth:function(a){if(arguments.length===1){this._minWidth=a;return a}else{return this._minWidth}},_width:null,width:function(a){if(arguments.length===1){this._width=a;return a}else{return this._width}},$type:new $.ig.Type("BarcodeColumnDefinition",$.ig.$ot)},true);$c("BarcodeRowDefinition:bc","Object",{init:function(){$.ig.$op.init.call(this)},_height:null,height:function(a){if(arguments.length===1){this._height=a;return a}else{return this._height}},_maxHeight:0,maxHeight:function(a){if(arguments.length===1){this._maxHeight=a;return a}else{return this._maxHeight}},_minHeight:0,minHeight:function(a){if(arguments.length===1){this._minHeight=a;return a}else{return this._minHeight}},$type:new $.ig.Type("BarcodeRowDefinition",$.ig.$ot)},true);$c("EncodingService:bd","Object",{init:function(){$.ig.$op.init.call(this)},staticInit:function(){$$t.$bd.w=new $$t.be(String,String,0);$$t.$bd.w.item("Cp437","CP437");$$t.$bd.w.item("iso-8859-1","ISO-8859-1");$$t.$bd.w.item("iso-8859-2","ISO-8859-2");$$t.$bd.w.item("iso-8859-3","ISO-8859-3");$$t.$bd.w.item("iso-8859-4","ISO-8859-4");$$t.$bd.w.item("iso-8859-5","ISO-8859-5");$$t.$bd.w.item("iso-8859-6","ISO-8859-6");$$t.$bd.w.item("iso-8859-7","ISO-8859-7");$$t.$bd.w.item("iso-8859-8","ISO-8859-8");$$t.$bd.w.item("iso-8859-9","ISO-8859-9");$$t.$bd.w.item("iso-8859-11","ISO-8859-11");$$t.$bd.w.item("iso-8859-13","ISO-8859-13");$$t.$bd.w.item("iso-8859-15","ISO-8859-15");$$t.$bd.w.item("shift_jis","Shift_JIS");$$t.$bd.w.item("windows-1250","Windows-1250");$$t.$bd.w.item("windows-1251","Windows-1251");$$t.$bd.w.item("windows-1252","Windows-1252");$$t.$bd.w.item("windows-1256","Windows-1256");$$t.$bd.w.item("ISO-10646-UCS-2","ISO-10646-UCS-2");$$t.$bd.w.item("UTF-8","UTF-8");$$t.$bd.w.item("ISO646-US","ISO646-US");$$t.$bd.w.item("Big5","Big5");$$t.$bd.w.item("gb2312","GB2312");$$t.$bd.w.item("KSC5601","KSC5601")},x:function(a){if(a=="UTF-8"){return $$t.$bv.uTF8()}if(a=="ISO-10646-UCS-2"){return $$t.$bv.unicode()}var encoding_=null;switch(a){case"windows-1250":if($$t.$bd.q==null){$$t.$bd.q=new $$t.b4}encoding_=$$t.$bd.q;break;case"windows-1251":if($$t.$bd.r==null){$$t.$bd.r=new $$t.ca}encoding_=$$t.$bd.r;break;case"windows-1252":if($$t.$bd.s==null){$$t.$bd.s=new $$t.cb}encoding_=$$t.$bd.s;break;case"windows-1256":if($$t.$bd.t==null){$$t.$bd.t=new $$t.cc}encoding_=$$t.$bd.t;break;case"ISO646-US":if($$t.$bd.p==null){$$t.$bd.p=new $$t.cd}encoding_=$$t.$bd.p;break;case"Big5":if($$t.$bd.a==null){$$t.$bd.a=new $$t.ce}encoding_=$$t.$bd.a;break;case"gb2312":if($$t.$bd.v==null){$$t.$bd.v=new $$t.ci}encoding_=$$t.$bd.v;break;case"KSC5601":if($$t.$bd.o==null){$$t.$bd.o=new $$t.cm}encoding_=$$t.$bd.o;break;case"iso-8859-1":if($$t.$bd.c==null){$$t.$bd.c=new $$t.cq}encoding_=$$t.$bd.c;break;case"iso-8859-2":if($$t.$bd.g==null){$$t.$bd.g=new $$t.cr}encoding_=$$t.$bd.g;break;case"iso-8859-3":if($$t.$bd.h==null){$$t.$bd.h=new $$t.cs}encoding_=$$t.$bd.h;break;case"iso-8859-4":if($$t.$bd.i==null){$$t.$bd.i=new $$t.ct}encoding_=$$t.$bd.i;break;case"iso-8859-5":if($$t.$bd.j==null){$$t.$bd.j=new $$t.cu}encoding_=$$t.$bd.j;break;case"iso-8859-6":if($$t.$bd.k==null){$$t.$bd.k=new $$t.cv}encoding_=$$t.$bd.k;break;case"iso-8859-7":if($$t.$bd.l==null){$$t.$bd.l=new $$t.cw}encoding_=$$t.$bd.l;break;case"iso-8859-8":if($$t.$bd.m==null){$$t.$bd.m=new $$t.cx}encoding_=$$t.$bd.m;break;case"iso-8859-9":if($$t.$bd.n==null){$$t.$bd.n=new $$t.cy}encoding_=$$t.$bd.n;break;case"iso-8859-11":if($$t.$bd.d==null){$$t.$bd.d=new $$t.cz}encoding_=$$t.$bd.d;break;case"iso-8859-13":if($$t.$bd.e==null){$$t.$bd.e=new $$t.c0}encoding_=$$t.$bd.e;break;case"iso-8859-15":if($$t.$bd.f==null){$$t.$bd.f=new $$t.c1}encoding_=$$t.$bd.f;break;case"shift_jis":if($$t.$bd.u==null){$$t.$bd.u=new $$t.c2}encoding_=$$t.$bd.u;break;case"Cp437":if($$t.$bd.b==null){$$t.$bd.b=new $$t.c4}encoding_=$$t.$bd.b;break}return encoding_},$type:new $.ig.Type("EncodingService",$.ig.$ot)},true);$c("XamBarcodeView:dk","Object",{init:function(a){this.am=new $$t.fb;this.a=["backing","bar","label"];this.g=false;this.h=false;this.d=null;this.ao=new $$t.d9;this.ap=function(){var $ret=new $$t.d9;$ret.fill("black");return $ret}();this.k=NaN;this.u=-1;this.t=-1;$.ig.$op.init.call(this);this._c=a;this.j=new $$t.be(String,$$t.$be.$type.specialize(String,$$t.$d9.$type),0)},_c:null,s:null,am:null,an:function(){return this.am},i:function(){return true},n:function(a){var b=$b($$t.$fb.$type,a);if(b!=null&&b.ak()!=null){return this._f.e(b)+0}return 0},at:function(a){if($.ig.util.isNaN(this.k)){this.k=this.m(null)}var b=this.n(a);var c=this.k;return new $$t.d7(1,b,c)},j:null,a:null,y:function(){this.g=true;var a=["white","black","black"];var b=["transparent",null,null];var c=function(){var $ret=new $$t.c5(Array,0);$ret.add(a);$ret.add(b);return $ret}();this.j.clear();var d=this.a.length;for(var e=0;e<d;e++){var f=this.a[e];var g=$$t.$gi.j("ui-barcode-"+f+"-fill","ui-barcode-"+f,"background-color",this._q,a[e]);var h=$$t.$gi.j("ui-barcode-"+f+"-outline","ui-barcode-"+f,"border-top-color",this._q,b[e]);var i=new $$t.be(String,$$t.$d9.$type,0);i.item("fill",g);i.item("outline",h);this.j.item(this.a[e],i)}this.ak();this.g=false},ak:function(){this.g=true;var a=this.a.length;for(var b=0;b<a;b++){var c=this.a[b];this.aj(c,this.j.item(c))}this.g=false},aj:function(a,b){var c=b.item("fill");var d=b.item("outline");switch(a){case"backing":if(this.aq==null){this._c.backingBrush(c)}if(this.ar==null){this._c.backingOutline(d)}break;case"bar":if(this.as==null){this._c.barBrush(c)}break;case"label":this.ap=c;break}},b:function(a,b){this._q.startCSSQuery();for(var c=0;c<b.length;c++){b[c]=this._q.getCssDefaultPropertyValue(a,b[c])}this._q.endCSSQuery();return b},g:false,ac:function(){},h:false,ag:function(){if(!this.h){this.h=true;if(this._q!=null){this._q.setTimeout(this.v.runOn(this),0)}else{window.setTimeout(this.v.runOn(this),0)}}},v:function(){if(this.h){this.h=false;this._c.bh()}},flush:function(){if(this.h){this.v()}},ae:function(a,b,c){a._n=b;a._o=c},_r:null,_f:null,_q:null,d:null,ao:null,aa:function(a){var b=a;this.l=$.ig.util.isNaN(this._c.pixelScalingRatio())?this._c.ax():this._c.pixelScalingRatio();this._q=b;var c=Math.round(b.rootWrapper().width());var d=Math.round(b.rootWrapper().height());this._q.rootWrapper().setStyleProperty("position","relative");var e=this._q.createElement("canvas");e.setStyleProperty("position","absolute");this._q.append(e);var f=this.l;this.u=$.ig.truncate(Math.round(c*f));this.t=$.ig.truncate(Math.round(c*f));e.setAttribute("width",this.u.toString());e.setAttribute("height",this.t.toString());e.setStyleProperty("width",c.toString()+"px");e.setStyleProperty("height",d.toString()+"px");this._c.cf(new $$t.d6(0,0,0,c,d));this._r=e;var g=this._q.get2DCanvasContext(this._r);this._f=new $$t.fk(new $$t.gy,g);this.y();this.al();this._f.ac(this.d);this.af()},e:function(){return this.d},ah:function(a,b){if(b!=null){a._am=b}else{a._am=this.ap}},ai:function(){this.y();this.al();this.ag()},al:function(){this.d=$$t.$fj.getFont(this._q);if(this._c.font()!=null){this.d=this._c.ak()}this.k=this.m(this.d);this.ao=new $$t.d9;this.ao.__fill=this._q.rootWrapper().getStyleProperty("color");if(this._f!=null){this._f.ac(this.d)}},w:function(){this.af()},ap:null,af:function(){var $self=this;var a=Math.round(this._c.cf().width()*this.l);var b=Math.round(this._c.cf().height()*this.l);if(this.u!=a||this.t!=b){this._r.setAttribute("width",a.toString());this._r.setAttribute("height",b.toString());this.u=$.ig.truncate(a);this.t=$.ig.truncate(b)}if(this._f.d()&&this.l!=1){this._f.z();this._f.aa(this.l,this.l)}this._f.k(this._c.cf().left(),this._c.cf().top(),this._c.cf().width(),this._c.cf().height());var c=new $$t.fq;c._ak=function(){var $ret=new $$t.g3;$ret._e=new $$t.d6(0,$self._c.cf().left(),$self._c.cf().top(),$self._c.cf().width(),$self._c.cf().height());return $ret}();c.__fill=this._c.backingBrush();c.__stroke=this._c.backingOutline();c._ac=this._c.backingStrokeThickness()*2;this._f.s(c);if(this.am.ak()!=null&&this.am.__visibility==0){var d=this.am.ak().split(" ");var e="";var f=this._c.backingStrokeThickness();var g=this._c.backingStrokeThickness();if($.ig.util.isNaN(this.k)){this.k=this.m(null)}var h=this.k*1.2;var i=this._c.cf().width()-2*this._c.backingStrokeThickness();for(var j=0;j<d.length;j++){var k=e+d[j]+" ";var l=this._f.f(k);if(l>i){var m=function(){var $ret=new $$t.fb;$ret.ak(e);$ret._o=f;$ret._n=g;return $ret}();this.ah(m,this._c.fontBrush());this._f.ac(this.d);this._f.w(m);e=d[j]+" ";f+=h}else{e=k}}var n=function(){var $ret=new $$t.fb;$ret.ak(e);$ret._o=f;$ret._n=g;return $ret}();this.ah(n,this._c.fontBrush());this._f.ac(this.d);this._f.w(n)}if(this._f.d()&&this.l!=1){this._f.y()}},k:0,m:function(a){return $$t.$fj.getCurrentFontHeight(this._q,a)},u:0,t:0,ab:function(){var a=Math.round(this._q.rootWrapper().width());var b=Math.round(this._q.rootWrapper().height());this._c.cf(new $$t.d6(0,0,0,a,b))},aq:null,ar:null,as:null,z:function(a,b,c){var d=b;var e=c;if(!this.g){switch(a){case"BackingBrush":this.aq=e;break;case"BackingOutline":this.ar=e;break;case"BarBrush":this.as=e;break}if(e==null){this.ak()}}},l:0,ad:function(){this.l=this._c.ax()},o:function(){return this.k},$type:new $.ig.Type("XamBarcodeView",$.ig.$ot)},true);$c("BarcodeAlgorithm:hd","Object",{init:function(){$.ig.$op.init.call(this)},staticInit:function(){$$t.$hd.d=new $$t.be($$t.$l.$type,$$t.$l.$type,0);$$t.$hd.d.item(-1,28591);$$t.$hd.d.item(0,437);$$t.$hd.d.item(1,28591);$$t.$hd.d.item(2,$$t.$hd.d.item(0));$$t.$hd.d.item(3,$$t.$hd.d.item(1));$$t.$hd.d.item(4,28592);$$t.$hd.d.item(5,28593);$$t.$hd.d.item(6,28594);$$t.$hd.d.item(7,28595);$$t.$hd.d.item(8,28596);$$t.$hd.d.item(9,28597);$$t.$hd.d.item(10,28598);$$t.$hd.d.item(11,28599);$$t.$hd.d.item(13,874);$$t.$hd.d.item(15,28603);$$t.$hd.d.item(17,28605);$$t.$hd.d.item(20,932);$$t.$hd.d.item(21,1250);$$t.$hd.d.item(22,1251);$$t.$hd.d.item(23,1252);$$t.$hd.d.item(24,1256);$$t.$hd.d.item(25,1200);$$t.$hd.d.item(26,65001);$$t.$hd.d.item(27,20127);$$t.$hd.d.item(28,950);$$t.$hd.d.item(29,936);$$t.$hd.d.item(30,949);$$t.$hd.e=new $$t.be($$t.$l.$type,String,0);$$t.$hd.e.item(-1,"iso-8859-1");$$t.$hd.e.item(0,"Cp437");$$t.$hd.e.item(1,$$t.$hd.e.item(-1));$$t.$hd.e.item(2,"Cp437");$$t.$hd.e.item(3,$$t.$hd.e.item(1));$$t.$hd.e.item(4,"iso-8859-2");$$t.$hd.e.item(5,"iso-8859-3");$$t.$hd.e.item(6,"iso-8859-4");$$t.$hd.e.item(7,"iso-8859-5");$$t.$hd.e.item(8,"iso-8859-6");$$t.$hd.e.item(9,"iso-8859-7");$$t.$hd.e.item(10,"iso-8859-8");$$t.$hd.e.item(11,"iso-8859-9");$$t.$hd.e.item(13,"iso-8859-11");$$t.$hd.e.item(15,"iso-8859-13");$$t.$hd.e.item(17,"iso-8859-15");$$t.$hd.e.item(20,"shift_jis");$$t.$hd.e.item(21,"windows-1250");$$t.$hd.e.item(22,"windows-1251");$$t.$hd.e.item(23,"windows-1252");$$t.$hd.e.item(24,"windows-1256");$$t.$hd.e.item(25,"ISO-10646-UCS-2");$$t.$hd.e.item(26,"UTF-8");$$t.$hd.e.item(27,"ISO646-US");$$t.$hd.e.item(28,"Big5");$$t.$hd.e.item(29,"gb2312");$$t.$hd.e.item(30,"KSC5601");var a;var b=new $$t.b6(0);for(a=0;a<256;a++){b.h(String.fromCharCode(a))}$$t.$hd.r=b.toString()},s:function(a,b,c){b=b.toUpperCase();var d=b.length;var e=new Array(d);var f=0;for(var g=b.length-1;g>=0;g--){e[f++]=b.charAt(g).charCodeAt(0)<="9".charCodeAt(0)?b.charCodeAt(g)-"0".charCodeAt(0):10+(b.charCodeAt(g)-"A".charCodeAt(0))}var h=d*($a(c,a)+1);var i=new Array(h+10);var j=new Array(h+10);for(var k=0;k<j.length;k++){j[k]=0}for(var l=0;l<i.length;l++){i[l]=0}i[0]=1;for(var m=0;m<d;m++){for(var n=0;n<h;n++){j[n]+=i[n]*e[m];var o=j[n];var p=n;do{var q=$a(o,a);j[p]=o-q*a;p++;j[p]+=q;o=j[p]}while(o>=a)}for(var r=0;r<h;r++){i[r]=i[r]*c}for(var s=0;s<h;s++){var t=i[s];var u=s;do{var v=$a(t,a);i[u]=t-v*a;u++;i[u]+=v;t=i[u]}while(t>=a)}}var w=new $$t.b6(0);var x=false;for(var y=h;y>=0;y--){if(j[y]!=0){x=true}if(x){if(j[y]<10){w.h(String.fromCharCode(j[y]+"0".charCodeAt(0)))}else{w.h(String.fromCharCode(j[y]+"A".charCodeAt(0)-10))}}}if(String.isNullOrEmpty(w.toString())){return"0"}return w.toString()},o:function(a,b){var c=1;while(b>0){c*=a;b--}return c},p:function(a){var b=0;for(var c=0;c<16;c++){b<<=1;b|=a&1;a>>=1}return b},m:function(a){return $$t.$l.parseInt(a,16)},t:function(a){return $$t.$hd.s(16,a,10)},u:function(a){return $$t.$hd.s(10,a,16)},w:function(a,b){if(b==0||String.isNullOrEmpty(a)){return String.empty()}var c=b.toString().length;if(a.length<c||a.length==c&&$$t.$l.parseInt(a)<b){return a}var d;do{var e=$$t.$l.parseInt(a.substr(0,c));if($a(e,b)>0){d=a.substr(c)}else{e=$$t.$l.parseInt(a.substr(0,c+1));d=a.substr(c+1)}a=(e%b).toString()+d;if(a.length<=c){if($$t.$l.parseInt(a)<b){return a}}}while(!String.isNullOrEmpty(d));return d},v:function(a,b){if(b==0||String.isNullOrEmpty(a)){return String.empty()}var c=b.toString().length;if(a.length<c||a.length==c&&$$t.$l.parseInt(a)<b){return"0"}var d=new $$t.b6(0);var e;var f=0;do{var g=$$t.$l.parseInt(a.substr(0,c));if($a(g,b)>0){e=a.substr(c);if(f>1){for(var h=1;h<f;h++){d.l("0")}}}else{if(f>0){for(var i=0;i<f;i++){d.l("0")}var j=c+f>a.length?a.length:c+f;g=$$t.$l.parseInt(a.substr(0,j));e=a.substr(j)}else{g=$$t.$l.parseInt(a.substr(0,c+1));e=a.substr(c+1)}}d.l($a(g,b).toString());var k=g%b;f=k.toString().length==c?0:c-k.toString().length;a=k.toString()+e;if(a.length<=c){if($$t.$l.parseInt(a)<b){var l=a.length+f-c;if(l>0){for(var m=0;m<l;m++){d.l("0")}}break}}}while(!String.isNullOrEmpty(e));return d.toString()},b:function(a,b){if(String.isNullOrEmpty(a)||String.isNullOrEmpty(b)){return false}for(var c=0;c<a.length;c++){var d=false;for(var e=0;e<b.length;e++){if(a.charAt(c).equals(b.charAt(e))){d=true;break}}if(!d){return false}}return true},a:function(a,b,c){for(var e=0;e<a.length;e++){var d=a[e];var f=false;var i=c.getBytes1(b);for(var h=0;h<i.length;h++){var g=i[h];if(d.equals(g)){f=true;break}}if(!f){return false}}return true},c:function(a,b){if(String.isNullOrEmpty(a)||a.length!=b){return false}return $$t.$hd.b(a,"0123456789")},n:function(a,b){var c=0;var d=b;if(b<a.length){while($aa(a.charAt(d))&&d<a.length){c++;d++;if(d==a.length){break}}}return c},$type:new $.ig.Type("BarcodeAlgorithm",$.ig.$ot)},true);$c("BarcodeEncodedAlgorithm:he","BarcodeAlgorithm",{_aa:null,y:null,z:function(){return this.y},init:function(a,b){$$t.$hd.init.call(this);this.y=b;this._aa=a},ab:function(a){return null},ac:function(a){var encoding_=$$t.$bd.x(a);var b=encoding_.getBytes2;if(!b){throw new $$t.z(1,$x(this.y.b("notLoadedEncoding"),"{0}",$$t.$bd.w.item(a)))}return encoding_},$type:new $.ig.Type("BarcodeEncodedAlgorithm",$$t.$hd.$type)},true);$c("Gs1Helper:hf","Object",{init:function(){$.ig.$op.init.call(this)},staticInit:function(){var a;$$t.$hf.b=new $$t.be($$t.$l.$type,$$t.$l.$type,0);$$t.$hf.b.item(0,20);$$t.$hf.b.item(1,16);$$t.$hf.b.item(2,16);$$t.$hf.b.item(10,-1);$$t.$hf.b.item(11,8);$$t.$hf.b.item(12,8);$$t.$hf.b.item(13,8);$$t.$hf.b.item(15,8);$$t.$hf.b.item(17,8);$$t.$hf.b.item(20,4);$$t.$hf.b.item(21,-1);$$t.$hf.b.item(22,-1);$$t.$hf.b.item(240,-1);$$t.$hf.b.item(241,-1);$$t.$hf.b.item(242,-1);$$t.$hf.b.item(250,-1);$$t.$hf.b.item(251,-1);$$t.$hf.b.item(253,-1);$$t.$hf.b.item(254,-1);$$t.$hf.b.item(30,-1);for(a=3100;a<3170;++a){$$t.$hf.b.item(a,10)}for(a=3200;a<3380;++a){$$t.$hf.b.item(a,10)}for(a=3400;a<3580;++a){$$t.$hf.b.item(a,10)}for(a=3600;a<3700;++a){$$t.$hf.b.item(a,10)}$$t.$hf.b.item(37,-1);for(a=3900;a<3940;++a){$$t.$hf.b.item(a,-1)}$$t.$hf.b.item(400,-1);$$t.$hf.b.item(401,-1);$$t.$hf.b.item(402,-1);$$t.$hf.b.item(403,-1);for(a=410;a<416;++a){$$t.$hf.b.item(a,16)}for(a=420;a<427;a++){$$t.$hf.b.item(a,-1)}$$t.$hf.b.item(7001,-1);$$t.$hf.b.item(7002,-1);$$t.$hf.b.item(7003,-1);for(a=7030;a<7040;a++){$$t.$hf.b.item(a,-1)}for(a=8001;a<8009;a++){$$t.$hf.b.item(a,-1)}$$t.$hf.b.item(8018,-1);$$t.$hf.b.item(8020,-1);$$t.$hf.b.item(8100,-1);$$t.$hf.b.item(8101,-1);$$t.$hf.b.item(8102,-1);for(a=90;a<100;++a){$$t.$hf.b.item(a,-1)}},e:function(a,b){if(String.isNullOrEmpty(a)){return String.empty()}if(a.startsWith("(")){var c=0;var d="";while(c>=0){var e=a.indexOf(")",c);if(e<0){return String.empty()}var f=a.substr(c+1,e-(c+1));if(f.length<2||!$$t.$hf.a(f)){return String.empty()}var g=$$t.$l.parseInt(f);if($$t.$hf.b.containsKey(g)==false){return String.empty()}var h=$$t.$hf.b.item(g);if(h==0){return String.empty()}c=a.indexOf("(",e);var i=c<0?a.length:c;d+=f+a.substr(e+1,i-(e+1));if(h<0){if(c>=0){d+=b}}else if(i-e-1+f.length!=h){return String.empty()}}return d}return String.empty()},a:function(a){for(var b=0;b<a.length;b++){if($aa(a.charAt(b))==false){return false}}return true},d:function(a){if(String.isNullOrEmpty(a)){return String.empty()}var b=0;var c,d;if(a.length%2!=0){c=3;d=1}else{c=1;d=3}for(var e=0;e<a.length;e++){var f=a.charAt(e).charCodeAt(0)-"0".charCodeAt(0);if(e%2==0){b+=c*f}else{b+=d*f}}var g=0;while((b+g)%10!=0){g++}return g.toString()},$type:new $.ig.Type("Gs1Helper",$.ig.$ot)},true);$c("GfArithmetics:hh","Object",{init:function(a){$.ig.$op.init.call(this);this._l=a},c:null,a:null,_l:0,q:function(a){this.c=new Array(this._l);this.a=new Array(this._l);this.c[0]=1-this._l;this.a[0]=1;for(var b=1;b<this._l;b++){this.a[b]=this.a[b-1]*2;if(this.a[b]>=this._l){this.a[b]^=a}this.c[this.a[b]]=b}},p:function(a,b){return a^b},g:function(a,b){var c=a;var d=b;if(c.length>d.length){var e=c;c=d;d=e}var f=new Array(d.length);var g=d.length-c.length;$.ig.util.arrayCopy1(d,0,f,0,g);for(var h=g;h<d.length;h++){f[h]=$$t.$hh.p(c[h-g],d[h])}return $$t.$hh.f(f)},h:function(a,b){return a^b},b:function(a,b){var c;var d;if(a.length>b.length){c=new Array(a.length);$.ig.util.arrayCopy1(a,0,c,0,a.length);d=new Array(b.length);$.ig.util.arrayCopy1(b,0,d,0,b.length)}else{c=new Array(b.length);$.ig.util.arrayCopy1(b,0,c,0,b.length);d=new Array(a.length);$.ig.util.arrayCopy1(a,0,d,0,a.length)}var e=c.length;var f=d.length;var g=new Array(e);for(var h=0;h<e;h++){if(h<f){g[h]=$$t.$hh.h(c[h],d[h])}else{g[h]=c[h]}}return g},i:function(a,b){return $$t.$hh.p(a,b)},n:function(a,b){if(a==0||b==0){return 0}return this.a[(this.c[a]+this.c[b])%(this._l-1)]},d:function(a,b){if(a.length<1||b.length<1){return null}if(a.length==1&&a[0]==0||b.length==1&&b[0]==0){return[0]}var c=a.length;var d=b.length;var e=new Array(c+d-1);for(var f=0;f<c;f++){for(var g=0;g<d;g++){e[f+g]=$$t.$hh.p(e[f+g],this.n(a[f],b[g]))}}return e},e:function(a,b){if(b==0){return[0]}if(b==1){return a}var c=a.length;var d=new Array(c);for(var e=0;e<c;e++){d[e]=this.n(a[e],b)}return d},o:function(a,b){if(b==0){return 1-this._l}if(a==0){return 0}return this.a[(this.c[a]-this.c[b]+(this._l-1))%(this._l-1)]},m:function(a){if(a==0){throw new $$t.z(0)}return this.a[255-this.c[a]]},j:function(a){if(this.a.length<a||a<0){throw new $$t.bq(1,"Invalid index!")}return this.a[a]},k:function(a){if(this.c.length<a||a<0){throw new $$t.bq(1,"Invalid index!")}return this.c[a]},f:function(a){var b=a;var c=a.length-1;if(c>0&&a[0]==0){var d=1;while(d<=c&&a[d]==0){d++}if(d==c+1){b=[0]}else{b=new Array(c+1-d);$.ig.util.arrayCopy1(a,d,b,0,b.length)}}return b},$type:new $.ig.Type("GfArithmetics",$.ig.$ot)},true);$c("Gf256:hg","GfArithmetics",{init:function(a){$$t.$hh.init.call(this,256);this.q(a)},t:function(a,b){if(a.length==0){return 0}if(b==0){return a[0]}var c=a.length-1;var d=0;if(b==1){for(var e=0;e<=c;e++){d=$$t.$hh.p(d,a[e])}return d}d=a[0];for(var f=1;f<=c;f++){d=$$t.$hh.p(this.n(b,d),a[f])}return d},s:function(a,b,c){if(b<0){return null}if(c==0){return[0]}var d=a.length;var e=new Array(d+b);for(var f=0;f<d;f++){e[f]=this.n(a[f],c)}return e},r:function(a,b){if(a<0){return null}if(b==0){return[0]}var c=new Array(a+1);c[0]=b;return c},$type:new $.ig.Type("Gf256",$$t.$hh.$type)},true);$c("ReedSolomon:hi","Object",{init:function(a){$.ig.$op.init.call(this);this.a=a},a:null,b:function(a,b,c,d,e){if(a.length<b+c){throw new $$t.bq(1,this.a.b("EncodingError"))}var f;for(f=b;f<b+c;f++){a[f]=0}for(f=0;f<b;f++){var g=$$t.$hh.p(a[b],a[f]);for(var h=0;h<c;h++){a[b+h]=$$t.$hh.p(a[b+h+1],e.n(g,d[h]))}a[b+c-1]=e.n(g,d[c-1])}},$type:new $.ig.Type("ReedSolomon",$.ig.$ot)},true);$c("MeasureHelper:hj","Object",{init:function(){$.ig.$op.init.call(this)},g:function(){return 96},h:function(){return 96},d:function(a){var b=$$t.$hj.g();return $$t.$hj.a(a*b)},f:function(a){var b=$$t.$hj.h();return $$t.$hj.a(a*b)},c:function(a){return $$t.$hj.b(a/$$t.$hj.g())},e:function(a){return $$t.$hj.b(a/$$t.$hj.h())},a:function(a){return a/25.4},b:function(a){return a*25.4},$type:new $.ig.Type("MeasureHelper",$.ig.$ot)},true);$c("BarcodeGrid:hk","Panel",{bd:null,ai:false,ac:function(){return this.ae().ah()},init:function(){this.bf=new $$t.d7;$$t.$hl.init.call(this);this.as(new $$t.ii($$t.$bc.$type));this.ar(new $$t.ii($$t.$bb.$type));this._am=new $$t.c5($$t.$hn.$type,0);this.bn(new $$t.d7(1,0,0));this._ao=new $$t.c5($$t.$hn.$type,0);this._be=new $$t.fq;this._be._ac=0;var a=new $$t.ij;a._ab.add(this._be);this._ab.add(a)},_be:null,_am:null,_ao:null,bf:null,bn:function(a){if(arguments.length===1){this.bf=a;return a}else{return this.bf}},ak:null,an:function(a){if(arguments.length===1){this.ak=a;return a}else{return this.ak}},aj:null,al:function(a){if(arguments.length===1){this.aj=a;return a}else{return this.aj}},a4:0,a5:function(a){if(arguments.length===1){this.a4=a;return a}else{return this.a4}},ad:null,ae:function(a){if(arguments.length===1){this.ad=a;return a}else{return this.ad}},ap:null,ar:function(a){if(arguments.length===1){this.ap=a;return a}else{return this.ap}},aq:null,as:function(a){if(arguments.length===1){this.aq=a;return a}else{return this.aq}},bg:function(a){if(this.ae()==null){return a}var b=a.width()==0||a.height()==0;var c=new $$t.gz;if(this.ae().isValid()&&b==false){var e=this._am.getEnumerator();while(e.moveNext()){var d=e.current();c._d.add(this.bc(d))}}var f=0;var h=this._ab.getEnumerator();while(h.moveNext()){var g=h.current();var i=$b($$t.$fb.$type,g);if(i!=null){this.a7(i,a,b,this._ao.__inner[f]);f++}}this._be._ak=c;var j=this.bl();var k=this.ae().cd(a,j);var l=new $$t.ha;
l._j=k.__x-this.bd.__x;l._k=k.__y-this.bd.__y;this._be._j=l;return a},bm:function(a){var b=new $$t.d7(1,1.7976931348623157e308,1.7976931348623157e308);var d=this._ab.getEnumerator();while(d.moveNext()){var c=d.current();var e=$b($$t.$fb.$type,c);if(e!=null){this.bn(this.ae().view().at(e))}}if(this.ae()!=null){var f=this.bj(this.bk(a),a);if(this.ae().barsFillMode()==1){this.af(a)}if(this.ae().isValid()){return f}}return a},a8:function(){this.as().clear();this.ar().clear();this._am.clear();this.a9();this._be._ak=null},a9:function(){var a=new $$t.c5($$t.$fb.$type,0);var c=this._ab.getEnumerator();while(c.moveNext()){var b=c.current();var d=$b($$t.$fb.$type,b);a.add(d)}var f=a.getEnumerator();while(f.moveNext()){var e=f.current();this._ab.remove(e)}this._ao.clear()},af:function(a){if(this.ae().stretch()==0){return true}var b=this.bl();var c;if(b.height()==0||b.width()==0){if(b.height()==0&&this.ae().isValid()){c=$x($x(this.ac().b("InvalidHeight"),"{0}",this.as().count().toString()),"{1}",a.height().toString())}else{c=$x($x(this.ac().b("InvalidWidth"),"{0}",this.ar().count().toString()),"{1}",a.width().toString())}if(this.ae().isValid()){var d=new $$t.bq(1,c);this.ae().bk(d);return false}}var e=this.ag(a,b);if(!e){c=$x($x(this.ac().b("SmallSize"),"{0}",a.width().toString()),"{1}",a.height().toString());if(this.ae().isValid()){var f=new $$t.bq(1,c);this.ae().bk(f);return false}}if(this.ae().isValid()==false){var g=this.ah(a,b);if(g){this.ae().bi();return false}}return true},ag:function(a,b){if(b.width()==0||b.height()==0){return true}switch(this.ae().stretch()){case 3:if(a.width()<=b.width()){return a.height()>=this.a5()}if(a.height()<=b.height()){return a.width()>=this.ar().count()}return true;default:return a.width()>=this.ar().count()&&a.height()>=this.a5()}},ah:function(a,b){var c=b.height();var d=b.width();var e=c>0&&d>0;if(this.ae().stretch()==3){return e&&(d<=a.width()||c<=a.height())}return e&&(d<=a.width()&&c<=a.height())},bc:function(a){var b=this.bd.__y+this.a2(a._c);var c=this.bd.__x+this.ax(a._b);var d=this.a3(a._b,a._a);var e=this.aw(a._c,a._d);var f=new $$t.d6(0,c,b,d,e);var g=function(){var $ret=new $$t.g3;$ret._e=f;return $ret}();return g},a7:function(a,b,c,d){var e=this.bl();var f=this.ae().cd(b,e);if(this.ai){f.__x-=this.bd.__x}var g=d._c;var h=d._b;var i=d._a;var j=this.a2(g)+f.__y;var k=this.ax(h)+f.__x;var l=c?0:this.a3(h,i);if(i==this.ar().count()&&l<this.bn().width()&&this.ae().isValid()){l=this.bn().width()}if(l==-1){l=e.width()}var m=this.bn().height();var n=(l-this.bn().width())/2;a._n=k+n;a._o=j},ax:function(a){var b=0;if(this.al()==null){return b}if(this.as().count()>0){for(var c=0;c<a;c++){b+=this.al().__inner[c]}}return b},a2:function(a){var b=0;if(this.an()==null){return b}if(this.ar().count()>0){for(var c=0;c<a;c++){b+=this.an().__inner[c]}}return b},bj:function(a,b){this.ai=false;if(a.width()<this.bn().width()&&a.width()<=b.width()&&a.width()!=0){this.bd=this.ae().cd(this.bn(),a);a.width(this.bn().width());this.ai=true}else if(a.width()>b.width()||a.height()>b.height()){this.bd=this.ae().cd(b,a)}else{this.bd=this.ae().cd(b,a)}if(a.width()>b.width()){a.width(b.width())}if(a.height()>b.height()){a.height(b.height())}return a},bk:function(a){var b=this.bi(a);var c=this.bh(b);return c},bi:function(a){if(a.width()==0||a.height()==0){return a}var b=this.ae().cp();var c=a.height();var d=false;if(this.ae()._dg!=null&&this.ae()._dg.__visibility==0&&c>this.bn().height()&&!Number.isInfinity(c)){c-=this.bn().height();d=true}var e,f;switch(this.ae().stretch()){case 1:return new $$t.d7(1,a.width(),a.height());case 0:return this.ae().dk(b);case 3:if(c*b>a.width()){f=c;e=b*f}else{e=a.width();f=e/b}break;default:if(c*b>a.width()){e=a.width();f=e/b}else{f=c;e=b*f}break}if(d){f+=this.bn().height()}e=Math.floor(e+.5);f=Math.floor(f+.5);return new $$t.d7(1,e,f)},bh:function(a){if(a.width()==0||a.height()==0){return a}var b=this.at(a.height());var c=this.au(a.width());return new $$t.d7(1,c,b)},bl:function(){var a=this.a0();a=a==-1?0:a;var b=this.a1();b=b==-1?0:b;return new $$t.d7(1,a,b)},a0:function(){if(this.al()==null){return-1}return $$t.$ik.aa(this.al())},a1:function(){if(this.an()==null){return-1}return $$t.$ik.aa(this.an())},at:function(a){if(a==0){return a}var b=$$t.$hk.az(this.as());this.bb(a,b);var c;var d=1;do{c=this.a1();if(c<=0){break}if(c>a){var e=a-d;if(e>0){this.bb(e,b);d++}else{break}}}while(c>a);return c},bb:function(a,b){this.an(new $$t.c5(Number,0));if(b==0){return}a=a-this.bn().height();if(a<0){a=0}this.a5(0);var c=a/b;var d=0;var e=0;var f=new $$t.c5($$t.$l.$type,0);for(var g=0;g<this.as().count();g++){var h=this.as().__inner[g];var i;if(h.height().isStar()){switch(this.ae().barsFillMode()){case 0:e+=h.height().value();var j=Math.round(c*e);i=j-d;d=j;break;default:i=Math.floor(c*h.height().value());break}}else{i=0;this.a5(this.a5()+1);f.add(g)}this.an().add(i)}for(var k=0;k<this.a5();k++){this.an().__inner[f.__inner[k]]=this.bn().height()/this.a5()}},au:function(a){if(a==0){return a}var b=$$t.$hk.av(this.ar());var c=a;if(this.ae().barsFillMode()==1&&b>0){c=this.ay(a)}this.ba(c,b);return c},ay:function(a){var b=a%this.ar().count();return a-b},ba:function(a,b){this.al(new $$t.c5(Number,0));if(b==0){return}var c=0;var d=0;var e=a/b;var g=this.ar().getEnumerator();while(g.moveNext()){var f=g.current();var h=0;if(f.width().isStar()){switch(this.ae().barsFillMode()){case 0:d+=f.width().value();var i=Math.round(e*d);h=i-c;c=i;break;case 1:default:h=Math.round(e*f.width().value());break}}this.al().add(h)}},aw:function(a,b){if(this.an()==null){return 0}if(this.as().count()>0&&a+b<=this.as().count()){var c=0;for(var d=0;d<b;d++){c+=this.an().__inner[a+d]}return c}return-1},a3:function(a,b){if(this.al()==null){return 0}if(this.ar().count()>0&&a+b<=this.ar().count()){var c=0;for(var d=0;d<b;d++){c+=this.al().__inner[a+d]}return c}return-1},az:function(a){return $$t.$ik.ab($$t.$bc.$type,$$t.$ik.u($$t.$bc.$type,a,function(b){return b.height().isStar()}),function(b){return b.height().value()})},av:function(a){return $$t.$ik.ab($$t.$bb.$type,$$t.$ik.u($$t.$bb.$type,a,function(b){return b.width().isStar()}),function(b){return b.width().value()})},$type:new $.ig.Type("BarcodeGrid",$$t.$hl.$type)},true);$c("Module:hn","Object",{init:function(a){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$.ig.$op.init.call(this)},init1:function(a,b,c,d,e){$.ig.$op.init.call(this);this._c=b;this._b=c;this._d=d;this._a=e},_c:0,_b:0,_d:0,_a:0,$type:new $.ig.Type("Module",$.ig.$ot)},true);$c("DataChangedEventArgs:e9","EventArgs",{init:function(a){$$t.$fa.init.call(this);this.newData(a)},b:null,newData:function(a){if(arguments.length===1){this.b=a;return a}else{return this.b}},$type:new $.ig.Type("DataChangedEventArgs",$$t.$fa.$type)},true);$c("XamBarcode:dl","Control",{ai:function(){return new $$t.dk(this)},bw:function(a){this.view(a)},_view:null,view:function(a){if(arguments.length===1){this._view=a;return a}else{return this._view}},staticInit:function(){},init:function(){this.ar=false;this.ao=false;this.aw=NaN;this.av=1;this.ag=null;$$t.$dm.init.call(this);this.ce=$$t.$d6.empty();var a=this.ai();this.bw(a);a.ac()},ar:false,ao:false,an:false,as:function(a){if(arguments.length===1){this.an=a;return a}else{return this.an}},al:false,ap:function(a){if(arguments.length===1){this.al=a;return a}else{return this.al}},a2:null,bf:function(a){if(arguments.length===1){this.a2=a;return a}else{return this.a2}},am:false,isValid:function(a){if(arguments.length===1){if(a!=this.am){this.am=a}return a}else{return this.am}},ce:null,cf:function(a){if(arguments.length===1){var b=this.ce;this.ce=a;if(!b.equals1(this.ce)){this.bx(b,this.ce)}return a}else{return this.ce}},bx:function(a,b){this.view().ag()},aw:0,pixelScalingRatio:function(a){if(arguments.length===1){var b=this.aw;this.aw=a;this.bt("PixelScalingRatio",b,this.aw);return a}else{return this.aw}},av:0,ax:function(a){if(arguments.length===1){var b=this.av;this.av=a;this.bt("ActualPixelScalingRatio",b,this.av);return a}else{return this.av}},backingBrush:function(a){if(arguments.length===1){this.h($$t.$dl.backingBrushProperty,a);return a}else{return this.c($$t.$dl.backingBrushProperty)}},backingOutline:function(a){if(arguments.length===1){this.h($$t.$dl.backingOutlineProperty,a);return a}else{return this.c($$t.$dl.backingOutlineProperty)}},backingStrokeThickness:function(a){if(arguments.length===1){this.h($$t.$dl.backingStrokeThicknessProperty,a);return a}else{return this.c($$t.$dl.backingStrokeThicknessProperty)}},barBrush:function(a){if(arguments.length===1){this.h($$t.$dl.barBrushProperty,a);return a}else{return this.c($$t.$dl.barBrushProperty)}},fontBrush:function(a){if(arguments.length===1){this.h($$t.$dl.fontBrushProperty,a);return a}else{return this.c($$t.$dl.fontBrushProperty)}},font:function(a){if(arguments.length===1){this.h($$t.$dl.fontProperty,a);return a}else{return this.c($$t.$dl.fontProperty)}},bt:function(a,b,c){switch(a){case"BackingBrush":case"BackingOutline":case"BarBrush":this.view().z(a,b,c);break}switch(a){case"BackingBrush":case"BackingOutline":case"BackingStrokeThickness":case"BarBrush":this.view().ag();break;case"FontBrush":case"Font":this.view().al();this.view().ag();break;case"PixelScalingRatio":if($.ig.util.isNaN($$t.$e7.a(this.pixelScalingRatio()))){this.ax(1)}else{this.ax($$t.$e7.a(this.pixelScalingRatio()))}break;case"ActualPixelScalingRatio":this.view().ad();break}},data:function(a){if(arguments.length===1){this.h($$t.$dl.dataProperty,a);return a}else{return this.c($$t.$dl.dataProperty)}},bp:function(a,b){a.bo(b.oldValue(),b.newValue())},bo:function(a,b){if(!String.isNullOrEmpty(b)){this.ap(false)}if(this.as()){return}this.view().ag();if(this.dataChanged!=null){this.dataChanged(this,new $$t.e9(b))}this.ao=true},errorMessageText:function(a){if(arguments.length===1){this.h($$t.$dl.errorMessageTextProperty,a);return a}else{return this.c($$t.$dl.errorMessageTextProperty)}},bs:function(a,b){a.br(b.oldValue(),b.newValue())},br:function(a,b){},stretch:function(a){if(arguments.length===1){this.h($$t.$dl.stretchProperty,$$t.$ee.getBox(a));return a}else{return $g(this.c($$t.$dl.stretchProperty))}},bu:function(a,b){a.bv($g(b.oldValue()),$g(b.newValue()))},bv:function(a,b){this.view().ag()},ag:null,ah:function(){if(this.ag==null){this.ag=new $$t.ef(this.view()._q)}return this.ag},bh:function(){var a=this.au();if(a==false){var b;if(String.isNullOrEmpty(this.bf())){var c=this.errorMessageText();if(this.errorMessageText()==null){c=this.ah().b("ErrorMessageText")}b=new $$t.z(1,c)}else{b=new $$t.bq(1,this.bf());this.bf(String.empty())}this.bk(b)}else{this.bi()}},bl:function(a){this.isValid(false);var b=this.view().an();if(b!=null){b.ak(a);b.__visibility=0}else{this.bf(a)}},bi:function(){this.isValid(true);var a=this.view().an();a.__visibility=1},at:function(a){var b=String.isNullOrEmpty(a);return!b},au:function(){return this.at(this.data())},bq:function(a){if(this.errorMessageDisplaying!=null){this.errorMessageDisplaying(this,a)}},bm:function(a){a.viewport($$t.$fe.b(this.cf()))},bk:function(e_){var warning_=this.ah().b("WarningString");var a=warning_+(typeof e_.message==="string"||e_.message instanceof String?e_.message:e_.message());var b=new $$t.fc(a);this.bq(b);this.bl(a)},cd:function(a,b){var c={__x:0,__y:0,$type:$$t.$d8.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};c.__x=(a.width()-b.width())/2;c.__y=(a.height()-b.height())/2;c.__x=Math.round(c.__x-.5);c.__y=Math.round(c.__y-.5);return c},provideContainer:function(a){this.view().aa(a)},containerResized:function(){this.view().ab()},flush:function(){this.view().flush()},errorMessageDisplaying:null,dataChanged:null,ak:function(){return $$t.$fj.toFontInfo(this.view()._q,this.font())},$type:new $.ig.Type("XamBarcode",$$t.$dm.$type)},true);$c("XamGridBarcode:ho","XamBarcode",{cs:0,cu:function(a){if(arguments.length===1){this.cs=a;return a}else{return this.cs}},ct:0,cv:function(a){if(arguments.length===1){this.ct=a;return a}else{return this.ct}},_ch:null,_dg:null,cl:false,cn:function(a){if(arguments.length===1){this.cl=a;return a}else{return this.cl}},_cg:null,ai:function(){return new $$t.hp(this)},bw:function(a){$$t.$dl.bw.call(this,a);this._ck=a},_ck:null,init:function(){this.cl=true;$$t.$dl.init.call(this);this._ab=$$t.$ho.$type;this._cg=new $$t.hd;var a=1;while($$t.$hj.d(this.xDimension())<1){this.xDimension(Math.round($$t.$hj.c(a)*1e3)/1e3);a+=.01}},barsFillMode:function(a){if(arguments.length===1){this.h($$t.$ho.barsFillModeProperty,$$t.$hq.getBox(a));return a}else{return $g(this.c($$t.$ho.barsFillModeProperty))}},da:function(a,b){a.c9($g(b.oldValue()),$g(b.newValue()))},c9:function(a,b){this.view().ag()},widthToHeightRatio:function(a){if(arguments.length===1){this.h($$t.$ho.widthToHeightRatioProperty,a);return a}else{return this.c($$t.$ho.widthToHeightRatioProperty)}},dc:function(a,b){a.db(b.oldValue(),b.newValue())},db:function(a,b){if(b<=0){var c=$x($x($x(this.ah().b("InvalidPropertyValue"),"{0}","WidthToHeightRatio"),"{1}",.001.toString()),"{2}",1e3.toString());this._ck.av(c)}else{this.view().ag()}},xDimension:function(a){if(arguments.length===1){this.h($$t.$ho.xDimensionProperty,a);return a}else{return this.c($$t.$ho.xDimensionProperty)}},de:function(a,b){a.dd(b.oldValue(),b.newValue())},dd:function(a,b){if(b<.01||b>100){var c=$x($x($x(this.ah().b("InvalidPropertyValue"),"{0}","XDimension"),"{1}",.01.toString()),"{2}",100..toString());this._ck.av(c)}else{if(this.view()!=null){this.view().ag()}}},au:function(){return $$t.$dl.au.call(this)&&this.widthToHeightRatio()>0&&this.xDimension()>=.01&&this.xDimension()<=100},bv:function(a,b){$$t.$dl.bv.call(this,a,b);if(this._ch!=null){this.view().ag()}},bh:function(){if(this._ch==null){return}$$t.$dl.bh.call(this);if(this.isValid()==false){this.c4()}else if(!this.cm()){var a=this.ah().b("InvalidDimension");var b=new $$t.bq(1,a);this.bk(b);this.c4()}if(this.isValid()==false||!this.cn()){this._ck.aw();this.view().w();return}this.cn(false);try{this.c3();this.c5();this.c6()}catch(ex_){this.bk(ex_)}this.cn(true);this._ck.aw();this.view().w()},c3:function(){this.c4()},c5:function(){},dk:function(a){var b=150,c=100;if(!this.isValid()){if(!$.ig.util.isNaN(this.width())){b=this.width()}if(!$.ig.util.isNaN(this.height())){c=this.height()}return new $$t.d7(1,b,c)}b=this._ch.ar().count()*$$t.$hj.d(this.xDimension());c=this.widthToHeightRatio()*$$t.$hj.f(this.xDimension());if(this._dg!=null&&this._dg.__visibility==0){var d=this.view().at(this._dg);if(d.width()>b){b=d.width();c=b/a}c+=d.height()}b=Math.round(b-.5);c=Math.round(c-.5);return new $$t.d7(1,b,c)},cp:function(){if(!this.isValid()){return 1/.5}var a=this._ch.ar().count();var b=this.widthToHeightRatio();return a/b},exportSerializedVisualData:function(){var a=this.exportVisualData();a.scaleByViewport();return a.serialize()},exportVisualData:function(){var a=new $$t.hr;this.bm(a);return a},bm:function(a){$$t.$dl.bm.call(this,a);var b=a;b.figuresPath(new $$t.hz(1,"Figures",this._ch._be));b.figuresPathRect(new $$t.hz(1,"BarcodeGrid",this._ck.ax()))},co:function(){return true},c4:function(){if(this._ch!=null){this._ch.a8()}},df:function(a,b,c,d,e){if(this.co()==false){return null}var f=function(){var $ret=new $$t.fb;$ret.ak(a);return $ret}();this._ch._ao.add(new $$t.hn(1,d,b,e,c));this._ch._ab.add(f);return f},cy:function(a){if(a==null){return}for(var c=0;c<a.length;c++){var b=a[c];if(b==0){break}this.cz(b)}},cz:function(a){for(var b=0;b<a;b++){var c=function(){var $ret=new $$t.bb;$ret.width(new $$t.a(1,1,2));return $ret}();this._ch.ar().add(c)}},c1:function(a,b){this._ch.as().add(function(){var $ret=new $$t.bc;$ret.height(new $$t.a(1,a,b));return $ret}())},c7:function(a,b,c,d,e){if(a==null){return}for(var g=0;g<a.length;g++){var f=a[g];if(this._ch.ar().count()+f<=e||this._ch.as().count()+f<=c){break}this.c8(e,f,c,d,b);e+=f;b=!b}},c8:function(a,b,c,d,e){if(e){var f=new $$t.hn(1,c,a,d,b);this._ch._am.add(f)}},c0:function(a){for(var b=0;b<a;b++){this.cz(1)}},c2:function(a){for(var b=0;b<a;b++){this.c1(1,2)}},c6:function(){if(this._m==0||this._l==0){return}},cm:function(){if(this.barsFillMode()==1&&this.stretch()==0){return $$t.$hj.d(this.xDimension())>=1}return true},$type:new $.ig.Type("XamGridBarcode",$$t.$dl.$type)},true);$c("SR:ef","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this.a=a},b:function(resourceName_){var a=String.empty();resourceName_=resourceName_.charAt(0).toLowerCase()+resourceName_.substr(1);a=this.a.getResourceString(resourceName_);return a},$type:new $.ig.Type("SR",$.ig.$ot)},true);$c("XamGridBarcodeView:hp","XamBarcodeView",{_au:null,init:function(a){$$t.$dk.init.call(this,a);this._au=a;this._au._ch=new $$t.hk;this._au._ch.ae(this._au)},af:function(){$$t.$dk.af.call(this);if(this._c!=null&&this._c.ax()!=1){this._f.z();this._f.aa(this._c.ax(),this._c.ax())}var a=this._au._ch._be;a.__fill=this._c.barBrush();if(a._j!=null){this._f.z();this._f.j(a._j)}this._f.s(a);if(a._j!=null){this._f.y()}var c=this._au._ch._ab.getEnumerator();while(c.moveNext()){var b=c.current();var d=$b($$t.$fb.$type,b);if(d!=null){this.ah(d,this._c.fontBrush());this._f.ac(this.e());this._f.w(d)}}if(this._c!=null&&this._c.ax()!=1){this._f.y()}},av:function(a){this._c.bf(a);this.ag()},aw:function(){var a=new $$t.d7(1,this._au.cf().width(),this._au.cf().height());var b=this._au._ch.bm(a);this._au._ch.bg(a)},ax:function(){var a=this._au._ch._be._ak;var b=a._d;var c=-1.7976931348623157e308;var d=-1.7976931348623157e308;var e=1.7976931348623157e308;var f=1.7976931348623157e308;var h=b.getEnumerator();while(h.moveNext()){var g=h.current();var i=g._e;var j=i.left();var k=i.right();var l=i.top();var m=i.bottom();e=j<e?j:e;f=l<f?l:f;c=k>c?k:c;d=m>d?m:d}var n=new $$t.d6(0,e+1,f+1,c-e,d-f);var o=new $$t.fq;o._ak=function(){var $ret=new $$t.g3;$ret._e=n;return $ret}();return o},$type:new $.ig.Type("XamGridBarcodeView",$$t.$dk.$type)},true);$c("BarcodeVisualData:fd","Object",{init:function(){$.ig.$op.init.call(this)},_viewport:null,viewport:function(a){if(arguments.length===1){this._viewport=a;return a}else{return this._viewport}},$type:new $.ig.Type("BarcodeVisualData",$.ig.$ot)},true);$c("GridBarcodeVisualData:hr","BarcodeVisualData",{init:function(){$$t.$fd.init.call(this)},_figuresPath:null,figuresPath:function(a){if(arguments.length===1){this._figuresPath=a;return a}else{return this._figuresPath}},_figuresPathRect:null,figuresPathRect:function(a){if(arguments.length===1){this._figuresPathRect=a;return a}else{return this._figuresPathRect}},scaleByViewport:function(){if(this.figuresPath()!=null){this.figuresPath().scaleByViewport(this.viewport())}if(this.figuresPathRect()!=null){this.figuresPathRect().scaleByViewport(this.viewport())}},serialize:function(){var a=new $$t.b6(0);var b=true;a.u("{");if(this.figuresPath()!=null){if(b){b=false}else{a.l(", ")}a.l("figuresPath: ");a.u(this.figuresPath().serialize())}if(this.figuresPathRect()!=null){if(b){b=false}else{a.l(", ")}a.l("figuresPathRect: ");a.u(this.figuresPathRect().serialize())}if(b){b=false}else{a.l(", ")}a.l("viewport: {");a.l("left: "+this.viewport().left()+", top: "+this.viewport().top()+", width: "+this.viewport().width()+", height: "+this.viewport().height());a.u("}");a.u("}");return a.toString()},$type:new $.ig.Type("GridBarcodeVisualData",$$t.$fd.$type)},true);$$t.$bd.q=null;$$t.$bd.r=null;$$t.$bd.s=null;$$t.$bd.t=null;$$t.$bd.p=null;$$t.$bd.a=null;$$t.$bd.v=null;$$t.$bd.o=null;$$t.$bd.c=null;$$t.$bd.g=null;$$t.$bd.h=null;$$t.$bd.i=null;$$t.$bd.j=null;$$t.$bd.k=null;$$t.$bd.l=null;$$t.$bd.m=null;$$t.$bd.n=null;$$t.$bd.d=null;$$t.$bd.e=null;$$t.$bd.f=null;$$t.$bd.u=null;$$t.$bd.b=null;$$t.$bd.w=null;if($$t.$bd.staticInit&&!$$t.$bd.encodingServiceStaticInitCalled){$$t.$bd.staticInit();$$t.$bd.encodingServiceStaticInitCalled=true}$$t.$hd.r=null;$$t.$hd.d=null;$$t.$hd.e=null;if($$t.$hd.staticInit&&!$$t.$hd.barcodeAlgorithmStaticInitCalled){$$t.$hd.staticInit();$$t.$hd.barcodeAlgorithmStaticInitCalled=true}$$t.$hf.b=null;if($$t.$hf.staticInit&&!$$t.$hf.gs1HelperStaticInitCalled){$$t.$hf.staticInit();$$t.$hf.gs1HelperStaticInitCalled=true}$$t.$dl.backingBrushProperty=$$t.$ds.i("BackingBrush",$$t.$d9.$type,$$t.$dl.$type,new $$t.dt(2,null,function(a,b){a.bt("BackingBrush",b.oldValue(),b.newValue())}));$$t.$dl.backingOutlineProperty=$$t.$ds.i("BackingOutline",$$t.$d9.$type,$$t.$dl.$type,new $$t.dt(2,null,function(a,b){a.bt("BackingOutline",b.oldValue(),b.newValue())}));$$t.$dl.backingStrokeThicknessProperty=$$t.$ds.i("BackingStrokeThickness",Number,$$t.$dl.$type,new $$t.dt(2,0,function(a,b){a.bt("BackingStrokeThickness",b.oldValue(),b.newValue())}));$$t.$dl.barBrushProperty=$$t.$ds.i("BarBrush",$$t.$d9.$type,$$t.$dl.$type,new $$t.dt(2,null,function(a,b){a.bt("BarBrush",b.oldValue(),b.newValue())}));$$t.$dl.fontBrushProperty=$$t.$ds.i("FontBrush",$$t.$d9.$type,$$t.$dl.$type,new $$t.dt(2,null,function(a,b){a.bt("FontBrush",b.oldValue(),b.newValue())}));$$t.$dl.fontProperty=$$t.$ds.i("Font",String,$$t.$dl.$type,new $$t.dt(2,null,function(a,b){a.bt("Font",b.oldValue(),b.newValue())}));$$t.$dl.dataProperty=$$t.$ds.i("Data",String,$$t.$dl.$type,new $$t.dt(2,String.empty(),$$t.$dl.bp));$$t.$dl.errorMessageTextProperty=$$t.$ds.i("ErrorMessageText",String,$$t.$dl.$type,new $$t.dt(2,null,$$t.$dl.bs));$$t.$dl.stretchProperty=$$t.$ds.i("Stretch",$$t.$ee.$type,$$t.$dl.$type,new $$t.dt(2,$$t.$ee.getBox(2),$$t.$dl.bu));if($$t.$dl.staticInit&&!$$t.$dl.xamBarcodeStaticInitCalled){$$t.$dl.staticInit();$$t.$dl.xamBarcodeStaticInitCalled=true}$$t.$ho.barsFillModeProperty=$$t.$ds.i("BarsFillMode",$$t.$hq.$type,$$t.$ho.$type,new $$t.dt(2,$$t.$hq.getBox(0),$$t.$ho.da));$$t.$ho.widthToHeightRatioProperty=$$t.$ds.i("WidthToHeightRatio",Number,$$t.$ho.$type,new $$t.dt(2,3,$$t.$ho.dc));$$t.$ho.xDimensionProperty=$$t.$ds.i("XDimension",Number,$$t.$ho.$type,new $$t.dt(2,.25,$$t.$ho.de))});