UNPKG

rescode

Version:

Generate Codes (EAN13, QRCODE ..)

635 lines (634 loc) 34 kB
var BWIPJS = require("../bwip.js"); // file: bwipp/code93ext.js // // This code was automatically generated from: // Barcode Writer in Pure PostScript - Version 2013-01-25 // // Copyright (c) 2011-2013 Mark Warren // Copyright (c) 2004-2013 Terry Burton // // See the LICENSE file in the bwip.js root directory // for the extended copyright notice. // BEGIN code93ext if (!BWIPJS.bwipp["renlinear"]) BWIPJS.load("bwipp/renlinear.js"); if (!BWIPJS.bwipp["code93"]) BWIPJS.load("bwipp/code93.js"); BWIPJS.bwipp["code93ext"]=function() { this.dict["renlinear"]=BWIPJS.bwipp["renlinear"]; this.dict["code93"]=BWIPJS.bwipp["code93"]; function $f0(){ return -1; } function $f1(){ var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.ptr--; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f2(){ this.stk[this.ptr++]=true; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f3(){ var a=/^\s*([^\s]+)(\s+.*)?$/.exec(this.stk[this.ptr-1]); if (a) { this.stk[this.ptr-1]=BWIPJS.psstring(a[2]===undefined?"":a[2]); this.stk[this.ptr++]=BWIPJS.psstring(a[1]); this.stk[this.ptr++]=true; } else { this.stk[this.ptr-1]=false; } this.stk[this.ptr++]=false; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f0; var t0=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t0.call(this)==-1) return -1; } this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]); var t=this.stk[this.ptr-2].toString(); this.stk[this.ptr-1].assign(0,t); this.stk[this.ptr-2]=this.stk[this.ptr-1].subset(0,t.length); this.ptr--; this.stk[this.ptr++]=BWIPJS.psstring("="); var h=this.stk[this.ptr-2]; var t=h.indexOf(this.stk[this.ptr-1]); if (t==-1) { this.stk[this.ptr-1]=false; } else { this.stk[this.ptr-2]=h.subset(t+this.stk[this.ptr-1].length); this.stk[this.ptr-1]=h.subset(t,this.stk[this.ptr-1].length); this.stk[this.ptr++]=h.subset(0,t); this.stk[this.ptr++]=true; } this.stk[this.ptr++]=true; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f1; this.stk[this.ptr++]=$f2; var t1=this.stk[--this.ptr]; var t2=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t2.call(this)==-1) return -1; } else { if (t1.call(this)==-1) return -1; } } function $f4(){ this.stk[this.ptr++]=1; this.stk[this.ptr-1]={}; this.dict=this.stk[--this.ptr]; this.dstk.push(this.dict); var t=this.dstk.get("options"); if (t===undefined) throw new Error("dict: options: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=$f3; var t3=this.stk[--this.ptr]; while (true) { if (t3.call(this)==-1) break; } this.stk[this.ptr++]=this.dict; this.dstk.pop(); this.dict=this.dstk[this.dstk.length-1]; this.stk[this.ptr++]="options"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f5(){ this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f6(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; var t=this.dstk.get("msg"); if (t===undefined) throw new Error("dict: msg: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; var t=this.dstk.get("j"); if (t===undefined) throw new Error("dict: j: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; var t=this.dstk.get("j"); if (t===undefined) throw new Error("dict: j: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]="j"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.ptr--; this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=0; this.stk[this.ptr++]=3; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.stk[this.ptr-1]=parseInt(this.stk[this.ptr-1],10); var t=this.dstk.get("msg"); if (t===undefined) throw new Error("dict: msg: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; var t=this.dstk.get("j"); if (t===undefined) throw new Error("dict: j: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr++]=3; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=3; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; } function $f7(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; var t=this.dstk.get("msg"); if (t===undefined) throw new Error("dict: msg: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; var t=this.dstk.get("j"); if (t===undefined) throw new Error("dict: j: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; var t=this.dstk.get("j"); if (t===undefined) throw new Error("dict: j: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]="j"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="barcode"; //ident var t=this.dstk.get("msg"); if (t===undefined) throw new Error("dict: msg: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; var t=this.dstk.get("j"); if (t===undefined) throw new Error("dict: j: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; return -1; } function $f8(){ this.stk[this.ptr++]=BWIPJS.psstring("^"); var h=this.stk[this.ptr-2]; var t=h.indexOf(this.stk[this.ptr-1]); if (t==-1) { this.stk[this.ptr-1]=false; } else { this.stk[this.ptr-2]=h.subset(t+this.stk[this.ptr-1].length); this.stk[this.ptr-1]=h.subset(t,this.stk[this.ptr-1].length); this.stk[this.ptr++]=h.subset(0,t); this.stk[this.ptr++]=true; } this.stk[this.ptr++]=$f6; this.stk[this.ptr++]=$f7; var t8=this.stk[--this.ptr]; var t9=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t9.call(this)==-1) return -1; } else { if (t8.call(this)==-1) return -1; } } function $f9(){ this.stk[this.ptr++]="msg"; //ident var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="j"; //ident this.stk[this.ptr++]=0; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=$f8; var t10=this.stk[--this.ptr]; while (true) { if (t10.call(this)==-1) break; } } function $f10(){ var t=this.dstk.get("newtext"); if (t===undefined) throw new Error("dict: newtext: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("k"); if (t===undefined) throw new Error("dict: k: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=BWIPJS.psstring(" "); this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; } function $f11(){ this.stk[this.ptr++]=1; } function $f12(){ this.stk[this.ptr++]=2; } function $f13(){ this.stk[this.ptr++]="i"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="extchar"; //ident var t=this.dstk.get("extencs"); if (t===undefined) throw new Error("dict: extencs: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="extlen"; //ident var t=this.dstk.get("extchar"); if (t===undefined) throw new Error("dict: extchar: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("newcode"); if (t===undefined) throw new Error("dict: newcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("j"); if (t===undefined) throw new Error("dict: j: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("extchar"); if (t===undefined) throw new Error("dict: extchar: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; var t=this.dstk.get("newtext"); if (t===undefined) throw new Error("dict: newtext: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("k"); if (t===undefined) throw new Error("dict: k: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; var t=this.dstk.get("extlen"); if (t===undefined) throw new Error("dict: extlen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()!=this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]!=this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f10; var t12=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t12.call(this)==-1) return -1; } this.stk[this.ptr++]="j"; //ident var t=this.dstk.get("j"); if (t===undefined) throw new Error("dict: j: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("extlen"); if (t===undefined) throw new Error("dict: extlen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="k"; //ident var t=this.dstk.get("k"); if (t===undefined) throw new Error("dict: k: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("extlen"); if (t===undefined) throw new Error("dict: extlen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f11; this.stk[this.ptr++]=$f12; var t13=this.stk[--this.ptr]; var t14=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t14.call(this)==-1) return -1; } else { if (t13.call(this)==-1) return -1; } this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f14(){ this.stk[this.ptr++]="i"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="txtentry"; //ident var t=this.dstk.get("txt"); if (t===undefined) throw new Error("dict: txt: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("txtentry"); if (t===undefined) throw new Error("dict: txtentry: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; var t=this.dstk.get("newtext"); if (t===undefined) throw new Error("dict: newtext: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; var t=this.dstk.get("txt"); if (t===undefined) throw new Error("dict: txt: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("txtentry"); if (t===undefined) throw new Error("dict: txtentry: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; } function $f15(){ this.stk[this.ptr++]="txt"; //ident var t=this.dstk.get("args"); if (t===undefined) throw new Error("dict: args: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("txt"); if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]=0; this.stk[this.ptr++]=1; var t=this.dstk.get("newtext"); if (t===undefined) throw new Error("dict: newtext: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f14; var t24=this.stk[--this.ptr]; var t22=this.stk[--this.ptr]; var t21=this.stk[--this.ptr]; var t20=this.stk[--this.ptr]; for (var t23=t20; t21<0 ? t23>=t22 : t23<=t22; t23+=t21) { this.stk[this.ptr++]=t23; if (t24.call(this)==-1) break; } var t=this.dstk.get("args"); if (t===undefined) throw new Error("dict: args: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("txt"); var t=this.dstk.get("txt"); if (t===undefined) throw new Error("dict: txt: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; } this.stk[this.ptr++]=20; this.stk[this.ptr-1]={}; this.dict=this.stk[--this.ptr]; this.dstk.push(this.dict); this.stk[this.ptr++]="options"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="barcode"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="dontdraw"; //ident this.stk[this.ptr++]=false; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="includetext"; //ident this.stk[this.ptr++]=false; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="parse"; //ident this.stk[this.ptr++]=false; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("options"); if (t===undefined) throw new Error("dict: options: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-1]=BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr++]="stringtype"; //ident if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f4; var t4=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t4.call(this)==-1) return -1; } var t=this.dstk.get("options"); if (t===undefined) throw new Error("dict: options: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=$f5; var t7=this.stk[--this.ptr]; var t6=this.stk[--this.ptr]; for (t5 in t6) { if (t6 instanceof BWIPJS.psstring || t6 instanceof BWIPJS.psarray) { if (t5.charCodeAt(0) > 57) continue; this.stk[this.ptr++]=t6.get(t5); } else { this.stk[this.ptr++]=t5; this.stk[this.ptr++]=t6[t5]; } if (t7.call(this)==-1) break; } var t=this.dstk.get("parse"); if (t===undefined) throw new Error("dict: parse: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=$f9; var t11=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t11.call(this)==-1) return -1; } this.stk[this.ptr++]="barlen"; //ident var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="extencs"; //ident this.stk[this.ptr++]=BWIPJS.psarray([BWIPJS.psstring("^SFT%U"),BWIPJS.psstring("^SFT$A"),BWIPJS.psstring("^SFT$B"),BWIPJS.psstring("^SFT$C"),BWIPJS.psstring("^SFT$D"),BWIPJS.psstring("^SFT$E"),BWIPJS.psstring("^SFT$F"),BWIPJS.psstring("^SFT$G"),BWIPJS.psstring("^SFT$H"),BWIPJS.psstring("^SFT$I"),BWIPJS.psstring("^SFT$J"),BWIPJS.psstring("^SFT$K"),BWIPJS.psstring("^SFT$L"),BWIPJS.psstring("^SFT$M"),BWIPJS.psstring("^SFT$N"),BWIPJS.psstring("^SFT$O"),BWIPJS.psstring("^SFT$P"),BWIPJS.psstring("^SFT$Q"),BWIPJS.psstring("^SFT$R"),BWIPJS.psstring("^SFT$S"),BWIPJS.psstring("^SFT$T"),BWIPJS.psstring("^SFT$U"),BWIPJS.psstring("^SFT$V"),BWIPJS.psstring("^SFT$W"),BWIPJS.psstring("^SFT$X"),BWIPJS.psstring("^SFT$Y"),BWIPJS.psstring("^SFT$Z"),BWIPJS.psstring("^SFT%A"),BWIPJS.psstring("^SFT%B"),BWIPJS.psstring("^SFT%C"),BWIPJS.psstring("^SFT%D"),BWIPJS.psstring("^SFT%E"),BWIPJS.psstring(" "),BWIPJS.psstring("^SFT/A"),BWIPJS.psstring("^SFT/B"),BWIPJS.psstring("^SFT/C"),BWIPJS.psstring("^SFT/D"),BWIPJS.psstring("^SFT/E"),BWIPJS.psstring("^SFT/F"),BWIPJS.psstring("^SFT/G"),BWIPJS.psstring("^SFT/H"),BWIPJS.psstring("^SFT/I"),BWIPJS.psstring("^SFT/J"),BWIPJS.psstring("^SFT/K"),BWIPJS.psstring("^SFT/L"),BWIPJS.psstring("-"),BWIPJS.psstring("."),BWIPJS.psstring("^SFT/O"),BWIPJS.psstring("0"),BWIPJS.psstring("1"),BWIPJS.psstring("2"),BWIPJS.psstring("3"),BWIPJS.psstring("4"),BWIPJS.psstring("5"),BWIPJS.psstring("6"),BWIPJS.psstring("7"),BWIPJS.psstring("8"),BWIPJS.psstring("9"),BWIPJS.psstring("^SFT/Z"),BWIPJS.psstring("^SFT%F"),BWIPJS.psstring("^SFT%G"),BWIPJS.psstring("^SFT%H"),BWIPJS.psstring("^SFT%I"),BWIPJS.psstring("^SFT%J"),BWIPJS.psstring("^SFT%V"),BWIPJS.psstring("A"),BWIPJS.psstring("B"),BWIPJS.psstring("C"),BWIPJS.psstring("D"),BWIPJS.psstring("E"),BWIPJS.psstring("F"),BWIPJS.psstring("G"),BWIPJS.psstring("H"),BWIPJS.psstring("I"),BWIPJS.psstring("J"),BWIPJS.psstring("K"),BWIPJS.psstring("L"),BWIPJS.psstring("M"),BWIPJS.psstring("N"),BWIPJS.psstring("O"),BWIPJS.psstring("P"),BWIPJS.psstring("Q"),BWIPJS.psstring("R"),BWIPJS.psstring("S"),BWIPJS.psstring("T"),BWIPJS.psstring("U"),BWIPJS.psstring("V"),BWIPJS.psstring("W"),BWIPJS.psstring("X"),BWIPJS.psstring("Y"),BWIPJS.psstring("Z"),BWIPJS.psstring("^SFT%K"),BWIPJS.psstring("^SFT%L"),BWIPJS.psstring("^SFT%M"),BWIPJS.psstring("^SFT%N"),BWIPJS.psstring("^SFT%O"),BWIPJS.psstring("^SFT%W"),BWIPJS.psstring("^SFT+A"),BWIPJS.psstring("^SFT+B"),BWIPJS.psstring("^SFT+C"),BWIPJS.psstring("^SFT+D"),BWIPJS.psstring("^SFT+E"),BWIPJS.psstring("^SFT+F"),BWIPJS.psstring("^SFT+G"),BWIPJS.psstring("^SFT+H"),BWIPJS.psstring("^SFT+I"),BWIPJS.psstring("^SFT+J"),BWIPJS.psstring("^SFT+K"),BWIPJS.psstring("^SFT+L"),BWIPJS.psstring("^SFT+M"),BWIPJS.psstring("^SFT+N"),BWIPJS.psstring("^SFT+O"),BWIPJS.psstring("^SFT+P"),BWIPJS.psstring("^SFT+Q"),BWIPJS.psstring("^SFT+R"),BWIPJS.psstring("^SFT+S"),BWIPJS.psstring("^SFT+T"),BWIPJS.psstring("^SFT+U"),BWIPJS.psstring("^SFT+V"),BWIPJS.psstring("^SFT+W"),BWIPJS.psstring("^SFT+X"),BWIPJS.psstring("^SFT+Y"),BWIPJS.psstring("^SFT+Z"),BWIPJS.psstring("^SFT%P"),BWIPJS.psstring("^SFT%Q"),BWIPJS.psstring("^SFT%R"),BWIPJS.psstring("^SFT%S"),BWIPJS.psstring("^SFT%T")]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="newcode"; //ident var t=this.dstk.get("barlen"); if (t===undefined) throw new Error("dict: barlen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=6; this.stk[this.ptr-2]=this.stk[this.ptr-2]*this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="newtext"; //ident var t=this.dstk.get("barlen"); if (t===undefined) throw new Error("dict: barlen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=6; this.stk[this.ptr-2]=this.stk[this.ptr-2]*this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="j"; //ident this.stk[this.ptr++]=0; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="k"; //ident this.stk[this.ptr++]=0; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]=0; this.stk[this.ptr++]=1; var t=this.dstk.get("barlen"); if (t===undefined) throw new Error("dict: barlen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f13; var t19=this.stk[--this.ptr]; var t17=this.stk[--this.ptr]; var t16=this.stk[--this.ptr]; var t15=this.stk[--this.ptr]; for (var t18=t15; t16<0 ? t18>=t17 : t18<=t17; t18+=t16) { this.stk[this.ptr++]=t18; if (t19.call(this)==-1) break; } this.stk[this.ptr++]="newcode"; //ident var t=this.dstk.get("newcode"); if (t===undefined) throw new Error("dict: newcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; var t=this.dstk.get("j"); if (t===undefined) throw new Error("dict: j: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="newtext"; //ident var t=this.dstk.get("newtext"); if (t===undefined) throw new Error("dict: newtext: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; var t=this.dstk.get("k"); if (t===undefined) throw new Error("dict: k: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("options"); if (t===undefined) throw new Error("dict: options: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("dontdraw"); this.stk[this.ptr++]=true; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; var t=this.dstk.get("options"); if (t===undefined) throw new Error("dict: options: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("parsefnc"); this.stk[this.ptr++]=true; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; this.stk[this.ptr++]="args"; //ident var t=this.dstk.get("newcode"); if (t===undefined) throw new Error("dict: newcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("options"); if (t===undefined) throw new Error("dict: options: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("code93"); if (t===undefined) throw new Error("//code93: undefined"); this.stk[this.ptr++]=t; var t=this.stk[--this.ptr]; if (t instanceof Function) t.call(this); else this.eval(t); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("includetext"); if (t===undefined) throw new Error("dict: includetext: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=$f15; var t25=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t25.call(this)==-1) return -1; } var t=this.dstk.get("args"); if (t===undefined) throw new Error("dict: args: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("opt"); var t=this.dstk.get("options"); if (t===undefined) throw new Error("dict: options: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; var t=this.dstk.get("args"); if (t===undefined) throw new Error("dict: args: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("dontdraw"); if (t===undefined) throw new Error("dict: dontdraw: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-1]=!this.stk[this.ptr-1]; else this.stk[this.ptr-1]=~this.stk[this.ptr-1]; var t=this.dstk.get("renlinear"); if (t===undefined) throw new Error("//renlinear: undefined"); this.stk[this.ptr++]=t; var t26=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t26.call(this)==-1) return -1; } this.dstk.pop(); this.dict=this.dstk[this.dstk.length-1]; psstptr = this.ptr; } // END OF code93ext