text: ﻿/*!
      *
      * Wijmo Library 5.20213.824
      * http://wijmo.com/
      *
      * Copyright(c) GrapeCity, Inc.  All rights reserved.
      *
      * Licensed under the GrapeCity Commercial License.
      * sales@wijmo.com
      * wijmo.com/products/wijmo-5/license/
      *
      */
  
  var wijmo,__extends=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};return function(t,e){extendStatics(t,e);function __(){this.constructor=t}t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();!function(t){!function(t){var e={center:"middle",left:"start",right:"end"},o=function(){function SVGRenderContext(t,e,o){this.dom=t;this.style=e;this.scale=o;this.color="rgb(0,0,0)";this.addGroup()}SVGRenderContext.prototype.setColor=function(t){this.color=t};SVGRenderContext.prototype.setBackgroundColor=function(t){this.dom.style.backgroundColor=t};SVGRenderContext.prototype.addGroup=function(){var t=this.dom;this.g=document.createElementNS("http://www.w3.org/2000/svg","g");this.g.setAttribute("shape-rendering","crispEdges");t.appendChild(this.g)};SVGRenderContext.prototype.drawRect=function(t){var e=this.g,o=this.scale,i=this.color,n=document.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("x",(t.x*o).toString());n.setAttribute("y",(t.y*o).toString());n.setAttribute("width",(t.width*o).toString());n.setAttribute("height",(t.height*o).toString());n.style.fill=i;e.appendChild(n)};SVGRenderContext.prototype.drawText=function(t){var o=this.g,i=this.scale,n=this.color,r=this.style,a=document.createElementNS("http://www.w3.org/2000/svg","text");a.style.fill=n;a.style.fontSize=r.fontSize;a.style.fontFamily=r.fontFamily;a.style.fontStyle=t.fontStyle||r.fontStyle;a.style.fontWeight=t.fontWeight||r.fontWeight;a.style.textDecoration=t.textDecoration||r.textDecoration;a.style.textAnchor=e[t.textAlign||r.textAlign];a.textContent=t.text;a.textContent=this.clipString(t,a);var s=this._measureText(a);a.setAttribute("y",(t.y*i+Math.abs(s.y)).toString());a.setAttribute("x",(t.x*i).toString());o.appendChild(a)};SVGRenderContext.prototype.clipString=function(t,e){var o=this.scale,i=t.text,n=t.maxWidth,r=this._measureText(e);n*=o;if(r.width>n){var a=Math.floor(n/r.width*i.length);return t.text.substr(0,a)}return i};SVGRenderContext.prototype.clear=function(){this.dom.removeChild(this.g);this.addGroup()};SVGRenderContext.prototype._measureText=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("xmlns","http://www.w3.org/2000/svg");e.style.visibility="hidden";e.style.position="absolute";t.setAttribute("x",0);t.setAttribute("y",0);e.appendChild(t);document.body.appendChild(e);var o=t.getBBox();document.body.removeChild(e);return o};SVGRenderContext.prototype.getDataUrl=function(){return"data:image/svg+xml;base64,"+btoa(this.dom.outerHTML)};return SVGRenderContext}();t.SVGRenderContext=o}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(){function CanvasRenderContext(t,e,o){this.dom=t;this.style=e;this.ctx=this.dom.getContext("2d");this.scale=o}CanvasRenderContext.prototype.setColor=function(t){this.ctx.fillStyle=t};CanvasRenderContext.prototype.setBackgroundColor=function(t){var e=this.ctx,o=this.dom;e.save();e.fillStyle=t;e.fillRect(0,0,o.width,o.height);e.restore()};CanvasRenderContext.prototype.drawRect=function(t){var e=this.ctx,o=this.scale;e.fillRect(t.x*o,t.y*o,t.width*o,t.height*o)};CanvasRenderContext.prototype.drawText=function(t){var e=this.ctx,o=this.style,i=this.scale;e.save();e.font=(t.fontStyle||o.fontStyle)+" "+(t.fontWeight||o.fontWeight)+" "+o.fontSize+" "+o.fontFamily;e.textAlign=t.textAlign||o.textAlign;e.textBaseline="bottom";var n=t.x*i,r=t.y*i,a=this.clipString(t);e.fillText(a,n,r+o.fontHeight);this.drawTextDecorationLine(a,n,r,t.textDecoration||o.textDecoration);e.restore()};CanvasRenderContext.prototype.clipString=function(t){var e=this.ctx,o=this.scale,i=t.text,n=t.maxWidth,r=e.measureText(i);n*=o;if(r.width>n){var a=Math.floor(n/r.width*i.length);return t.text.substr(0,a)}return i};CanvasRenderContext.prototype.drawTextDecorationLine=function(t,e,o,i){var n;switch(i){case"underline":n=.9;break;case"overline":n=.1;break;case"line-through":n=.5;break;default:return}var r=this.ctx,a=this.style.fontHeight,s=r.measureText(t).width;switch(r.textAlign){case"center":e-=s/2;break;case"right":e-=s}r.lineWidth=1;r.beginPath();var c=a*n+o;r.moveTo(e,c);r.lineTo(e+s,c);r.stroke()};CanvasRenderContext.prototype.clear=function(){var t=this.ctx,e=this.dom;t.clearRect(0,0,e.width,e.height)};CanvasRenderContext.prototype.getImageData=function(){var t=this.ctx,e=this.dom;return t.getImageData(0,0,e.width,e.height)};CanvasRenderContext.prototype.getDataUrl=function(){return this.dom.toDataURL()};return CanvasRenderContext}();t.CanvasRenderContext=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e;!function(t){t[t.Unknown=0]="Unknown";t[t.InvalidOptions=1]="InvalidOptions";t[t.InvalidBarcodeType=2]="InvalidBarcodeType";t[t.InvalidRenderType=3]="InvalidRenderType";t[t.MethodNotImplement=4]="MethodNotImplement";t[t.InvalidText=5]="InvalidText";t[t.InvalidCharacter=6]="InvalidCharacter";t[t.TextTooLong=7]="TextTooLong";t[t.GroupSizeOverflow=8]="GroupSizeOverflow"}(e=t._errorCode||(t._errorCode={}));var o=function(t){__extends(BaseException,t);function BaseException(o){var i=t.call(this)||this;i.code=o||e.Unknown;return i}return BaseException}(Error);t.BaseException=o}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){t.ErrorCode=t._errorCode;var e=function(e){__extends(InvalidOptionsException,e);function InvalidOptionsException(o,i){void 0===i&&(i="");var n=e.call(this,t._errorCode.InvalidOptions)||this;n.name="InvalidOptionsException";n.message=JSON.stringify(o)+" is not valid options. "+i;n.descriptor={source:o,message:n.message};return n}return InvalidOptionsException}(t.BaseException);t.InvalidOptionsException=e;var o=function(e){__extends(InvalidBarcodeTypeException,e);function InvalidBarcodeTypeException(o){var i=e.call(this,t._errorCode.InvalidBarcodeType)||this;i.name="InvalidBarcodeTypeException";i.message=o+" is not support!";i.descriptor={source:o,message:i.message};return i}return InvalidBarcodeTypeException}(t.BaseException);t.InvalidBarcodeTypeException=o;var i=function(e){__extends(InvalidRenderException,e);function InvalidRenderException(o){var i=e.call(this,t._errorCode.InvalidRenderType)||this;i.name="InvalidRenderException";i.message=o+" is not support!";i.descriptor={source:o,message:i.message};return i}return InvalidRenderException}(t.BaseException);t.InvalidRenderException=i;var n=function(e){__extends(MethodNotImplementException,e);function MethodNotImplementException(o,i){var n=e.call(this,t._errorCode.MethodNotImplement)||this;n.name="MethodNotImplementException";n.message=o+" is not a method! "+i;n.descriptor={source:o,message:n.message};return n}return MethodNotImplementException}(t.BaseException);t.MethodNotImplementException=n;var r=function(e){__extends(InvalidTextException,e);function InvalidTextException(o,i){void 0===i&&(i="");var n=e.call(this,t._errorCode.InvalidText)||this;n.name="InvalidTextException";n.message=o?o+" is invalid. "+i:"Text is required.";n.descriptor={source:o,message:n.message};return n}return InvalidTextException}(t.BaseException);t.InvalidTextException=r;var a=function(e){__extends(InvalidCharacterException,e);function InvalidCharacterException(o){var i=e.call(this,t._errorCode.InvalidCharacter)||this;i.name="InvalidCharacterException";i.message=o+" is invalid.";i.descriptor={source:o,message:i.message};return i}return InvalidCharacterException}(t.BaseException);t.InvalidCharacterException=a;var s=function(e){__extends(TextTooLongException,e);function TextTooLongException(){var o=e.call(this,t._errorCode.TextTooLong)||this;o.name="TextTooLongException";o.message="Text is too long to encode";o.descriptor={source:null,message:o.message};return o}return TextTooLongException}(t.BaseException);t.TextTooLongException=s;var c=function(e){__extends(GroupSizeOverflowException,e);function GroupSizeOverflowException(o){var i=e.call(this,t._errorCode.GroupSizeOverflow)||this;i.name="GroupSizeOverflowException";i.message="Group size is "+o+". The max group size is 9.";i.descriptor={source:o,message:i.message};return i}return GroupSizeOverflowException}(t.BaseException);t.GroupSizeOverflowException=c}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){var e,o;e=t.barcode||(t.barcode={}),o=function(){function BarcodeRender(t,o){this.container=t;o.toSymbol();this.barcode=o;this.style=o.style;var i=this.style.unitValue;this.size={width:o.size.width*i,height:o.size.height*i};var n=function createRenderDom(t,e){var o;"svg"===t?(o=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("xmlns","http://www.w3.org/2000/svg"):o=document.createElement("canvas");o.setAttribute("width",e.width);o.setAttribute("height",e.height);return o}(this.style.renderType,this.size);switch(this.style.renderType){case"svg":this.context=new e.SVGRenderContext(n,this.style,i);break;case"canvas":this.context=new e.CanvasRenderContext(n,this.style,i);break;default:throw new e.InvalidRenderException(this.style.renderType)}t&&t.appendChild(n);this.renderDom=n}BarcodeRender.prototype.render=function(){var t=this.style,e=this.barcode.shapes,o=this.context;o.clear();o.setColor(t.color);o.setBackgroundColor(t.backgroundColor);e.forEach((function(t){"rect"===t.type&&o.drawRect(t);"text"===t.type&&o.drawText(t)}));return this};BarcodeRender.prototype.getImageData=function(){if(!this.context.getImageData)throw new e.MethodNotImplementException("getImageData","You are working with svg render.");return this.context.getImageData()};BarcodeRender.prototype.getDataUrl=function(){return this.context.getDataUrl()};BarcodeRender.prototype.destroy=function(){this.container&&this.container.removeChild(this.renderDom)};BarcodeRender.prototype.getSize=function(){return this.size};return BarcodeRender}(),e.BarcodeRender=o}(wijmo||(wijmo={}));!function(t){!function(t){function isFunction(t){return"function"==typeof t}function isNaN(t){return isFunction(Number.isNaN)?Number.isNaN(t):t!=t}function isNumberLike(t){return!isNaN(+t)}function str2Array(t){void 0===t&&(t="");return isFunction(Array.from)?Array.from(t):Array.prototype.slice.call(t)}function isEven(t){return t%2==0}function isOdd(t){return t%2==1}function toNumber(t,e){void 0===t&&(t="");void 0===e&&(e=0);if("number"==typeof t)return t;var o=parseFloat(t);return isNaN(o)?e:o}function deepMerge(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(null==t)throw new TypeError("Cannot convert undefined or null to object");e.forEach((function(e){if(e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(null!=e[o]&&"object"==typeof e[o]&&"object"==typeof t[o]?t[o]=deepMerge({},t[o]||{},e[o]):t[o]=e[o])}));return t}function strRepeat(t,e){if(isFunction(t.repeat))return t.repeat(e);var o=""+t;(e=+e)!=e&&(e=0);if(e<0)throw new RangeError("repeat count must be non-negative");if(e==1/0)throw new RangeError("repeat count must be less than infinity");e=Math.floor(e);if(0==o.length||0==e)return"";if(o.length*e>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");for(var i="",n=0;n<e;n++)i+=o;return i}var e={};t.Utils={isFunction:isFunction,isWindow:function isWindow(t){return!!t&&t===t.window},isDefined:function isDefined(t){return void 0!==t},isNaN:isNaN,isNumberLike:isNumberLike,sliceString:function sliceString(t,e,o){void 0===t&&(t="");void 0===e&&(e=1);for(var i=0,n=t.length,r=0;i<n;){o(t.substring(i,i+e),r);i+=e;r++}},sliceArray:function sliceArray(t,e,o){void 0===t&&(t=[]);void 0===e&&(e=1);for(var i=0,n=t.length,r=0;i<n;){o(t.slice(i,i+e),r);i+=e;r++}},str2Array:str2Array,combineTruthy:function combineTruthy(t){void 0===t&&(t="");var e=str2Array(t),o=[];e.forEach((function(t){if("0"===t)o.push(0);else if(o[o.length-1]&&0!==o[o.length]){var e=o.pop();o.push(++e)}else o.push(1)}));return o},convertRadix:function convertRadix(t,e){void 0===e&&(e=2);return(t=+t).toString(e)},isEven:isEven,isOdd:isOdd,toNumber:toNumber,getUnit:function getUnit(t){void 0===t&&(t="");var e=/[a-zA-Z]+/.exec(t);return e?e[0]:"px"},getMaxValue:function getMaxValue(t,e){void 0===e&&(e="length");var o=0;t.forEach((function(t){t[e]>o&&(o=t[e])}));return o},assign:function assign(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(isFunction(Object.assign))return Object.assign.apply(Object,[t].concat(e));if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),n=0;n<e.length;n++){var r=e[n];if(null!=r)for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])}return i},deepMerge:deepMerge,deepMergeAll:function deepMergeAll(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return deepMerge.apply(void 0,[{}].concat(t))},strRepeat:strRepeat,isInteger:function isInteger(t){return isFunction(Number.isInteger)?Number.isInteger(t):"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},fillArray:function fillArray(t,e){if(isFunction(t.fill))return t.fill(e);for(var o=0;o<t.length;o++)t[o]=e;return t},strPadStart:function strPadStart(t,e,o){if(isFunction(t.padStart))return t.padStart(e,o);e>>=0;o=String(void 0!==o?o:" ");if(t.length>e)return t;(e-=t.length)>o.length&&(o+=strRepeat(o,e/o.length));return o.slice(0,e)+String(t)},registerPlugin:function registerPlugin(t,o){e[t]=o},measureText:function measureText(t,o){return isFunction(e.measureText)?e.measureText(t,o):function _defaultMeasureText(t,e){return 1.4*toNumber(e.fontSize,12)}(0,o)},convertUnit:function convertUnit(t){return isFunction(e.convertUnit)?isNumberLike(t)?toNumber(t,12):e.convertUnit(t):function _defaultConvertUnit(t){return toNumber(t,12)}(t)},fixSize2PixelDefault:function fixSize2PixelDefault(t){return isNumberLike(t)?t+"px":t},loop:function loop(t,e){var o,i;if(isFinite(e)){o=0;i=e}else{o=e.from;i=e.to+1}for(;o<i;o++)t(o)},toZeroOnePattern:function toZeroOnePattern(t,e){var o=e?isEven:isOdd;return t.reduce((function(t,e,i){o(i)?t+=strRepeat("1",e):t+=strRepeat("0",e);return t}),"")},range:function range(t,e){for(var o=[];t<e;){o.push(t);t++}o.push(e);return o},makeEnums:function makeEnums(t){Object.defineProperty(t,"has",{configurable:!1,enumerable:!1,writable:!1,value:function(t){return this.$br[t]}});var e=Object.keys(t).reduce((function(e,o){e[t[o]]=o;return e}),{});Object.defineProperty(t,"$br",{configurable:!1,enumerable:!1,writable:!1,value:e})}}}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(){function Option(t){void 0===t&&(t={});this.originConfig=t;this.type=t.type;this.penddingMerge=[]}Option.setCustomDefaultOptions=function(t){Option.CustomDefaultOptions=t};Option.prototype.spawn=function(e){return new Option(t.Utils.deepMergeAll(this.originConfig,e))};Option.prototype.merge=function(t){this.penddingMerge.unshift(t)};Option.prototype._getUnitValue=function(e){e=t.Utils.fixSize2PixelDefault(e);return t.Utils.convertUnit(e)};Option.prototype.getMergedOption=function(){return t.Utils.deepMergeAll.apply(t.Utils,[Option.DefaultOptions].concat(this.penddingMerge,[Option.CustomDefaultOptions,this.originConfig]))};Option.prototype.getConfig=function(e){var o=this.getMergedOption(),i=o.text,n=o.quietZone,r=o.height,a=o.labelPosition,s=o.desiredSize,c=o.showLabel,u=o.font,h=o.backgroundColor,d=o.color,p=o.renderType,l=o.unitSize,f={text:i,isLabelBottom:!1,hideExtraChecksum:o.hideExtraChecksum};if(!t.Utils.isDefined(i))throw new t.InvalidTextException;f.text+="";t.Utils.isDefined(a)&&(f.isLabelBottom="top"!==a);(u=t.Utils.deepMergeAll(u)).fontSize=t.Utils.fixSize2PixelDefault(u.fontSize);var g=t.Utils.measureText(i,u);f.showLabel=c;e=e||this._getUnitValue(l);var y=c?g/e:0;f.fontSizeInUnit=y;var m={};for(var v in n)if(n.hasOwnProperty(v)){var x=n[v];if(t.Utils.isNumberLike(x)){var b=+x;m[v]=b}else{var w=t.Utils.convertUnit(x);m[v]=w/e}}f.quietZone=m;if(s){f.containerWidth=t.Utils.convertUnit(t.Utils.fixSize2PixelDefault(s.width));f.containerHeight=t.Utils.convertUnit(t.Utils.fixSize2PixelDefault(s.height));f.desiredSize=s}if(t.Utils.isDefined(r))if(s){var _=c?f.containerHeight-g:f.containerHeight;f.height=_/e-m.top-m.bottom}else t.Utils.isNumberLike(r)?f.height=+r-y-m.top-m.bottom:f.height=t.Utils.convertUnit(r)/e-y-m.top-m.bottom;return{config:o,encodeConfig:f,style:t.Utils.deepMergeAll({backgroundColor:h,color:d,renderType:p,unitValue:e,fontSize:u.fontSize,fontHeight:g},u)}};Option.prototype.getOriginConfig=function(){return this.originConfig};Option.prototype.getType=function(){return this.type};Option.DefaultOptions={renderType:"canvas",unitSize:"1px",color:"rgb(0,0,0)",backgroundColor:"rgb(255,255,255)",font:{fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",textDecoration:"none",textAlign:"center",fontSize:"12px"},hideExtraChecksum:!1,quietZone:{top:0,right:0,bottom:0,left:0}};Option.CustomDefaultOptions={};return Option}();t.Option=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){t._getDefaultConfig=function _getDefaultConfig(e,o){var i=[{type:o}];(function _getProtos(t){var e=[];if(t&&t instanceof Function){var o=t;e.push(o);for(;o;){var i=Object.getPrototypeOf(o);if(!i||i===Object||i===Function.prototype)break;o=i;e.push(o)}}return e})(e).forEach((function(t){t.DefaultConfig&&i.unshift(t.DefaultConfig)}));return t.Utils.deepMergeAll.apply(t.Utils,[t.Option.DefaultOptions].concat(i,[t.Option.CustomDefaultOptions]))};var e=function(){function _EnumDictionary(t,e){this._keys={};this._values={};for(var o in t)if("string"==typeof t[o]){var i=parseInt(o),n=e(t[i]);this._keys[i]=n;this._values[n]=i}}_EnumDictionary.prototype.getEnumByString=function(t){var e=this._values[t];if(void 0===e)throw"Unknown Barcode internal value '"+t+"'";return e};_EnumDictionary.prototype.getStringByEnum=function(t){return this._keys[t]};return _EnumDictionary}();t._EnumDictionary=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(){function Area(t,e){void 0===t&&(t=0);void 0===e&&(e=0);this.x=0;this.y=0;this.style={padding:{top:0,right:0,bottom:0,left:0},border:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0}};this.width=t;this.height=e;this.children=[];this._updateBox()}Area.prototype.append=function(t){this.children.push(t)};Area.prototype._makeRect=function(t,e,o,i){return{x:t,y:e,height:i,width:o,type:"rect"}};Area.prototype.toShapes=function(){var t=this,e=t.x,o=t.y,i=t.width,n=t.height,r=t.style,a=r.border,s=r.margin,c=[],u=a.left+a.right+i,h=a.top+a.bottom+n,d=e+s.left,p=o+s.top;a.top&&c.push(this._makeRect(d,p,u,a.top));a.right&&c.push(this._makeRect(d+u-a.right,p,a.right,h));a.bottom&&c.push(this._makeRect(d,p+h-a.bottom,u,a.bottom));a.left&&c.push(this._makeRect(d,p,a.left,h));return c};Area.prototype.getSize=function(){var t=this.width,e=this.height,o=this.offsetBox;return{width:t+o.width,height:e+o.height}};Area.prototype.visiable=function(){return this.width>0&&this.height>0};Area.prototype.setX=function(t){this.x=t;this._updateBox()};Area.prototype.setY=function(t){this.y=t;this._updateBox()};Area.prototype.updateContentSize=function(t,e){this.width=t;this.height=e;this._updateBox()};Area.prototype._fixOpt=function(e,o){if(t.Utils.isNumberLike(e[o])){var i=e[o];e[o]={top:i,right:i,bottom:i,left:i}}};Area.prototype.setStyle=function(e){this._fixOpt(e,"padding");this._fixOpt(e,"border");this._fixOpt(e,"margin");this.style=t.Utils.deepMergeAll(this.style,e);this._updateBox()};Area.prototype._updateBox=function(){var t=this,e=t.x,o=t.y,i=t.width,n=t.height,r=t.style,a=r.padding,s=r.border,c=r.margin;this.offsetBox={x:e+a.left+s.left+c.left,y:o+a.top+s.top+c.top,width:c.left+s.left+s.right+c.right,height:c.top+s.top+s.bottom+c.bottom};var u=i-a.left-a.right,h=n-a.top-a.bottom;this.contentBox={width:u>=0?u:0,height:h>=0?h:0}};return Area}();t.Area=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(t){__extends(HorizontalLayoutArea,t);function HorizontalLayoutArea(){return null!==t&&t.apply(this,arguments)||this}HorizontalLayoutArea.prototype.toShapes=function(){this._updateContentSize();var e=this.children,o=this.offsetBox,i=t.prototype.toShapes.call(this),n=o.y,r=0;e.forEach((function(t){var e=o.x+r;t.toShapes().forEach((function(t){t.x+=e;t.y+=n;i.push(t)}));var a=t.getSize();r+=a.width}));return i};HorizontalLayoutArea.prototype.getSize=function(){this._updateContentSize();return t.prototype.getSize.call(this)};HorizontalLayoutArea.prototype._updateContentSize=function(){var t=this.children,e=this.style.padding,o=t.reduce((function(t,e){var o=e.getSize();t.height=Math.max(o.height,t.height);t.width+=o.width;return t}),{width:0,height:0});this.updateContentSize(o.width+e.left+e.right,o.height+e.top+e.bottom)};return HorizontalLayoutArea}(t.Area);t.HorizontalLayoutArea=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(t){__extends(VerticalLayoutArea,t);function VerticalLayoutArea(){return null!==t&&t.apply(this,arguments)||this}VerticalLayoutArea.prototype.toShapes=function(){this._updateContentSize();var e=this.children,o=this.offsetBox,i=t.prototype.toShapes.call(this),n=o.x,r=0;e.forEach((function(t){var e=o.y+r;t.toShapes().forEach((function(t){t.x+=n;t.y+=e;i.push(t)}));var a=t.getSize();r+=a.height}));return i};VerticalLayoutArea.prototype.getSize=function(){this._updateContentSize();return t.prototype.getSize.call(this)};VerticalLayoutArea.prototype._updateContentSize=function(){var t=this.children,e=this.style.padding,o=t.reduce((function(t,e){var o=e.getSize();t.width=Math.max(o.width,t.width);t.height+=o.height;return t}),{width:0,height:0});this.updateContentSize(o.width+e.left+e.right,o.height+e.top+e.bottom)};return VerticalLayoutArea}(t.Area);t.VerticalLayoutArea=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(t){__extends(MatrixSymbolArea,t);function MatrixSymbolArea(e,o,i){var n=t.call(this,e,o)||this;n._xPosition=0;n._yPosition=0;n._lastMaxHeight=0;n._rowHeight=0;n._rowHeight=i;return n}MatrixSymbolArea.prototype.append=function(t,e){if(t&&e){this._autoWrap(t);var o=this.children,i={width:t,height:e,x:this._xPosition,y:this._yPosition};o.push(i);this._xPosition+=t;this._rowHeight||(this._lastMaxHeight=Math.max(this._lastMaxHeight,e))}};MatrixSymbolArea.prototype._autoWrap=function(t){if(this._checkNeedWrap(t)){this._yPosition+=this._rowHeight||this._lastMaxHeight;this._xPosition=0;this._lastMaxHeight=0}};MatrixSymbolArea.prototype._checkNeedWrap=function(t){var e=this._xPosition;return this.contentBox.width-e-t<0};MatrixSymbolArea.prototype.space=function(t){void 0===t&&(t=1);this._autoWrap(t);this._xPosition+=t};MatrixSymbolArea.prototype.toShapes=function(){if(!this.visiable())return[];var e=this.offsetBox,o=this.children,i=t.prototype.toShapes.call(this);o.forEach((function(t){t.x+=e.x;t.y+=e.y;t.type="rect";i.push(t)}));return i};return MatrixSymbolArea}(t.Area);t.MatrixSymbolArea=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(e){__extends(SymbolArea,e);function SymbolArea(t,o){var i=e.call(this,t,o)||this;i._lastIsBar=!1;i._cacheNumber=0;i._position=0;return i}SymbolArea.prototype.append=function(t,e,o){if(t){var i=this.children,n={width:t,x:this._position,barHeight:e,offsetY:o};i.push(n);this._position+=t}};SymbolArea.prototype.space=function(t){void 0===t&&(t=1);this._position+=t};SymbolArea.prototype._appendModule=function(t){var e="1"===t;if(e!==this._lastIsBar){this._flash();this._lastIsBar=e}this._cacheNumber++};SymbolArea.prototype._flash=function(){if(this._cacheNumber>0){this._lastIsBar?this.append(this._cacheNumber):this.space(this._cacheNumber);this._cacheNumber=0}};SymbolArea.prototype.fromPattern=function(e){var o=this;t.Utils.str2Array(e).forEach((function(t){return o._appendModule(t)}));this._flash()};SymbolArea.prototype.getContentBox=function(){return this.contentBox};SymbolArea.prototype.toShapes=function(){if(!this.visiable())return[];var t=this.offsetBox,o=this.children,i=this.contentBox.height,n=e.prototype.toShapes.call(this);o.forEach((function(e){n.push({type:"rect",x:e.x+t.x,y:t.y+(e.offsetY||0),width:e.width,height:e.barHeight||i})}));return n};return SymbolArea}(t.Area);t.SymbolArea=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(t){__extends(LabelArea,t);function LabelArea(e,o,i){var n=t.call(this,e,o)||this;n._textAlign=i;return n}LabelArea.prototype.toShapes=function(){if(!this.visiable())return[];var e=this.offsetBox,o=this.children,i=this._textAlign,n=this.contentBox.width,r=t.prototype.toShapes.call(this);o.forEach((function(t){var o=e.x;switch(i){case"center":o+=n/2;break;case"right":o+=n}r.push({x:o+(t.x||0),y:e.y+(t.y||0),textAlign:i,maxWidth:n,type:"text",text:t.text})}));return r};return LabelArea}(t.Area);t.LabelArea=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(){function MatrixBuilder(t,e){this.data=[];this.data=[];this.row=t;this.col=e}MatrixBuilder.prototype.add=function(e,o,i){(this.data[e]||t.Utils.fillArray(new Array(this.col),null))[o]=i;this.data[e]=[]};MatrixBuilder.prototype.toMatrix=function(){var e=this,o=[];t.Utils.loop((function(i){o.push(e.data[i]||t.Utils.fillArray(new Array(e.col),null))}),this.row);return o};return MatrixBuilder}();t.MatrixBuilder=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(){function BitBuffer(t){void 0===t&&(t=[]);this.buffer=t;this.length=8*t.length;this.index=0}BitBuffer.prototype.putBit=function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0);t&&(this.buffer[e]|=128>>>this.length%8);this.length+=1};BitBuffer.prototype.putBitAt=function(t,e){for(var o=this.length,i=new BitBuffer,n=0;n<o;n++)n===e?i.putBit(t):i.putBit(this.getAt(n));this.buffer=i.buffer;this.length=i.length};BitBuffer.prototype.put=function(t,e){for(var o=0;o<e;o+=1)this.putBit(1==(t>>>e-o-1&1))};BitBuffer.prototype.putBits=function(t){this.put(parseInt(t,2),t.length)};BitBuffer.prototype.getAt=function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)};BitBuffer.prototype.getBuffer=function(){return this.buffer};BitBuffer.prototype.getGroupedBits=function(t){for(var e=0,o=[];e<this.length;){for(var i="",n=e,r=e+t;n<r;n++)i+=this.getAt(n)?1:0;e=r;o.push(parseInt(i,2))}return o};BitBuffer.prototype.next=function(){this.index++;return this.getAt(this.index-1)};return BitBuffer}();t.BitBuffer=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(){function BarcodeEncoder(t){this._option=t;this.shapes=[];this.size={width:0,height:0};this.applyDesiredSize()}BarcodeEncoder.prototype.validate=function(){};BarcodeEncoder.prototype.applyDesiredSize=function(t){var e=this._option.getConfig(t),o=e.config,i=e.encodeConfig,n=e.style;this.config=o;this.encodeConfig=i;this.style=n;this.useDesiredSize=!!i.desiredSize};BarcodeEncoder.prototype.afterApplyDesiredSize=function(){};BarcodeEncoder.prototype.toSymbol=function(){this.validate();var t=this.calculateData();if(this.useDesiredSize){this.convertToShape(t,!0);this.adjustDesiredSize();this.afterApplyDesiredSize()}this.convertToShape(t)};return BarcodeEncoder}();t.BarcodeEncoder=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(e){__extends(TwoDimensionalBarcode,e);function TwoDimensionalBarcode(){return null!==e&&e.apply(this,arguments)||this}TwoDimensionalBarcode.prototype.adjustDesiredSize=function(){var t=this.size,e=t.width,o=t.height,i=this.encodeConfig,n=i.desiredSize,r=i.containerWidth,a=i.containerHeight,s=Math.min(r/e,a/o);n.forceRounding&&(s=(s=~~s)<1?1:s);this.applyDesiredSize(s)};TwoDimensionalBarcode.prototype.convertToShape=function(e,o){var i=this.encodeConfig.quietZone,n=e[0].length+i.right+i.left,r=e.length+i.top+i.bottom,a=new t.VerticalLayoutArea,s=new t.MatrixSymbolArea(n,r,1);s.setStyle({padding:{top:i.top,right:i.right,bottom:i.bottom,left:i.left}});a.append(s);if(!o){e.forEach((function(t){t.forEach((function(t){t?s.append(1,1):s.space()}))}));this.shapes=a.toShapes()}this.size=a.getSize()};return TwoDimensionalBarcode}(t.BarcodeEncoder);t.TwoDimensionalBarcode=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){var e=function(e){__extends(OneDimensionalBarcode,e);function OneDimensionalBarcode(t){var o=this;t.merge(OneDimensionalBarcode.DefaultConfig);(o=e.call(this,t)||this).label="";return o}OneDimensionalBarcode.prototype.adjustDesiredSize=function(){var t=this.size.width,e=this.encodeConfig,o=e.desiredSize,i=e.containerWidth/t;o.forceRounding&&(i=(i=~~i)<1?1:i);this.applyDesiredSize(i)};OneDimensionalBarcode.prototype.convertToShape=function(e,o){var i=this.label,n=this.encodeConfig,r=n.quietZone,a=n.isLabelBottom,s=n.height,c=n.showLabel,u=n.fontSizeInUnit,h=this.style.textAlign,d=0;i&&c&&(d=u);var p=e.length+r.right+r.left,l=s+r.top+r.bottom,f=new t.VerticalLayoutArea,g=new t.SymbolArea(p,l);g.setStyle({padding:{top:r.top,right:r.right,bottom:r.bottom,left:r.left}});var y=g.getSize(),m=new t.LabelArea(y.width,d,h);if(a){f.append(g);f.append(m)}else{f.append(m);f.append(g)}if(!o){g.fromPattern(e);m.append({text:i});this.shapes=f.toShapes()}this.size=f.getSize()};OneDimensionalBarcode.DefaultConfig={height:60,showLabel:!0,labelPosition:"bottom"};return OneDimensionalBarcode}(t.BarcodeEncoder);t.OneDimensionalBarcode=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){t.Constants={FNC1:"Ï",FNC2:"Ê",FNC3:"É",DataMatrixFNC1:" ",DataMatrixMacro05:" ",DataMatrixMacro06:" "}}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){t.encoders={};var e=function(){function Barcode(){for(var e,o,i,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(n.length>=3)e=n[0],o=n[1],i=n[2];else if(2===n.length)t.Utils.isFunction(n[1])?(o=n[0],i=n[1]):(e=n[0],o=n[1]);else{if(1!==n.length)throw new t.MethodNotImplementException("constructor","The arguments is invalid.");o=n[0]}this.dom="string"==typeof e?document.querySelector(e):e;this.callback=i&&i.bind(this);this.setOption(o)}Barcode.getImageData=function(t){void 0===t&&(t={});return new Barcode(t).getImageData()};Barcode.getDataUrl=function(t){void 0===t&&(t={});return new Barcode(t).getDataUrl()};Barcode.setDefaultOptions=function(e){void 0===e&&(e={});t.Option.setCustomDefaultOptions(e)};Barcode.registerEncoder=function(e,o){t.encoders[e]=o;Barcode.supportType.push(e)};Barcode.registerPlugin=function(e,o){t.Utils.registerPlugin(e,o)};Barcode.prototype.mergeOption=function(t){var e=this.option.spawn(t);this.update(e);return this};Barcode.prototype.setOption=function(e){this.update(new t.Option(e));return this};Barcode.prototype.getOption=function(){return this.option.getMergedOption()};Barcode.prototype.update=function(e){var o=e.getType(),i=t.encoders[o];if(!i)throw new t.InvalidBarcodeTypeException(o);var n=new i(e);this.destroy();var r=new t.BarcodeRender(this.dom,n);r.render();this.render=r;this.option=e;t.Utils.isFunction(this.callback)&&this.callback()};Barcode.prototype.refresh=function(){this.render.render();t.Utils.isFunction(this.callback)&&this.callback()};Barcode.prototype.getImageData=function(){return this.render.getImageData()};Barcode.prototype.getDataUrl=function(){return this.render.getDataUrl()};Barcode.prototype.getSize=function(){return this.render.getSize()};Barcode.prototype.destroy=function(){if(this.render){this.render.destroy();this.render=null}};Barcode.supportType=[];Barcode.constants=t.Constants;Barcode.ErrorCode=t.ErrorCode;return Barcode}();t.Barcode=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){t.Barcode.registerPlugin("measureText",(function(t,e){var o=document.createElement("span");o.style.visibility="hidden";o.style.position="absolute";o.style.lineHeight="normal";o.textContent=t;Object.keys(e).forEach((function(t){o.style[t]=e[t]}));document.body.appendChild(o);var i=o.getBoundingClientRect();document.body.removeChild(o);return i.height}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){t.Barcode.registerPlugin("convertUnit",(function(t){var e=document.createElement("div");e.style.visibility="hidden";e.style.position="fixed";e.style.padding="0";e.style.border="0";e.style.width=t;document.body.appendChild(e);var o=e.getBoundingClientRect();document.body.removeChild(e);return o.width}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(t){!function(t){t[t.Canvas=0]="Canvas";t[t.Svg=1]="Svg"}(t.RenderType||(t.RenderType={}));!function(t){t[t.Top=0]="Top";t[t.Bottom=1]="Bottom"}(t.LabelPosition||(t.LabelPosition={}));!function(t){t[t.OneToTwo=0]="OneToTwo";t[t.OneToThree=1]="OneToThree"}(t.NarrowToWideRatio||(t.NarrowToWideRatio={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(e){var o=function(){function _RenderTypeConvertor(){}_RenderTypeConvertor.stringToEnum=function(t){switch(t){case"canvas":return e.RenderType.Canvas;case"svg":return e.RenderType.Svg}throw"Unknown Barcode internal renderType '"+t+"'"};_RenderTypeConvertor.enumToString=function(o){return e.RenderType[t.asEnum(o,e.RenderType)].toLowerCase()};return _RenderTypeConvertor}();e._RenderTypeConvertor=o;var i=function(){function _LabelPositionConvertor(){}_LabelPositionConvertor.stringToEnum=function(t){switch(t){case"top":return e.LabelPosition.Top;case"bottom":return e.LabelPosition.Bottom}throw"Unknown Barcode internal labelPosition '"+t+"'"};_LabelPositionConvertor.enumToString=function(o){return e.LabelPosition[t.asEnum(o,e.LabelPosition)].toLowerCase()};return _LabelPositionConvertor}();e._LabelPositionConvertor=i;var n=function(){function _NarrowWideRatioConvertor(){}_NarrowWideRatioConvertor.stringToEnum=function(t){switch(t.toString()){case"2":return e.NarrowToWideRatio.OneToTwo;case"3":return e.NarrowToWideRatio.OneToThree}throw"Unknown nwRatio internal value '"+t+"'"};_NarrowWideRatioConvertor.enumToString=function(o){var i;switch(t.asEnum(o,e.NarrowToWideRatio)){case e.NarrowToWideRatio.OneToTwo:i="2";break;case e.NarrowToWideRatio.OneToThree:i="3"}return i};return _NarrowWideRatioConvertor}();e._NarrowWideRatioConvertor=n}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){!function(e){var o=function(o){__extends(BarcodeBase,o);function BarcodeBase(e,i){var n=o.call(this,e,null,!0)||this;n._state={};n._isUpd=0;n._isValid=!0;n._aw=!1;n._wZoom=1;n.isValidChanged=new t.Event;var r=n.getTemplate();n.applyTemplate("wj-barcode wj-control",r,{});t.isIE()||(n.hostElement.style.lineHeight="0px");n._state=n._getDefaults();n._isUpd++;n.initialize(i);n._updateSize();n._isUpd--;n._mergeOptions({});n.invalidate();return n}BarcodeBase.prototype.initialize=function(t){this._isUpd++;try{o.prototype.initialize.call(this,t)}finally{this._isUpd--}!this._isUpd&&t&&Object.keys(t).length&&this._mergeOptions({})};BarcodeBase._getClassDefaults=function(){var t=this.type;return e._getDefaultConfig(e.encoders[t],t)};BarcodeBase.prototype._getDefaults=function(){var t=this.constructor;t._defaults||(t._defaults=t._getClassDefaults());return e.Utils.deepMergeAll(t._defaults)};Object.defineProperty(BarcodeBase.prototype,"value",{get:function(){return this._getProp("text")},set:function(t){this._setProp("text",t)},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"quietZone",{get:function(){return this._getProp("quietZone")},set:function(t){this._setProp("quietZone",t)},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"renderType",{get:function(){return e._RenderTypeConvertor.stringToEnum(this._getProp("renderType"))},set:function(t){this._setProp("renderType",e._RenderTypeConvertor.enumToString(t))},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"color",{get:function(){return this._getProp("color")},set:function(t){this._setProp("color",t)},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"backgroundColor",{get:function(){return this._getProp("backgroundColor")},set:function(t){this._setProp("backgroundColor",t)},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"hideExtraChecksum",{get:function(){return this._getProp("hideExtraChecksum")},set:function(t){this._setProp("hideExtraChecksum",t)},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"font",{get:function(){return this._getProp("font")},set:function(t){this._setProp("font",t)},enumerable:!0,configurable:!0});Object.defineProperty(BarcodeBase.prototype,"isValid",{get:function(){return this._isValid},enumerable:!0,configurable:!0});BarcodeBase.prototype.onIsValidChanged=function(t){this.isValidChanged.raise(this,t)};BarcodeBase.prototype.refresh=function(t){void 0===t&&(t=!0);o.prototype.refresh.call(this,t);t?this._updateSize():this._bc.refresh()};BarcodeBase.prototype.getImageData=function(){return this._bc.getImageData()};BarcodeBase.prototype.getDataUrl=function(){return this._bc.getDataUrl()};BarcodeBase.prototype.getSize=function(){var e=new t.Size,o=this._bc.getSize();if(o){e.width=o.width;e.height=o.height}return e};BarcodeBase.prototype._mergeOptions=function(t){var o,n=this._bc,r=i(this._state,t);if(!this._isUpd){var a=r.text;if(null==a||""===a){if(n){n.destroy();this._bc=n=null}}else try{n?n.setOption(r):this._bc=n=new e.Barcode(this.hostElement,r)}catch(t){o=t}}var s=!0;if(o){if(n){n.destroy();this._bc=n=null}if(o.code!==e._errorCode.InvalidText)throw o;s=!1}this._state=r;this._setValid(s)};BarcodeBase.prototype._setValid=function(e){if(this._isValid!==e){this._isValid=e;t.toggleClass(this.hostElement,"wj-state-invalid",!e);this.onIsValidChanged()}};BarcodeBase.prototype._setProp=function(t,e){var o;this._mergeOptions(((o={})[t]=e,o))};BarcodeBase.prototype._getProp=function(t){var e=this._bc;return this._state[t]||e&&e.getOption()[t]};BarcodeBase.prototype._updateSize=function(){if(this.hostElement){var t=BarcodeBase._getContentSize(this.hostElement),e=this._prevSz,o=null,i=null,n=1,r=!0;if(this._getAw()){n=this._getWzoom();r=(i=t.height/n)===this._prevH;this._prevH=i;e=this._prevSz=null}else if(!e||!t.equals(e)){o={width:t.width+"px",height:t.height+"px",forceRounding:!1};r=!1;this._prevSz=t;this._prevH=null}r||this._mergeOptions({desiredSize:o,height:i,unitSize:n})}};BarcodeBase._getContentSize=function(e){var o=getComputedStyle(e);return new t.Size(e.offsetWidth-parseFloat(o.paddingLeft)-parseFloat(o.paddingRight)-parseFloat(o.borderLeftWidth)-parseFloat(o.borderRightWidth),e.offsetHeight-parseFloat(o.paddingTop)-parseFloat(o.paddingBottom)-parseFloat(o.borderTopWidth)-parseFloat(o.borderBottomWidth))};BarcodeBase.prototype._getAw=function(){return this._aw};BarcodeBase.prototype._setAw=function(t){if(this._aw!==t){this._aw=t;this._updateSize()}};BarcodeBase.prototype._getWzoom=function(){return this._wZoom};BarcodeBase.prototype._setWzoom=function(e){t.asNumber(e);t.assert(e>=1,"autoWidthZoom value should be equal or greater than 1");if(this._wZoom!==e){this._wZoom=e;this._getAw()&&this._updateSize()}};BarcodeBase.controlTemplate="";return BarcodeBase}(t.Control);e.BarcodeBase=o;var i="function"==typeof Object.assign?Object.assign:function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];for(var i=0,n=e;i<n.length;i++){var r=n[i];if(null!=r)for(var a in r)t[a]=r[a]}return t}}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));!function(t){t.barcode||(t.barcode={}),t._registerModule("wijmo.barcode",t.barcode)}(wijmo||(wijmo={}));